Working Instance Sync

This commit is contained in:
Kr4ight
2026-04-06 21:13:02 +02:00
parent 950d7f0a1d
commit fba51d78b8
3 changed files with 90 additions and 6 deletions
+6 -2
View File
@@ -9,7 +9,7 @@ use std::{
sync::{Arc, Mutex},
};
use crate::launcher::launcher_dir;
use crate::{features::FeatureSettings, launcher::launcher_dir};
pub type SharedState = Arc<Mutex<AppState>>;
@@ -36,6 +36,7 @@ pub struct GameVersion {
#[derive(Clone, Serialize, Deserialize)]
pub struct LauncherSettings {
pub max_memory: u32,
pub features: FeatureSettings,
}
// --- App State ---
@@ -48,7 +49,10 @@ pub struct AppState {
impl Default for AppState {
fn default() -> Self {
Self {
settings: LauncherSettings { max_memory: 4096 },
settings: LauncherSettings {
max_memory: 4096,
features: FeatureSettings::default(),
},
version: String::from("1.21.6"),
}
}