added: vanilla launch flow uses LaunchProfile with render + raw-byte storage
vanilla launches now read upstream mojang JSON via the new LaunchProfile path, render game/JVM args through launch_profile::render with template substitution, and store the cached meta.json byte-for-byte instead of re-serializing through a narrow struct. legacy stripped meta.json files are re-fetched on first launch. adds HttpClient::get_bytes and fetch_version_meta_with_raw; collapses the two library-rule evaluators into one shared launch_profile::rules::evaluate.
This commit is contained in:
1 parent
22e4481a2b
commit
2029005c78
6 files changed
+629
-237
No files matched your search
@@ -71,6 +71,10 @@ impl HttpClient {
|
||||
pub async fn get_json<T: DeserializeOwned>(&self, url: &str) -> Result<T, NetError> {
|
||||
Ok(self.get(url).await?.json().await?)
|
||||
}
|
||||
|
||||
pub async fn get_bytes(&self, url: &str) -> Result<Vec<u8>, NetError> {
|
||||
Ok(self.get(url).await?.bytes().await?.to_vec())
|
||||
}
|
||||
}
|
||||
|
||||
const MAX_RETRIES: u32 = 3;
|
||||
|
||||
Reference in new issue
Block a user