From bdeec3f2521c3f5b14990cafd390e05b51946a43 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Wed, 31 Aug 2016 20:58:01 +0300 Subject: [PATCH] Fix cpuboard_settings parsing. --- cfgfile.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/cfgfile.cpp b/cfgfile.cpp index 1963f7d9..68140f10 100644 --- a/cfgfile.cpp +++ b/cfgfile.cpp @@ -4886,12 +4886,7 @@ static int cfgfile_parse_hardware (struct uae_prefs *p, const TCHAR *option, TCH p->cpuboard_settings = 0; const struct cpuboardsubtype *cbst = &cpuboards[p->cpuboard_type].subtypes[p->cpuboard_subtype]; if (cbst->settings) { - const struct expansionboardsettings *cbs = cbst->settings; - for(i = 0; cbs[i].name; i++) { - if (cfgfile_option_find(tmpbuf, cbs[i].configname)) { - p->cpuboard_settings |= 1 << (i + cbs[i].bitshift); - } - } + p->cpuboard_settings = cfgfile_read_rom_settings(cbst->settings, tmpbuf); } return 1; } -- 2.47.3