mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +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);
|
||||
}
|
||||
|
||||
// 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;
|
||||
|
||||
if (!setting_data)
|
||||
|
Loading…
x
Reference in New Issue
Block a user