MCPcopy Create free account
hub / github.com/PerroEngine/Perro / with_client

Function with_client

perro_source/api_modules/perro_steamworks/src/app.rs:137–149  ·  view source on GitHub ↗
(
    f: impl FnOnce(&steamworks::Client) -> Result<T, SteamError>,
)

Source from the content-addressed store, hash-verified

135 Ok(())
136}
137
138/// Ask the OS to start the Steam client (no-op if already running). Fire and
139/// forget: the game does not wait for it or reconnect this session.
140fn open_steam_client() {
141 #[cfg(target_os = "windows")]
142 let spawned = std::process::Command::new("explorer")
143 .arg("steam://open/main")
144 .spawn();
145 #[cfg(target_os = "macos")]
146 let spawned = std::process::Command::new("open")
147 .arg("steam://open/main")
148 .spawn();
149 #[cfg(all(unix, not(target_os = "macos")))]
150 let spawned = std::process::Command::new("xdg-open")
151 .arg("steam://open/main")
152 .spawn();

Callers 15

is_installedFunction · 0.85
is_dlc_installedFunction · 0.85
is_dlc_id_installedFunction · 0.85
is_subscribedFunction · 0.85
is_subscribed_appFunction · 0.85
is_vac_bannedFunction · 0.85
is_cybercafeFunction · 0.85
is_low_violenceFunction · 0.85
get_build_idFunction · 0.85
get_install_dirFunction · 0.85
get_ownerFunction · 0.85

Calls 3

cloneMethod · 0.80
stateFunction · 0.70

Tested by

no test coverage detected