]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Update disk swapper list if changed while emulation is running.
authorToni Wilen <twilen@winuae.net>
Fri, 12 Jul 2019 16:30:37 +0000 (19:30 +0300)
committerToni Wilen <twilen@winuae.net>
Fri, 12 Jul 2019 16:30:37 +0000 (19:30 +0300)
disk.cpp

index aacf03648427bc3d929ea8991d83ba3be70ee470..a8fd0ac1450b4637e01f2aa57099c4a4602735b5 100644 (file)
--- a/disk.cpp
+++ b/disk.cpp
@@ -2929,6 +2929,11 @@ static void DISK_check_change (void)
 #endif
                }
        }
+       if (config_changed) {
+               for (int i = 0; i < MAX_SPARE_DRIVES; i++) {
+                       _tcscpy(currprefs.dfxlist[i], changed_prefs.dfxlist[i]);
+               }
+       }
 }
 
 void DISK_vsync (void)