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)); }