From ad33e72485e9e63caf004866b86cc555f2b044b5 Mon Sep 17 00:00:00 2001 From: kichikuou Date: Sat, 29 Aug 2026 12:15:59 +0900 Subject: [PATCH] Windows: Allocate a console for `-texthook print` --- src/win/nact_win.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/win/nact_win.cpp b/src/win/nact_win.cpp index 77e8cd3..0ba9d88 100644 --- a/src/win/nact_win.cpp +++ b/src/win/nact_win.cpp @@ -137,7 +137,8 @@ void NACT::text_dialog() void NACT::platform_initialize() { init_menu(mouse_move_enabled, config); - if (config.debugger_mode == DebuggerMode::CLI || (config.trace && config.debugger_mode != DebuggerMode::DAP)) + if (config.debugger_mode == DebuggerMode::CLI || + ((config.trace || config.texthook_mode == TexthookMode::PRINT) && config.debugger_mode != DebuggerMode::DAP)) init_console(game_id.sys_ver); SDL_EventState(SDL_SYSWMEVENT, SDL_ENABLE); }