mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-07 11:31:39 +12:00
ExtSaveData work
This commit is contained in:
parent
902b877c40
commit
995dfb81df
12 changed files with 68 additions and 28 deletions
|
@ -24,6 +24,9 @@ class IOFile {
|
|||
public:
|
||||
IOFile() {}
|
||||
IOFile(FILE* handle) : handle(handle) {}
|
||||
IOFile(const std::filesystem::path& path, const char* permissions = "rb") {
|
||||
open(path, permissions);
|
||||
}
|
||||
|
||||
bool isOpen() {
|
||||
return handle != nullptr;
|
||||
|
@ -86,6 +89,10 @@ public:
|
|||
return seek(0, SEEK_SET);
|
||||
}
|
||||
|
||||
FILE* getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
static void setAppDataDir(const char* dir) {
|
||||
if (!dir) Helpers::panic("Failed to set app data directory");
|
||||
appData = std::filesystem::path(dir);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue