mirror of
https://github.com/libretro/beetle-lynx-libretro.git
synced 2024-11-27 02:12:46 +00:00
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:
parent
f5d76c56c0
commit
62d3e71f77
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user