From f6e7a4d5b5564304c8c41db77909682f999011fe Mon Sep 17 00:00:00 2001 From: Eblo <7004497+Eblo@users.noreply.github.com> Date: Sun, 11 Jan 2026 15:12:58 -0500 Subject: [PATCH] Use ERROR_MESSAGE --- src/port/console/DevConsole.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/port/console/DevConsole.cpp b/src/port/console/DevConsole.cpp index c521b85f..affea449 100644 --- a/src/port/console/DevConsole.cpp +++ b/src/port/console/DevConsole.cpp @@ -21,12 +21,13 @@ extern int16_t sCurrPlayMode; // level_update.h static bool ResetHandler(std::shared_ptr Console, std::vector args, std::string* output) { // Do not reset unless currently playing a level - if (sCurrPlayMode == 0) { // PLAY_MODE_NORMAL - warp_special(-8); - return 0; + if (sCurrPlayMode != 0) { // PLAY_MODE_NORMAL + ERROR_MESSAGE("sCurrPlayMode != PLAY_MODE_NORMAL"); + return 1; } - *output = "Cannot reset: sCurrPlayMode must be 0 but is " + std::to_string(sCurrPlayMode); - return 1; + + warp_special(-8); + return 0; } void DevConsole_Init(void) {