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
+9
View File
@@ -124,6 +124,15 @@ uint32 NACT::calc_crc32(const char* game_id)
return crc;
}
const char* NACT::get_game_id()
{
for (const CRCTable* t = crc_table; t->id; t++) {
if (crc32 == t->crc32)
return t->id;
}
return NULL;
}
const _TCHAR* NACT::get_title()
{
for (const CRCTable* t = crc_table; t->id; t++) {