Turn the break reason into an enum, fix some minor issues

This commit is contained in:
Henrik Rydgård committed 2025-02-19 16:01:11 -06:00
1 parent bebbdc3900
commit 31cf5771f4
22 files changed
+116 -59

No files matched your search

+2 -2
View File
@@ -341,7 +341,7 @@ namespace MainWindow {
if (GetUIState() == UISTATE_INGAME) {
browsePauseAfter = Core_IsStepping();
if (!browsePauseAfter)
Core_Break("ui.boot", 0);
Core_Break(BreakReason::BreakOnBoot, 0);
}
auto mm = GetI18NCategory(I18NCat::MAINMENU);
@@ -491,7 +491,7 @@ namespace MainWindow {
if (disasmWindow)
SendMessage(disasmWindow->GetDlgHandle(), WM_COMMAND, IDC_STOPGO, 0);
else
Core_Break("ui.break", 0);
Core_Break(BreakReason::DebugBreak, 0);
}
noFocusPause = !noFocusPause; // If we pause, override pause on lost focus
break;