mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
Don't save switched video driver on quit (#14972)
This commit is contained in:
parent
0b6a1b530d
commit
1b6a560816
@ -6873,11 +6873,13 @@ bool retroarch_main_quit(void)
|
||||
bool config_save_on_exit = settings->bools.config_save_on_exit;
|
||||
|
||||
#if !defined(HAVE_DYNAMIC)
|
||||
{
|
||||
/* Salamander sets RUNLOOP_FLAG_SHUTDOWN_INITIATED prior, so we need to handle it seperately */
|
||||
/* config_save_file_salamander() must be called independent of config_save_on_exit */
|
||||
config_save_file_salamander();
|
||||
if (config_save_on_exit)
|
||||
command_event(CMD_EVENT_MENU_SAVE_CURRENT_CONFIG, NULL);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_PRESENCE
|
||||
@ -6915,6 +6917,9 @@ bool retroarch_main_quit(void)
|
||||
* specifically we need to get width,height which requires UI thread and it will not be available on exit
|
||||
*/
|
||||
#if defined(HAVE_DYNAMIC)
|
||||
/* Restore video driver before saving */
|
||||
video_driver_restore_cached(settings);
|
||||
|
||||
if (config_save_on_exit)
|
||||
command_event(CMD_EVENT_MENU_SAVE_CURRENT_CONFIG, NULL);
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user