mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
command: Load dummy core on close only if core has not been initialized yet
This commit is contained in:
parent
8d7540c449
commit
087e26bd2d
15
command.c
15
command.c
@ -1897,13 +1897,14 @@ bool command_event(enum event_command cmd, void *data)
|
|||||||
command_event(CMD_EVENT_AUTOSAVE_STATE, NULL);
|
command_event(CMD_EVENT_AUTOSAVE_STATE, NULL);
|
||||||
command_event(CMD_EVENT_DISABLE_OVERRIDES, NULL);
|
command_event(CMD_EVENT_DISABLE_OVERRIDES, NULL);
|
||||||
|
|
||||||
if (!task_push_content_load_default(
|
if (content_is_inited())
|
||||||
NULL, NULL,
|
if (!task_push_content_load_default(
|
||||||
&content_info,
|
NULL, NULL,
|
||||||
CORE_TYPE_DUMMY,
|
&content_info,
|
||||||
CONTENT_MODE_LOAD_NOTHING_WITH_DUMMY_CORE,
|
CORE_TYPE_DUMMY,
|
||||||
NULL, NULL))
|
CONTENT_MODE_LOAD_NOTHING_WITH_DUMMY_CORE,
|
||||||
return false;
|
NULL, NULL))
|
||||||
|
return false;
|
||||||
command_event(CMD_EVENT_LOAD_CORE_DEINIT, NULL);
|
command_event(CMD_EVENT_LOAD_CORE_DEINIT, NULL);
|
||||||
break;
|
break;
|
||||||
case CMD_EVENT_QUIT:
|
case CMD_EVENT_QUIT:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user