]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix RTG autoswitch default
authorToni Wilen <twilen@winuae.net>
Mon, 13 Oct 2025 16:49:22 +0000 (19:49 +0300)
committerToni Wilen <twilen@winuae.net>
Mon, 13 Oct 2025 16:49:22 +0000 (19:49 +0300)
cfgfile.cpp

index d839748a5fac79889fb9d1a7989022c878e094d7..5dac884aa79a4a587497d6c688d4c1502def1aaf 100644 (file)
@@ -6303,10 +6303,11 @@ static int cfgfile_parse_hardware (struct uae_prefs *p, const TCHAR *option, TCH
                        }
                        return 1;
                }
-               if (i > 0)
+               if (i > 0) {
                        _stprintf(tmp, _T("gfxcard%d_type"), i + 1);
-               else
+               } else {
                        _tcscpy(tmp, _T("gfxcard_type"));
+               }
                if (cfgfile_string(option, value, tmp, tmpbuf, sizeof tmpbuf / sizeof(TCHAR))) {
                        rbc->rtgmem_type = 0;
                        rbc->rtg_index = i;
@@ -8723,6 +8724,7 @@ void default_prefs (struct uae_prefs *p, bool reset, int type)
        p->bogomem.chipramtiming = true;
        for (int i = 0; i < MAX_RTG_BOARDS; i++) {
                p->rtgboards[i].rtg_index = i;
+               p->rtgboards[i].autoswitch = true;
        }
        p->rtgboards[0].rtgmem_size = 0x00000000;
        p->rtgboards[0].rtgmem_type = GFXBOARD_UAE_Z3;