Windows debugger: Load the dialogs on demand.

I think this is especially good for the Ge dialog since we now can avoid
initializing that extra GL context unless you open the dialog.
This commit is contained in:
Henrik Rydgård committed 2021-11-13 22:10:37 +01:00
1 parent a783f49948
commit c004e9ca9d
6 files changed
+36 -16

No files matched your search

+3
View File
@@ -6,6 +6,7 @@
#include "Windows/Debugger/DebuggerShared.h"
#include "Windows/Debugger/CtrlDisAsmView.h"
#include "Windows/W32Util/ContextMenu.h"
#include "Windows/MainWindow.h"
#include "Windows/resource.h"
#include "Windows/main.h"
#include "Common/Data/Encoding/Utf8.h"
@@ -373,10 +374,12 @@ void CtrlBreakpointList::gotoBreakpointAddress(int itemIndex)
if (isMemory) {
u32 address = displayedMemChecks_[index].start;
MainWindow::CreateMemoryWindow();
if (memoryWindow)
memoryWindow->Goto(address);
} else {
u32 address = displayedBreakPoints_[index].addr;
MainWindow::CreateDisasmWindow();
if (disasmWindow)
disasmWindow->Goto(address);
}