[IOFIle] Add constructors
This commit is contained in:
@@ -22,6 +22,9 @@ class IOFile {
|
|||||||
static inline std::filesystem::path appData = ""; // Directory for holding app data. AppData on Windows
|
static inline std::filesystem::path appData = ""; // Directory for holding app data. AppData on Windows
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
IOFile() {}
|
||||||
|
IOFile(FILE* handle) : handle(handle) {}
|
||||||
|
|
||||||
bool isOpen() {
|
bool isOpen() {
|
||||||
return handle != nullptr;
|
return handle != nullptr;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user