From 8475fa9c148939883cfc7b89162197b94d8547fd Mon Sep 17 00:00:00 2001 From: oddMLan Date: Sat, 18 Aug 2018 23:13:47 -0700 Subject: [PATCH] Use 8MB RDRAM if ROM is not in RDB --- .../Settings/SettingType/SettingsType-RDBRamSize.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Project64-core/Settings/SettingType/SettingsType-RDBRamSize.cpp b/Source/Project64-core/Settings/SettingType/SettingsType-RDBRamSize.cpp index cb3711ff5..c45a57925 100644 --- a/Source/Project64-core/Settings/SettingType/SettingsType-RDBRamSize.cpp +++ b/Source/Project64-core/Settings/SettingType/SettingsType-RDBRamSize.cpp @@ -37,13 +37,15 @@ bool CSettingTypeRDBRDRamSize::Load (uint32_t /*Index*/, bool & /*Value*/ ) cons bool CSettingTypeRDBRDRamSize::Load (uint32_t Index, uint32_t & Value ) const { uint32_t ulValue; + stdstr Default; + bool existsInRdb = g_Settings->LoadStringVal(Rdb_GoodName,Default); bool bRes = m_SettingsIniFile->GetNumber(m_SectionIdent->c_str(),m_KeyName.c_str(),m_DefaultValue,ulValue); if (!bRes) { LoadDefault(Index,ulValue); } Value = 0x400000; - if (ulValue == 8) + if (ulValue == 8 || !existsInRdb) //default to 8MB if ROM is not in the RDB { Value = 0x800000; }