centralized m_AllocatedRdramSize writeback outside the if/else

This commit is contained in:
unknown 2015-07-18 12:50:00 -04:00
parent 2a45e5f792
commit 62d316f7ae
1 changed files with 1 additions and 3 deletions

View File

@ -5386,14 +5386,12 @@ void CMipsMemoryVM::RdramChanged ( CMipsMemoryVM * _this )
WriteTrace(TraceError,__FUNCTION__ ": failed to allocate extended memory");
g_Notify->FatalError(GS(MSG_MEM_ALLOC_ERROR));
}
_this->m_AllocatedRdramSize = 0x800000;
}
else
{
VirtualFree(_this->m_RDRAM + 0x400000, 0x400000,MEM_DECOMMIT);
_this->m_AllocatedRdramSize = 0x400000;
}
_this->m_AllocatedRdramSize = new_size;
}
void CMipsMemoryVM::ChangeSpStatus()