mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-03 12:28:10 +03:00
Android: Store saved files under game-id/ subdirectory
This is to prevent overwriting saved files of other games, since System3 uses common save file names regardless of the game.
This commit is contained in:
+2
-1
@@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
#include "fileio.h"
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
#ifdef __EMSCRIPTEN__
|
||||
#include <emscripten.h>
|
||||
@@ -15,7 +16,7 @@ const char* g_savedir;
|
||||
|
||||
void FILEIO::SetSaveDir(const char* savedir)
|
||||
{
|
||||
g_savedir = savedir;
|
||||
g_savedir = strdup(savedir);
|
||||
}
|
||||
|
||||
int FILEIO::StatSavedata(const char* filename, struct stat* buf)
|
||||
|
||||
Reference in New Issue
Block a user