From 6c2795ddacbb9bcab881bc737b237ea639ccecb3 Mon Sep 17 00:00:00 2001 From: Dimitris Panokostas Date: Sun, 4 Dec 2022 18:45:01 +0100 Subject: [PATCH] bugfix: NVRAM path wasn't used --- cfgfile.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cfgfile.cpp b/cfgfile.cpp index 56bf0aaf..bab65cb2 100644 --- a/cfgfile.cpp +++ b/cfgfile.cpp @@ -8798,7 +8798,7 @@ static int bip_cdtvcr (struct uae_prefs *p, int config, int compa, int romcheck) set_68000_compa (p, compa); p->cs_compatible = CP_CDTVCR; built_in_chipset_prefs (p); - fetch_datapath (p->flashfile, sizeof (p->flashfile) / sizeof (TCHAR)); + fetch_nvrampath(p->flashfile, sizeof (p->flashfile) / sizeof (TCHAR)); _tcscat (p->flashfile, _T("cdtv-cr.nvr")); roms[0] = 9; roms[1] = 10; @@ -8836,7 +8836,7 @@ static int bip_cdtv (struct uae_prefs *p, int config, int compa, int romcheck) set_68000_compa (p, compa); p->cs_compatible = CP_CDTV; built_in_chipset_prefs (p); - fetch_datapath (p->flashfile, sizeof (p->flashfile) / sizeof (TCHAR)); + fetch_nvrampath(p->flashfile, sizeof (p->flashfile) / sizeof (TCHAR)); _tcscat (p->flashfile, _T("cdtv.nvr")); roms[0] = 6; roms[1] = 32; @@ -8865,7 +8865,7 @@ static int bip_cd32 (struct uae_prefs *p, int config, int compa, int romcheck) set_68020_compa (p, compa, 1); p->cs_compatible = CP_CD32; built_in_chipset_prefs (p); - fetch_datapath (p->flashfile, sizeof (p->flashfile) / sizeof (TCHAR)); + fetch_nvrampath(p->flashfile, sizeof (p->flashfile) / sizeof (TCHAR)); _tcscat (p->flashfile, _T("cd32.nvr")); roms[0] = 64; roms[1] = -1; @@ -8887,7 +8887,7 @@ static int bip_cd32 (struct uae_prefs *p, int config, int compa, int romcheck) return 0; } else if (config > 1) { addbcromtype(p, ROMTYPE_CUBO, true, NULL, 0); - fetch_datapath(p->flashfile, sizeof(p->flashfile) / sizeof(TCHAR)); + fetch_nvrampath(p->flashfile, sizeof(p->flashfile) / sizeof(TCHAR)); _tcscat(p->flashfile, _T("cd32cubo.nvr")); } return 1; -- 2.47.3