IOFile: Allow multiple opens on the same object

This commit is contained in:
wheremyfoodat 2023-07-07 16:51:14 +03:00
parent 6588f6764f
commit b7ce987487
2 changed files with 8 additions and 2 deletions

View file

@ -8,7 +8,7 @@ class IOFile {
static inline std::filesystem::path appData = ""; // Directory for holding app data. AppData on Windows
public:
IOFile() {}
IOFile() : handle(nullptr) {}
IOFile(FILE* handle) : handle(handle) {}
IOFile(const std::filesystem::path& path, const char* permissions = "rb");