mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 13:20:30 +00:00
Prevent crash inside command_event_save_auto_state
This commit is contained in:
parent
dc4275b673
commit
1e9300be68
@ -1386,7 +1386,9 @@ static bool command_event_save_auto_state(void)
|
||||
settings_t *settings = config_get_ptr();
|
||||
global_t *global = global_get_ptr();
|
||||
|
||||
if (!settings->savestate_auto_save)
|
||||
if (!settings || !settings->savestate_auto_save)
|
||||
return false;
|
||||
if (!global)
|
||||
return false;
|
||||
if (rarch_ctl(RARCH_CTL_IS_DUMMY_CORE, NULL))
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user