feat(tui): instance launching, tabs, profiles overhaul
This commit is contained in:
1 parent
09d548272b
commit
46087c47a8
15 files changed
+813
-71
No files matched your search
@@ -177,6 +177,18 @@ impl InstanceManager {
|
||||
}
|
||||
}
|
||||
|
||||
let meta_json_path = self.meta_dir.join("versions").join(game_version).join("meta.json");
|
||||
match serde_json::to_string_pretty(&version_meta) {
|
||||
Ok(json) => {
|
||||
if let Err(e) = std::fs::write(&meta_json_path, &json) {
|
||||
tracing::warn!("Failed to save version meta: {}", e);
|
||||
}
|
||||
}
|
||||
Err(e) => {
|
||||
tracing::warn!("Failed to serialize version meta: {}", e);
|
||||
}
|
||||
}
|
||||
|
||||
match crate::net::mojang::download_libraries(&self.client, &version_meta, &self.meta_dir).await {
|
||||
Ok(_) => {}
|
||||
Err(e) => {
|
||||
|
||||
Reference in new issue
Block a user