Fix retro_load_game always returns false (Fix #40)

- retro_load_game is always returning false causing games to fail loading since the variable "game" is always NULL.
- returns true from retro_load_game if everything loads up fine without major issues.
This commit is contained in:
negativeExponent 2020-09-29 04:16:05 +08:00 committed by negativeExponent
parent f5d76c56c0
commit 62d3e71f77

View File

@ -14,8 +14,6 @@
#include <compat/msvc.h>
#endif
static MDFNGI *game;
struct retro_perf_callback perf_cb;
retro_get_cpu_features_t perf_get_cpu_features_cb = NULL;
retro_log_printf_t log_cb;
@ -285,7 +283,7 @@ bool retro_load_game(const struct retro_game_info *info)
check_variables();
return game;
return true;
}
static void MDFNI_CloseGame(void)
@ -305,9 +303,6 @@ static void MDFNI_CloseGame(void)
void retro_unload_game(void)
{
if (!game)
return;
MDFNI_CloseGame();
}