mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-06 03:15:48 -06:00
fix(wasm): remove unnecessary emscripten looping
This commit is contained in:
12
src/main.rs
12
src/main.rs
@@ -8,9 +8,6 @@ use tracing::event;
|
||||
use tracing_error::ErrorLayer;
|
||||
use tracing_subscriber::layer::SubscriberExt;
|
||||
|
||||
#[cfg(target_os = "emscripten")]
|
||||
pub mod emscripten;
|
||||
|
||||
mod animation;
|
||||
mod constants;
|
||||
mod direction;
|
||||
@@ -149,14 +146,7 @@ pub fn main() {
|
||||
|
||||
true
|
||||
};
|
||||
|
||||
#[cfg(target_os = "emscripten")]
|
||||
use emscripten::emscripten;
|
||||
|
||||
#[cfg(target_os = "emscripten")]
|
||||
emscripten::set_main_loop_callback(main_loop);
|
||||
|
||||
#[cfg(not(target_os = "emscripten"))]
|
||||
|
||||
loop {
|
||||
if !main_loop() {
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user