mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-12 09:10:48 -06:00
fix: remove ConsoleInit condition, add ToggleFullscreen condition, helper 'push' just recipe
This commit is contained in:
3
Justfile
3
Justfile
@@ -42,3 +42,6 @@ web *args:
|
|||||||
fix:
|
fix:
|
||||||
cargo fix --workspace --lib --allow-dirty
|
cargo fix --workspace --lib --allow-dirty
|
||||||
cargo fmt --all
|
cargo fmt --all
|
||||||
|
|
||||||
|
push:
|
||||||
|
git push origin --tags && git push
|
||||||
|
|||||||
@@ -54,7 +54,6 @@ pub enum AssetError {
|
|||||||
#[derive(thiserror::Error, Debug)]
|
#[derive(thiserror::Error, Debug)]
|
||||||
pub enum PlatformError {
|
pub enum PlatformError {
|
||||||
#[error("Console initialization failed: {0}")]
|
#[error("Console initialization failed: {0}")]
|
||||||
#[cfg(any(windows, target_os = "emscripten"))]
|
|
||||||
ConsoleInit(String),
|
ConsoleInit(String),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ pub enum GameCommand {
|
|||||||
/// TODO: Display pause state, fix debug rendering pause distress
|
/// TODO: Display pause state, fix debug rendering pause distress
|
||||||
TogglePause,
|
TogglePause,
|
||||||
/// Toggle fullscreen mode (desktop only)
|
/// Toggle fullscreen mode (desktop only)
|
||||||
|
#[cfg(not(target_os = "emscripten"))]
|
||||||
ToggleFullscreen,
|
ToggleFullscreen,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user