mirror of
https://github.com/jakcron/nstool.git
synced 2024-12-23 03:05:27 +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();
|
||||||
|
SimpleFile(const std::string& path, OpenMode mode);
|
||||||
~SimpleFile();
|
~SimpleFile();
|
||||||
|
|
||||||
void open(const std::string& path, OpenMode mode);
|
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()
|
SimpleFile::~SimpleFile()
|
||||||
{
|
{
|
||||||
close();
|
close();
|
||||||
|
|
Loading…
Reference in a new issue