Only unload core when it's not the dummy core

This commit is contained in:
twinaphex 2017-06-06 06:16:43 +02:00
parent 6b3dbff75f
commit 470c857470

View File

@ -1777,7 +1777,8 @@ bool command_event(enum event_command cmd, void *data)
rarch_ctl(RARCH_CTL_SYSTEM_INFO_FREE, NULL);
#endif
core_unload_game();
core_unload();
if (!rarch_ctl(RARCH_CTL_IS_DUMMY_CORE, NULL))
core_unload();
}
break;
case CMD_EVENT_QUIT: