From: Toni Wilen Date: Sat, 29 Feb 2020 19:47:45 +0000 (+0200) Subject: GUI reset button: copy whole current GUI config to active config. X-Git-Tag: 4400~107 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=548281e69d6779304f260a7b0889cadea38c93b6;p=francis%2Fwinuae.git GUI reset button: copy whole current GUI config to active config. --- diff --git a/od-win32/win32gui.cpp b/od-win32/win32gui.cpp index 1e0b6d26..3778f80c 100644 --- a/od-win32/win32gui.cpp +++ b/od-win32/win32gui.cpp @@ -2468,6 +2468,9 @@ static void gui_to_prefs(void) { /* Always copy our prefs to changed_prefs, ... */ copy_prefs(&workprefs, &changed_prefs); + if (quit_program == -UAE_RESET_HARD) { + copy_prefs(&workprefs, &currprefs); + } /* filesys hack */ currprefs.mountitems = changed_prefs.mountitems; memcpy (&currprefs.mountconfig, &changed_prefs.mountconfig, MOUNT_CONFIG_SIZE * sizeof (struct uaedev_config_info));