Introduce a memory shutdown lock.

This allows the debugger to access memory in a safe way that should never
crash.
This commit is contained in:
Unknown W. Brackets committed 2014-07-19 23:30:19 -07:00
1 parent 45e5f642da
commit 55403e42c2
8 files changed
+83 -2

No files matched your search

+4
View File
@@ -69,6 +69,10 @@ INT_PTR CALLBACK DumpMemoryWindow::dlgFunc(HWND hwnd, UINT iMsg, WPARAM wParam,
case IDOK:
if (bp->fetchDialogData(hwnd))
{
auto memLock = Memory::Lock();
if (!PSP_IsInited())
break;
FILE* output = fopen(bp->fileName,"wb");
if (output == NULL)
{