Core: Fix the allocation of rdram size if set in the rdb
This commit is contained in:
parent
210ebd42de
commit
0e52bfb185
|
@ -292,6 +292,8 @@
|
|||
#5440# "Disk seek timing:"
|
||||
#5441# "Turbo"
|
||||
#5442# "Slow"
|
||||
#5443# "Memory size (Known):"
|
||||
#5443# "Memory size (Unknown):"
|
||||
|
||||
// Core styles
|
||||
#540# "Interpreter"
|
||||
|
|
|
@ -161,7 +161,8 @@ bool CMipsMemoryVM::Initialize(bool SyncSystem)
|
|||
return false;
|
||||
}
|
||||
|
||||
if (!g_Settings->LoadDword(Game_RDRamSize, m_AllocatedRdramSize))
|
||||
bool RdbRamSet = g_Settings->LoadDword(Rdb_RDRamSize, m_AllocatedRdramSize);
|
||||
if (!g_Settings->LoadDword(Game_RDRamSize, m_AllocatedRdramSize) && !RdbRamSet)
|
||||
{
|
||||
m_AllocatedRdramSize = g_Settings->LoadDword(g_Settings->LoadBool(Game_Known) ? Default_RDRamSizeKnown : Default_RDRamSizeUnknown);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue