mirror of
https://github.com/FunKey-Project/gpsp_libretro.git
synced 2025-12-12 18:28:51 +01:00
fix sram not saving on some platforms.
This commit is contained in:
parent
0c72336d44
commit
65ff54ff4e
@ -2458,7 +2458,9 @@ u32 load_gamepak(const struct retro_game_info* info, const char *name)
|
||||
gamepak_filename[sizeof(gamepak_filename) - 1] = 0;
|
||||
|
||||
p = strrchr(gamepak_filename, PATH_SEPARATOR_CHAR);
|
||||
if (!p)
|
||||
if (p)
|
||||
p++;
|
||||
else
|
||||
p = gamepak_filename;
|
||||
|
||||
snprintf(backup_filename, sizeof(backup_filename), "%s/%s", save_path, p);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user