From 1f7397b2f385ac9ff40dacff55af092afd1ea58b Mon Sep 17 00:00:00 2001 From: momo5502 Date: Mon, 17 Oct 2022 20:10:18 +0200 Subject: [PATCH] Output debug string in debug mode --- src/client/component/console.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client/component/console.cpp b/src/client/component/console.cpp index 808e644e..1dc94c9a 100644 --- a/src/client/component/console.cpp +++ b/src/client/component/console.cpp @@ -24,6 +24,9 @@ namespace console { if (started && !terminate_runner) { +#ifndef NDEBUG + OutputDebugStringA(message); +#endif game::Com_Printf(0, 0, "%s", message); } }