aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraliaspider2014-10-31 05:29:24 +0100
committeraliaspider2014-10-31 05:29:24 +0100
commit4a587c43c72727e781356964da810bf20470b22b (patch)
treeb4c21722d45d40b6caa7405fc6c7cdc80e6f0dc0
parentfe1e946c5aea3c52d15ce237168abab823e4a8ca (diff)
downloadsnesemu-4a587c43c72727e781356964da810bf20470b22b.tar.gz
snesemu-4a587c43c72727e781356964da810bf20470b22b.tar.bz2
snesemu-4a587c43c72727e781356964da810bf20470b22b.zip
correct retro_load_game
-rw-r--r--libretro.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libretro.c b/libretro.c
index a4de925..d553590 100644
--- a/libretro.c
+++ b/libretro.c
@@ -682,14 +682,14 @@ bool retro_load_game(const struct retro_game_info* game)
{
CPU.Flags = 0;
- return LoadROM(game->path);
+
+ if (!LoadROM(game->path))
+ return false;
Settings.FrameTime = (Settings.PAL ? Settings.FrameTimePAL :
Settings.FrameTimeNTSC);
- LoadSRAM(S9xGetFilename(".srm"));
-
- return 0;
+ return LoadSRAM(S9xGetFilename(".srm"));
}
bool retro_load_game_special(unsigned game_type,