mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
Make apply_deferred_settings more robust when it's being called
when exiting
This commit is contained in:
parent
be81e99a83
commit
c0b85ba34a
@ -308,7 +308,15 @@ static unsigned input_frame(uint64_t trigger_state)
|
|||||||
|
|
||||||
void apply_deferred_settings(void)
|
void apply_deferred_settings(void)
|
||||||
{
|
{
|
||||||
rarch_setting_t *setting = driver.menu->list_settings;
|
rarch_setting_t *setting = NULL;
|
||||||
|
|
||||||
|
if (!driver.menu)
|
||||||
|
return;
|
||||||
|
|
||||||
|
setting = (rarch_setting_t*)driver.menu->list_settings;
|
||||||
|
|
||||||
|
if (!setting)
|
||||||
|
return;
|
||||||
|
|
||||||
for (; setting->type != ST_NONE; setting++)
|
for (; setting->type != ST_NONE; setting++)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user