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
1 changed files with 2 additions and 1 deletions

View File

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