libretro: ensure game is released *before* shutdown.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
parent
ea828795c3
commit
759cb5ac64
1 changed files with 2 additions and 1 deletions
|
@ -45,6 +45,7 @@ void retro_init(void)
|
|||
|
||||
void retro_deinit(void)
|
||||
{
|
||||
ourGame.reset();
|
||||
ra2::log_cb(RETRO_LOG_INFO, "RA2: %s\n", __FUNCTION__);
|
||||
}
|
||||
|
||||
|
@ -217,9 +218,9 @@ bool retro_load_game(const retro_game_info *info)
|
|||
if (ok)
|
||||
{
|
||||
ra2::display_message("Enable Game Focus Mode for better keyboard handling");
|
||||
std::swap(ourGame, game);
|
||||
}
|
||||
|
||||
std::swap(ourGame, game);
|
||||
return ok;
|
||||
}
|
||||
catch (const std::exception & e)
|
||||
|
|
Loading…
Add table
Reference in a new issue