From 02cab3e6185921c3222b107ef1daf308a3e1620d Mon Sep 17 00:00:00 2001 From: Jared Stephen Date: Wed, 25 Dec 2024 13:59:39 -0800 Subject: [PATCH] allow console logging when built in debug mode --- src/bin/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/main.rs b/src/bin/main.rs index 7f318465..8a500407 100644 --- a/src/bin/main.rs +++ b/src/bin/main.rs @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with Sulis. If not, see -#![windows_subsystem = "windows"] +#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] use std::collections::HashMap; use std::rc::Rc; @@ -236,5 +236,6 @@ fn main() { let system = create_io(); let flow_controller = GameControlFlowUpdater::new(&system); + system.main_loop(Box::new(flow_controller)); }