From 514e5ee5bb2e228e4d4564042aab037473e487ca Mon Sep 17 00:00:00 2001 From: myk002 Date: Fri, 3 Jun 2022 13:18:16 -0700 Subject: [PATCH] convert status message to debug message ref: #2164 --- plugins/confirm.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/confirm.cpp b/plugins/confirm.cpp index 60735ef94..bf102d2ba 100644 --- a/plugins/confirm.cpp +++ b/plugins/confirm.cpp @@ -5,6 +5,7 @@ #include "Console.h" #include "Core.h" #include "DataDefs.h" +#include "Debug.h" #include "Error.h" #include "Export.h" #include "LuaTools.h" @@ -50,6 +51,9 @@ bool paused = false; // if set, confirm will unpause when this screen is no longer on the stack df::viewscreen *paused_screen = NULL; +namespace DFHack { + DBG_DECLARE(confirm,status); +} template inline bool in_vector (std::vector &vec, FT item) @@ -238,7 +242,7 @@ namespace conf_lua { } int unpause(lua_State *) { - Core::getInstance().print("unpausing\n"); + DEBUG(status).print("unpausing\n"), paused = false; paused_screen = NULL; return 0; @@ -333,7 +337,7 @@ public: set_state(SELECTED); else if (input->count(df::interface_key::CUSTOM_P)) { - Core::getInstance().print("pausing\n"); + DEBUG(status).print("pausing\n"), paused = true; // only record the screen when we're not at the top viewscreen // since this screen will *always* be on the stack. for