add renet_steam support (#92)

This commit is contained in:
extrawurst
2025-12-20 19:19:13 +01:00
committed by GitHub
parent 7ea9046414
commit 7d280af821
9 changed files with 214 additions and 73 deletions

View File

@@ -4,10 +4,11 @@ use bevy_pkv::prelude::*;
use crate::{client::audio::SoundSettings, utils::Debounce};
pub fn plugin(app: &mut App) {
#[cfg(not(feature = "dbg"))]
app.insert_resource(PkvStore::new("Rustunit", "HEDZ"));
app.add_systems(Update, persist_settings);
app.add_systems(Startup, load_settings);
app.add_systems(Update, persist_settings.run_if(resource_exists::<PkvStore>));
app.add_systems(Startup, load_settings.run_if(resource_exists::<PkvStore>));
}
fn persist_settings(