Skip to content

Commit

Permalink
allow console logging when built in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Grokmoo committed Dec 25, 2024
1 parent e647dd4 commit 02cab3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with Sulis. If not, see <http://www.gnu.org/licenses/>

#![windows_subsystem = "windows"]
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]

use std::collections::HashMap;
use std::rc::Rc;
Expand Down Expand Up @@ -236,5 +236,6 @@ fn main() {
let system = create_io();

let flow_controller = GameControlFlowUpdater::new(&system);

system.main_loop(Box::new(flow_controller));
}

0 comments on commit 02cab3e

Please sign in to comment.