diff options
| author | 2026-01-29 15:39:55 +0800 | |
|---|---|---|
| committer | 2026-01-29 15:39:55 +0800 | |
| commit | 2181e4a26c1581b4402312a7974f00cefb125752 (patch) | |
| tree | 8d38ce794f4b31ad1de9e61738eba125acc39ddd /src-tauri/src/core/instance.rs | |
| parent | 410c949b87424b4ac0df5e3f38930781c6eda147 (diff) | |
| parent | 5d630a24bed07dca20b6ddf55ffe4be36399ad0f (diff) | |
| download | DropOut-2181e4a26c1581b4402312a7974f00cefb125752.tar.gz DropOut-2181e4a26c1581b4402312a7974f00cefb125752.zip | |
Refactor Java runtime to async modular system with Adoptium support (#82)
Diffstat (limited to 'src-tauri/src/core/instance.rs')
| -rw-r--r-- | src-tauri/src/core/instance.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src-tauri/src/core/instance.rs b/src-tauri/src/core/instance.rs index e7746b2..e842ec9 100644 --- a/src-tauri/src/core/instance.rs +++ b/src-tauri/src/core/instance.rs @@ -34,6 +34,7 @@ pub struct Instance { pub jvm_args_override: Option<String>, // JVM参数覆盖(可选) #[serde(default)] pub memory_override: Option<MemoryOverride>, // 内存设置覆盖(可选) + pub java_path_override: Option<String>, // 实例级Java路径覆盖(可选) } /// Memory settings override for an instance @@ -127,6 +128,7 @@ impl InstanceState { mod_loader_version: None, jvm_args_override: None, memory_override: None, + java_path_override: None, }; let mut config = self.instances.lock().unwrap(); @@ -283,6 +285,7 @@ impl InstanceState { last_played: None, jvm_args_override: source_instance.jvm_args_override.clone(), memory_override: source_instance.memory_override.clone(), + java_path_override: source_instance.java_path_override.clone(), }; self.update_instance(new_instance.clone())?; |