mirror of
https://github.com/LCE-Hub/LCE-Emerald-Launcher.git
synced 2026-07-15 23:10:48 +00:00
feat: customization saving
This commit is contained in:
@@ -21,6 +21,7 @@ pub fn load_config_raw(app: AppHandle) -> AppConfig {
|
||||
theme_palette_id: None,
|
||||
apple_silicon_performance_boost: None,
|
||||
custom_editions: None,
|
||||
customizations: None,
|
||||
profile: Some("legacy_evolved".into()),
|
||||
animations_enabled: Some(true),
|
||||
vfx_enabled: Some(true),
|
||||
|
||||
@@ -25,6 +25,13 @@ pub struct CustomEdition {
|
||||
pub logo: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Debug)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct CustomizationEntry {
|
||||
pub title_image: Option<String>,
|
||||
pub panorama: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Debug)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct AppConfig {
|
||||
@@ -36,6 +43,7 @@ pub struct AppConfig {
|
||||
pub theme_palette_id: Option<String>,
|
||||
pub apple_silicon_performance_boost: Option<bool>,
|
||||
pub custom_editions: Option<Vec<CustomEdition>>,
|
||||
pub customizations: Option<std::collections::HashMap<String, CustomizationEntry>>,
|
||||
pub profile: Option<String>,
|
||||
pub animations_enabled: Option<bool>,
|
||||
pub vfx_enabled: Option<bool>,
|
||||
|
||||
Reference in New Issue
Block a user