mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-19 03:39:54 +00:00
Make MemoryBase::Unmap() return a value.
This commit is contained in:
parent
2f7fbf01cf
commit
b550ccfc73
@ -474,6 +474,7 @@ public:
|
||||
|
||||
bool Unmap(const u64 addr)
|
||||
{
|
||||
bool result = false;
|
||||
for(uint i=0; i<MemoryBlocks.size(); ++i)
|
||||
{
|
||||
if(MemoryBlocks[i]->IsMirror())
|
||||
@ -482,9 +483,11 @@ public:
|
||||
{
|
||||
delete MemoryBlocks[i];
|
||||
MemoryBlocks.erase(MemoryBlocks.begin() + i);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
u8* operator + (const u64 vaddr)
|
||||
|
@ -28,7 +28,7 @@ struct MemBlockInfo : public MemInfo
|
||||
{
|
||||
if(!mem)
|
||||
{
|
||||
ConLog.Error("Not enought free memory.");
|
||||
ConLog.Error("Not enough free memory.");
|
||||
assert(0);
|
||||
}
|
||||
memset(mem, 0, size);
|
||||
|
Loading…
x
Reference in New Issue
Block a user