mirror of
https://github.com/LCE-Hub/LCE-Emerald-Launcher.git
synced 2026-09-25 01:20:55 +00:00
feat(VersionsMenu): download to custom path (#87)
This commit is contained in:
@@ -22,6 +22,11 @@ pub fn get_instance_working_dir(app: &AppHandle, instance_id: &str) -> PathBuf {
|
||||
}
|
||||
}
|
||||
}
|
||||
if let Some(ref custom_paths) = config.custom_paths {
|
||||
if let Some(path) = custom_paths.get(instance_id) {
|
||||
return PathBuf::from(path);
|
||||
}
|
||||
}
|
||||
root.join("instances").join(instance_id)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user