convert status message to debug message

ref: #2164
develop
myk002 2022-06-03 13:18:16 -07:00
parent c277d7cedb
commit 514e5ee5bb
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 6 additions and 2 deletions

@ -5,6 +5,7 @@
#include "Console.h" #include "Console.h"
#include "Core.h" #include "Core.h"
#include "DataDefs.h" #include "DataDefs.h"
#include "Debug.h"
#include "Error.h" #include "Error.h"
#include "Export.h" #include "Export.h"
#include "LuaTools.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 // if set, confirm will unpause when this screen is no longer on the stack
df::viewscreen *paused_screen = NULL; df::viewscreen *paused_screen = NULL;
namespace DFHack {
DBG_DECLARE(confirm,status);
}
template <typename VT, typename FT> template <typename VT, typename FT>
inline bool in_vector (std::vector<VT> &vec, FT item) inline bool in_vector (std::vector<VT> &vec, FT item)
@ -238,7 +242,7 @@ namespace conf_lua {
} }
int unpause(lua_State *) int unpause(lua_State *)
{ {
Core::getInstance().print("unpausing\n"); DEBUG(status).print("unpausing\n"),
paused = false; paused = false;
paused_screen = NULL; paused_screen = NULL;
return 0; return 0;
@ -333,7 +337,7 @@ public:
set_state(SELECTED); set_state(SELECTED);
else if (input->count(df::interface_key::CUSTOM_P)) else if (input->count(df::interface_key::CUSTOM_P))
{ {
Core::getInstance().print("pausing\n"); DEBUG(status).print("pausing\n"),
paused = true; paused = true;
// only record the screen when we're not at the top viewscreen // only record the screen when we're not at the top viewscreen
// since this screen will *always* be on the stack. for // since this screen will *always* be on the stack. for