mirror of
https://github.com/jakcron/nstool
synced 2024-11-22 21:49:30 +00:00
[fnd] Add open constructor to fnd::SimpleFile
This commit is contained in:
parent
4c9d0e5f37
commit
97cdaf36ac
2 changed files with 7 additions and 0 deletions
|
@ -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