From: Toni Wilen Date: Mon, 13 Oct 2025 16:49:22 +0000 (+0300) Subject: Fix RTG autoswitch default X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=af33aea28986bbd65121c93bb1f6636272189c5c;p=francis%2Fwinuae.git Fix RTG autoswitch default --- diff --git a/cfgfile.cpp b/cfgfile.cpp index d839748a..5dac884a 100644 --- a/cfgfile.cpp +++ b/cfgfile.cpp @@ -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;