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

Function reset_for_tests

perro_source/api_modules/perro_steamworks/src/app.rs:20–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18
19#[cfg(test)]
20pub(crate) fn reset_for_tests() {
21 if let Ok(mut state) = state().lock() {
22 *state = SteamState::default();
23 }
24}
25
26pub fn init_from_config(enabled: bool, app_id: Option<u32>) -> Result<(), SteamError> {
27 init_from_config_with_input(enabled, app_id, SteamInputMode::Fallback)

Calls 1

stateFunction · 0.70