mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
Fix crash on iOS; was crashing when init with nil core
This commit is contained in:
parent
f5e866a361
commit
1ecc9093d5
@ -808,6 +808,10 @@ static void RunActionSheet(const char* title, const struct string_list* items, U
|
|||||||
_pathToSave = BOXSTRING(g_defaults.config_path);
|
_pathToSave = BOXSTRING(g_defaults.config_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If we initialized with a nil core(like when starting up) driver.menu will be NULL
|
||||||
|
if (!driver.menu)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
setting_data = (rarch_setting_t*)driver.menu->list_settings;
|
setting_data = (rarch_setting_t*)driver.menu->list_settings;
|
||||||
|
|
||||||
if (!setting_data)
|
if (!setting_data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user