mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-09 22:07:53 -06:00
refactor: improve console handling & logs, scoped mutex lock, fix linux unused imports
This commit is contained in:
@@ -32,6 +32,9 @@ pub trait CommonPlatform {
|
||||
|
||||
/// Loads raw asset data using the appropriate platform-specific method.
|
||||
fn get_asset_bytes(&self, asset: Asset) -> Result<Cow<'static, [u8]>, AssetError>;
|
||||
|
||||
/// Whether the platform requires a console to be initialized.
|
||||
fn requires_console(&self) -> bool;
|
||||
}
|
||||
|
||||
/// Returns the appropriate platform implementation based on compile-time target.
|
||||
|
||||
Reference in New Issue
Block a user