Can save config now without WINRT ifdef - we do config file deinit

AFTER ui companion driver deinit now
This commit is contained in:
reallibretroadmin 2022-10-01 23:37:49 +02:00
parent 741b54d4be
commit cd0d0eb541

View File

@ -3727,9 +3727,8 @@ void main_exit(void *args)
global_free(p_rarch);
task_queue_deinit();
rarch_config_deinit();
ui_companion_driver_deinit();
rarch_config_deinit();
frontend_driver_shutdown(false);
@ -6162,7 +6161,6 @@ 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 +6168,6 @@ 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;