diff --git a/crates/tcli/src/game/registry.rs b/crates/tcli/src/game/registry.rs index 8dc9e00..60ad4b7 100644 --- a/crates/tcli/src/game/registry.rs +++ b/crates/tcli/src/game/registry.rs @@ -6,11 +6,13 @@ use serde::{Deserialize, Serialize}; use super::{ecosystem, steam}; use crate::error::Error; -use crate::game::win; use crate::project::ProjectPath; use crate::ts::v1::models::ecosystem::{GameDef, GameDefPlatform}; use crate::util::os::OS; +#[cfg(windows)] +use crate::game::win; + #[derive(Serialize, Deserialize, Debug, PartialEq)] pub struct GameData { pub ecosystem_label: String, @@ -89,21 +91,21 @@ impl GameImportBuilder { win::gamepass::get_game_path(identifier).map(|x| (dist, x)) } #[cfg(target_os = "linux")] - GameDefPlatform::GamePass { _identifier } => None, + GameDefPlatform::GamePass { identifier: _ } => None, #[cfg(windows)] GameDefPlatform::Origin { identifier } => { win::eadesktop::get_game_path(identifier).map(|x| (dist, x)) } #[cfg(target_os = "linux")] - GameDefPlatform::Origin { _identifier } => None, + GameDefPlatform::Origin { identifier: _ } => None, #[cfg(windows)] GameDefPlatform::EpicGames { identifier } => { win::egs::get_game_path(identifier).map(|x| (dist, x)) } #[cfg(target_os = "linux")] - GameDefPlatform::EpicGames { _identifier } => None, + GameDefPlatform::EpicGames { identifier: _ } => None, _ => None, })