mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-08-31 06:37:25 +00:00
Cleanup
This commit is contained in:
parent
b7b245a7b0
commit
e9a2100b15
1 changed files with 4 additions and 2 deletions
|
@ -486,10 +486,12 @@ bool Memory::mapVirtualMemory(
|
|||
|
||||
// Map or unmap each physical block
|
||||
for (auto& block : physicalList) {
|
||||
if (newDstState == MemoryState::Free)
|
||||
if (newDstState == MemoryState::Free) {
|
||||
unmapPhysicalMemory(dstVaddr, block.paddr, block.pages);
|
||||
else
|
||||
} else {
|
||||
mapPhysicalMemory(dstVaddr, block.paddr, block.pages, r, w, x);
|
||||
}
|
||||
|
||||
dstVaddr += block.pages << 12;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue