mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-08 03:51:39 +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
|
@ -45,11 +45,6 @@ public:
|
|||
window = SDL_CreateWindow("Alber", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, width, height, SDL_WINDOW_OPENGL);
|
||||
glContext = SDL_GL_CreateContext(window);
|
||||
|
||||
// Get path for saving files (AppData on Windows, /home/user/.local/share/ApplcationName on Linux, etc)
|
||||
char* appData = SDL_GetPrefPath(nullptr, "Alber");
|
||||
IOFile::setAppDataDir(appData);
|
||||
SDL_free(appData);
|
||||
|
||||
reset();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue