Merge pull request #1483 from oddMLan/master
Use 8MB RDRAM if ROM is not in RDB
This commit is contained in:
commit
4c5f5c4eab
|
@ -37,13 +37,15 @@ bool CSettingTypeRDBRDRamSize::Load (uint32_t /*Index*/, bool & /*Value*/ ) cons
|
||||||
bool CSettingTypeRDBRDRamSize::Load (uint32_t Index, uint32_t & Value ) const
|
bool CSettingTypeRDBRDRamSize::Load (uint32_t Index, uint32_t & Value ) const
|
||||||
{
|
{
|
||||||
uint32_t ulValue;
|
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);
|
bool bRes = m_SettingsIniFile->GetNumber(m_SectionIdent->c_str(),m_KeyName.c_str(),m_DefaultValue,ulValue);
|
||||||
if (!bRes)
|
if (!bRes)
|
||||||
{
|
{
|
||||||
LoadDefault(Index,ulValue);
|
LoadDefault(Index,ulValue);
|
||||||
}
|
}
|
||||||
Value = 0x400000;
|
Value = 0x400000;
|
||||||
if (ulValue == 8)
|
if (ulValue == 8 || !existsInRdb) //default to 8MB if ROM is not in the RDB
|
||||||
{
|
{
|
||||||
Value = 0x800000;
|
Value = 0x800000;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue