First step of centralizing command line parsing

This commit is contained in:
Henrik Rydgård
2026-07-20 12:02:07 +02:00
parent 862012b1e3
commit a886cfb5ab
5 changed files with 193 additions and 154 deletions
+6 -1
View File
@@ -507,7 +507,7 @@ namespace MainWindow {
WINDOWPLACEMENT placement{sizeof(WINDOWPLACEMENT)};
if ((g_Config.iWindowX == -1 && g_Config.iWindowY == -1) || g_Config.iWindowWidth < 20 || g_Config.iWindowHeight < 20) {
RECT rc = DetermineDefaultWindowRectangle();
const RECT rc = DetermineDefaultWindowRectangle();
// Should be a first boot, or just bad parameters. Reset.
g_Config.iWindowSizeState = (int)WindowSizeState::Normal;
g_Config.iWindowX = rc.left;
@@ -1114,6 +1114,11 @@ namespace MainWindow {
DestroyWindow(hWnd);
break;
case WM_USER_SHOW_DISASM:
CreateDisasmWindow();
disasmWindow->Show(g_Config.bShowDebuggerOnLoad, false);
break;
case WM_INITMENUPOPUP:
// Called when a menu or submenu is about to be opened.
UpdateMenus((HMENU)wParam);