Rename the get-memory-pointer functions to make it clear where CPU exceptions can happen.

This commit is contained in:
Henrik Rydgård
2026-08-12 14:06:16 +02:00
parent e9a3449ede
commit c5e4d0d90d
53 changed files with 224 additions and 224 deletions
+3 -3
View File
@@ -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);
}