Make rarch_defer_core more robust for 'load_game'
This commit is contained in:
parent
9efc11045d
commit
3880856c94
|
@ -3224,9 +3224,14 @@ int rarch_defer_core(core_info_list_t *core_info, const char *dir,
|
||||||
|
|
||||||
if (!strcmp(menu_label, "load_content"))
|
if (!strcmp(menu_label, "load_content"))
|
||||||
{
|
{
|
||||||
strlcpy(new_core_path, g_extern.core_info_current->path, sizeof(new_core_path));
|
info = (const core_info_t*)&g_extern.core_info_current;
|
||||||
|
|
||||||
|
if (info)
|
||||||
|
{
|
||||||
|
strlcpy(new_core_path, info->path, sizeof(new_core_path));
|
||||||
supported = 1;
|
supported = 1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
strlcpy(new_core_path, info->path, sizeof(new_core_path));
|
strlcpy(new_core_path, info->path, sizeof(new_core_path));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue