mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-04 12:37:08 +00:00
Don't open duplicate memory/disasm windows.
It's annoying.
This commit is contained in:
parent
3564b1579b
commit
aeac614cc0
@ -623,6 +623,11 @@ namespace MainWindow
|
||||
break;
|
||||
|
||||
case WM_USER+1:
|
||||
if (disasmWindow[0])
|
||||
SendMessage(disasmWindow[0]->GetDlgHandle(), WM_CLOSE, 0, 0);
|
||||
if (memoryWindow[0])
|
||||
SendMessage(memoryWindow[0]->GetDlgHandle(), WM_CLOSE, 0, 0);
|
||||
|
||||
disasmWindow[0] = new CDisasm(MainWindow::GetHInstance(), MainWindow::GetHWND(), currentDebugMIPS);
|
||||
DialogManager::AddDlg(disasmWindow[0]);
|
||||
disasmWindow[0]->Show(g_Config.bShowDebuggerOnLoad);
|
||||
|
@ -51,8 +51,8 @@ void LaunchBrowser(const char *url)
|
||||
#include "Windows/WindowsHost.h"
|
||||
#include "Windows/main.h"
|
||||
|
||||
CDisasm *disasmWindow[MAX_CPUCOUNT];
|
||||
CMemoryDlg *memoryWindow[MAX_CPUCOUNT];
|
||||
CDisasm *disasmWindow[MAX_CPUCOUNT] = {0};
|
||||
CMemoryDlg *memoryWindow[MAX_CPUCOUNT] = {0};
|
||||
|
||||
int WINAPI WinMain(HINSTANCE _hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLine, int iCmdShow)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user