mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-05-09 13:44:49 +12:00
Add game folder to app data
This commit is contained in:
parent
51d3551114
commit
c8cc8a2520
3 changed files with 11 additions and 8 deletions
include
|
@ -107,9 +107,9 @@ public:
|
|||
return handle;
|
||||
}
|
||||
|
||||
static void setAppDataDir(const char* dir) {
|
||||
if (!dir) Helpers::panic("Failed to set app data directory");
|
||||
appData = std::filesystem::path(dir);
|
||||
static void setAppDataDir(const std::filesystem::path& dir) {
|
||||
if (dir == "") Helpers::panic("Failed to set app data directory");
|
||||
appData = dir;
|
||||
}
|
||||
|
||||
static std::filesystem::path getAppData() { return IOFile::appData; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue