From a49ef997defec47f87d50813e58ff6652569500b Mon Sep 17 00:00:00 2001 From: radius Date: Fri, 20 May 2016 02:21:15 -0500 Subject: [PATCH] fix override unloading on close content --- command.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/command.c b/command.c index 91553dc028..64ac98666f 100644 --- a/command.c +++ b/command.c @@ -1714,6 +1714,12 @@ bool command_event(enum event_command cmd, void *data) return false; break; case CMD_EVENT_UNLOAD_CORE: + /* auto overrides: reload the original config */ + if (runloop_ctl(RUNLOOP_CTL_IS_OVERRIDES_ACTIVE, NULL)) + { + config_unload_override(); + runloop_ctl(RUNLOOP_CTL_UNSET_OVERRIDES_ACTIVE, NULL); + } if (!rarch_task_push_content_load_default( NULL, NULL, &content_info,