diff --git a/retroarch.c b/retroarch.c index 43a02a1231..7e3651bbd9 100644 --- a/retroarch.c +++ b/retroarch.c @@ -6162,7 +6162,7 @@ bool retroarch_main_quit(void) runloop_state_t *runloop_st = runloop_state_get_ptr(); video_driver_state_t*video_st = video_state_get_ptr(); settings_t *settings = config_get_ptr(); - +#if defined(__WINRT__) /*Save configs before quitting *as for UWP depending on `OnSuspending` is not important as we can call it directly here *specifically we need to get width,height which requires UI thread and it will not be available on exit @@ -6170,7 +6170,7 @@ bool retroarch_main_quit(void) bool config_save_on_exit = settings->bools.config_save_on_exit; if (config_save_on_exit) command_event(CMD_EVENT_MENU_SAVE_CURRENT_CONFIG, NULL); - +#endif #ifdef HAVE_PRESENCE { presence_userdata_t userdata;