Putting check_variables up front in retro_load_game was causing crash

issues for Mednafen NGP
This commit is contained in:
twinaphex 2013-09-17 02:03:54 +02:00
parent 87b5e6bece
commit 2569e910c0

View File

@ -662,7 +662,9 @@ bool retro_load_game(const struct retro_game_info *info)
set_basename(info->path);
#if !defined(WANT_NGP_EMU)
check_variables();
#endif
game = MDFNI_LoadGame(MEDNAFEN_CORE_NAME_MODULE, info->path);
if (!game)
@ -680,6 +682,10 @@ bool retro_load_game(const struct retro_game_info *info)
hookup_ports(true);
#if defined(WANT_NGP_EMU)
check_variables();
#endif
return game;
}