mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-17 18:12:36 -06:00
fix: cfg on ConsoleInit for windows/emscripten, use simplified cfg for windows/linux
This commit is contained in:
@@ -56,6 +56,7 @@ pub enum AssetError {
|
||||
#[derive(thiserror::Error, Debug)]
|
||||
pub enum PlatformError {
|
||||
#[error("Console initialization failed: {0}")]
|
||||
#[cfg(any(windows, target_os = "emscripten"))]
|
||||
ConsoleInit(String),
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ mod desktop;
|
||||
pub use desktop::*;
|
||||
|
||||
/// Tracing buffer is only used on Windows.
|
||||
#[cfg(target_os = "windows")]
|
||||
#[cfg(windows)]
|
||||
pub mod tracing_buffer;
|
||||
|
||||
#[cfg(target_os = "emscripten")]
|
||||
|
||||
Reference in New Issue
Block a user