Core: Fix the allocation of rdram size if set in the rdb

This commit is contained in:
zilmar 2023-01-23 08:30:13 +10:30
parent 210ebd42de
commit 0e52bfb185
2 changed files with 4 additions and 1 deletions

View File

@ -292,6 +292,8 @@
#5440# "Disk seek timing:"
#5441# "Turbo"
#5442# "Slow"
#5443# "Memory size (Known):"
#5443# "Memory size (Unknown):"
// Core styles
#540# "Interpreter"

View File

@ -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);
}