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

Function flush_stats_store

perro_source/api_modules/perro_steamworks/src/app.rs:94–111  ·  view source on GitHub ↗
(client: &steamworks::Client)

Source from the content-addressed store, hash-verified

92 ) {
93 let _ = crate::input::shutdown();
94 let _ = crate::input::set_mode(SteamInputMode::Off);
95 }
96 let client = {
97 let mut state = state().lock().map_err(|_| SteamError::NotReady)?;
98 state.enabled = false;
99 state.app_id = None;
100 state.stats_store_requested = false;
101 state.client.take()
102 };
103 let _ = crate::events::clear();
104 drop(client);
105 Ok(())
106}
107
108pub(crate) fn request_stats_store() -> Result<(), SteamError> {
109 state()
110 .lock()
111 .map(|mut state| {
112 state.stats_store_requested = true;
113 })
114 .map_err(|_| SteamError::NotReady)

Callers 1

run_callbacksFunction · 0.85

Calls 1

stateFunction · 0.70

Tested by

no test coverage detected