mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-12 17:28:22 +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:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user