diff options
author | aliaspider | 2015-09-20 23:42:37 +0100 |
---|---|---|
committer | aliaspider | 2015-09-20 23:42:37 +0100 |
commit | 65ff54ff4e6ff811246c0e106d45571a30762e74 (patch) | |
tree | 07cb9b40a9525c268c45d89c66840bd2081b73f0 | |
parent | 0c72336d44529f4f0c2c8c69f018443d67faaaff (diff) | |
download | picogpsp-65ff54ff4e6ff811246c0e106d45571a30762e74.tar.gz picogpsp-65ff54ff4e6ff811246c0e106d45571a30762e74.tar.bz2 picogpsp-65ff54ff4e6ff811246c0e106d45571a30762e74.zip |
fix sram not saving on some platforms.
-rw-r--r-- | gba_memory.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gba_memory.c b/gba_memory.c index 4174b13..15ad808 100644 --- a/gba_memory.c +++ b/gba_memory.c @@ -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); |