]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
cfgfile: map legacy toccata_mixer setting
authorStefan Reinauer <stefan.reinauer@coreboot.org>
Sun, 31 May 2026 07:20:57 +0000 (00:20 -0700)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Sun, 31 May 2026 07:20:57 +0000 (00:20 -0700)
The old toccata_mixer option enabled the board but did not carry the
current per-board mixer setting. Map the legacy key onto the Toccata
ROM config bit so older configurations preserve the same mixer state.

cfgfile.cpp

index 48dbc4d31d45d33567e6900db342f101e0aa4fe0..ee66b667b6d72ee4f76829adb917d2f3cf01a5ff 100644 (file)
@@ -6298,7 +6298,12 @@ static int cfgfile_parse_hardware (struct uae_prefs *p, const TCHAR *option, TCH
        if (cfgfile_yesno(option, value, _T("toccata_mixer"), &dummybool))
        {
                if (dummybool) {
+                       int idx = 0;
                        addbcromtype(p, ROMTYPE_TOCCATA, true, NULL, 0);
+                       struct boardromconfig *brc = get_device_rom(p, ROMTYPE_TOCCATA, 0, &idx);
+                       if (brc) {
+                               brc->roms[idx].device_settings |= 1;
+                       }
                }
                return 1;
        }