From 82cedf7e4a0d8b017fc0417024f541a1732c6c3c Mon Sep 17 00:00:00 2001 From: Ryan Walters Date: Thu, 11 Sep 2025 13:49:44 -0500 Subject: [PATCH] fix: remove ConsoleInit condition, add ToggleFullscreen condition, helper 'push' just recipe --- Justfile | 3 +++ src/error.rs | 1 - src/events.rs | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Justfile b/Justfile index 6899699..3fa10d7 100644 --- a/Justfile +++ b/Justfile @@ -42,3 +42,6 @@ web *args: fix: cargo fix --workspace --lib --allow-dirty cargo fmt --all + +push: + git push origin --tags && git push diff --git a/src/error.rs b/src/error.rs index ca6df6c..6b41fbf 100644 --- a/src/error.rs +++ b/src/error.rs @@ -54,7 +54,6 @@ pub enum AssetError { #[derive(thiserror::Error, Debug)] pub enum PlatformError { #[error("Console initialization failed: {0}")] - #[cfg(any(windows, target_os = "emscripten"))] ConsoleInit(String), } diff --git a/src/events.rs b/src/events.rs index 6dada3f..ac205cc 100644 --- a/src/events.rs +++ b/src/events.rs @@ -22,6 +22,7 @@ pub enum GameCommand { /// TODO: Display pause state, fix debug rendering pause distress TogglePause, /// Toggle fullscreen mode (desktop only) + #[cfg(not(target_os = "emscripten"))] ToggleFullscreen, }