]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
GUI reset button: copy whole current GUI config to active config.
authorToni Wilen <twilen@winuae.net>
Sat, 29 Feb 2020 19:47:45 +0000 (21:47 +0200)
committerToni Wilen <twilen@winuae.net>
Sat, 29 Feb 2020 19:47:45 +0000 (21:47 +0200)
od-win32/win32gui.cpp

index 1e0b6d26155b7295b8f114f76773e95e0bf4737b..3778f80c0198ca75831539a3fb0d871c47e796c7 100644 (file)
@@ -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));