diff options
| author | 2026-01-14 14:24:25 +0800 | |
|---|---|---|
| committer | 2026-01-14 14:24:25 +0800 | |
| commit | 80bd692e633002e1920c9ddae7cabc7ec2eadb6a (patch) | |
| tree | 36d59d2fcd87d118c6db443c9208bf34b1025eff /src-tauri/src/core/config.rs | |
| parent | e8e139c07d05e2f29f04906019dff5f3c520f8cc (diff) | |
| parent | 561469b5a895d7c99fe6c9e73266b49ebe4237b8 (diff) | |
| download | DropOut-80bd692e633002e1920c9ddae7cabc7ec2eadb6a.tar.gz DropOut-80bd692e633002e1920c9ddae7cabc7ec2eadb6a.zip | |
Merge pull request #20 from HsiangNianian/dev
Diffstat (limited to 'src-tauri/src/core/config.rs')
| -rw-r--r-- | src-tauri/src/core/config.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src-tauri/src/core/config.rs b/src-tauri/src/core/config.rs index 47c5306..d6d594f 100644 --- a/src-tauri/src/core/config.rs +++ b/src-tauri/src/core/config.rs @@ -5,12 +5,14 @@ use std::sync::Mutex; use tauri::{AppHandle, Manager}; #[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(default)] pub struct LauncherConfig { pub min_memory: u32, // in MB pub max_memory: u32, // in MB pub java_path: String, pub width: u32, pub height: u32, + pub download_threads: u32, // concurrent download threads (1-128) } impl Default for LauncherConfig { @@ -21,6 +23,7 @@ impl Default for LauncherConfig { java_path: "java".to_string(), width: 854, height: 480, + download_threads: 32, } } } |