mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 01:03:41 +01:00
Debugger: Correct delayed symbol listbox updates.
With the dialogs no longer created on start, this message wasn't coming through.
This commit is contained in:
1 parent
244b0a86f6
commit
85b7b221be
5 files changed
+33
-23
No files matched your search
+19
-4
@@ -134,6 +134,9 @@ namespace MainWindow
|
||||
static bool hasFocus = true;
|
||||
static bool g_isFullscreen = false;
|
||||
|
||||
static bool disasmMapLoadPending = false;
|
||||
static bool memoryMapLoadPending = false;
|
||||
|
||||
// gross hack
|
||||
bool noFocusPause = false; // TOGGLE_PAUSE state to override pause on lost focus
|
||||
bool trapMouse = true; // Handles some special cases(alt+tab, win menu) when game is running and mouse is confined
|
||||
@@ -538,6 +541,9 @@ namespace MainWindow
|
||||
disasmWindow = new CDisasm(MainWindow::GetHInstance(), MainWindow::GetHWND(), currentDebugMIPS);
|
||||
DialogManager::AddDlg(disasmWindow);
|
||||
}
|
||||
if (disasmMapLoadPending)
|
||||
disasmWindow->NotifyMapLoaded();
|
||||
disasmMapLoadPending = false;
|
||||
}
|
||||
|
||||
void CreateGeDebuggerWindow() {
|
||||
@@ -554,6 +560,9 @@ namespace MainWindow
|
||||
memoryWindow = new CMemoryDlg(MainWindow::GetHInstance(), MainWindow::GetHWND(), currentDebugMIPS);
|
||||
DialogManager::AddDlg(memoryWindow);
|
||||
}
|
||||
if (memoryMapLoadPending)
|
||||
memoryWindow->NotifyMapLoaded();
|
||||
memoryMapLoadPending = false;
|
||||
}
|
||||
|
||||
void CreateVFPUWindow() {
|
||||
@@ -563,6 +572,15 @@ namespace MainWindow
|
||||
}
|
||||
}
|
||||
|
||||
void NotifyDebuggerMapLoaded() {
|
||||
disasmMapLoadPending = disasmWindow == nullptr;
|
||||
memoryMapLoadPending = memoryWindow == nullptr;
|
||||
if (!disasmMapLoadPending)
|
||||
disasmWindow->NotifyMapLoaded();
|
||||
if (!memoryMapLoadPending)
|
||||
memoryWindow->NotifyMapLoaded();
|
||||
}
|
||||
|
||||
void DestroyDebugWindows() {
|
||||
DialogManager::RemoveDlg(disasmWindow);
|
||||
if (disasmWindow)
|
||||
@@ -947,10 +965,7 @@ namespace MainWindow
|
||||
break;
|
||||
|
||||
case WM_USER + 1:
|
||||
if (disasmWindow)
|
||||
disasmWindow->NotifyMapLoaded();
|
||||
if (memoryWindow)
|
||||
memoryWindow->NotifyMapLoaded();
|
||||
NotifyDebuggerMapLoaded();
|
||||
if (disasmWindow)
|
||||
disasmWindow->UpdateDialog();
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user