fix: remove emscripten main_loop_callback targeted code

This commit is contained in:
2025-07-28 12:48:10 -05:00
parent 199b4dc939
commit cd76151a51
2 changed files with 0 additions and 7 deletions

View File

@@ -1,5 +1,4 @@
//! This module contains the main game logic and state.
use std::time::{Duration, Instant};
use anyhow::Result;
use glam::UVec2;

View File

@@ -1,7 +1,5 @@
#![windows_subsystem = "windows"]
use std::time::Duration;
use crate::{app::App, constants::LOOP_TIME};
use tracing::info;
use tracing_error::ErrorLayer;
@@ -85,10 +83,6 @@ pub fn main() {
info!("Starting game loop ({:?})", LOOP_TIME);
#[cfg(target_os = "emscripten")]
emscripten::set_main_loop_callback(app.run);
#[cfg(not(target_os = "emscripten"))]
loop {
if !app.run() {
break;