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:
kichikuou
2020-02-10 13:09:07 +09:00
parent 8615df6e12
commit 2d0619a19a
4 changed files with 26 additions and 2 deletions
+2 -1
View File
@@ -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)