mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 00:20:01 +00:00
Disallow savestate load from RGUI when using BSV or netplay.
This commit is contained in:
parent
190db263b0
commit
3156f976c2
@ -502,7 +502,18 @@ int menu_set_settings(void *data, unsigned setting, unsigned action)
|
||||
if (setting == RGUI_SETTINGS_SAVESTATE_SAVE)
|
||||
rarch_save_state();
|
||||
else
|
||||
{
|
||||
// Disallow savestate load when we absoluetely cannot change game state.
|
||||
#ifdef HAVE_BSV_MOVIE
|
||||
if (g_extern.bsv.movie)
|
||||
break;
|
||||
#endif
|
||||
#ifdef HAVE_NETPLAY
|
||||
if (g_extern.netplay)
|
||||
break;
|
||||
#endif
|
||||
rarch_load_state();
|
||||
}
|
||||
g_extern.lifecycle_state |= (1ULL << MODE_GAME);
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user