mirror of
https://github.com/jakcron/nstool.git
synced 2024-12-22 10:45:28 +00:00
[fnd] Add open constructor to fnd::SimpleFile
This commit is contained in:
parent
4c9d0e5f37
commit
97cdaf36ac
|
@ -20,6 +20,7 @@ namespace fnd
|
|||
};
|
||||
|
||||
SimpleFile();
|
||||
SimpleFile(const std::string& path, OpenMode mode);
|
||||
~SimpleFile();
|
||||
|
||||
void open(const std::string& path, OpenMode mode);
|
||||
|
|
|
@ -14,6 +14,12 @@ SimpleFile::SimpleFile() :
|
|||
{
|
||||
}
|
||||
|
||||
SimpleFile::SimpleFile(const std::string& path, OpenMode mode) :
|
||||
SimpleFile()
|
||||
{
|
||||
open(path, mode);
|
||||
}
|
||||
|
||||
SimpleFile::~SimpleFile()
|
||||
{
|
||||
close();
|
||||
|
|
Loading…
Reference in a new issue