mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Rename the get-memory-pointer functions to make it clear where CPU exceptions can happen.
This commit is contained in:
1 parent
e9a3449ede
commit
c5e4d0d90d
53 files changed
+224
-224
No files matched your search
@@ -99,16 +99,16 @@ INT_PTR CALLBACK DumpMemoryWindow::dlgFunc(HWND hwnd, UINT iMsg, WPARAM wParam,
|
||||
}
|
||||
|
||||
if (includeReplacements) {
|
||||
fwrite(Memory::GetPointer(bp->start), 1, bp->size, output);
|
||||
fwrite(Memory::GetPointerOrException(bp->start), 1, bp->size, output);
|
||||
} else {
|
||||
auto savedReplacements = SaveAndClearReplacements();
|
||||
std::lock_guard<std::recursive_mutex> guard(MIPSComp::jitLock);
|
||||
if (MIPSComp::jit) {
|
||||
auto savedBlocks = MIPSComp::jit->SaveAndClearEmuHackOps();
|
||||
fwrite(Memory::GetPointer(bp->start), 1, bp->size, output);
|
||||
fwrite(Memory::GetPointerOrException(bp->start), 1, bp->size, output);
|
||||
MIPSComp::jit->RestoreSavedEmuHackOps(savedBlocks);
|
||||
} else {
|
||||
fwrite(Memory::GetPointer(bp->start), 1, bp->size, output);
|
||||
fwrite(Memory::GetPointerOrException(bp->start), 1, bp->size, output);
|
||||
}
|
||||
RestoreSavedReplacements(savedReplacements);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user