From af33aea28986bbd65121c93bb1f6636272189c5c Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Mon, 13 Oct 2025 19:49:22 +0300 Subject: [PATCH] Fix RTG autoswitch default --- cfgfile.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 2.47.3