fixed: review findings - robustness, dead code, missing tests
several smaller fixes from the code review: - add os_version to RuleContext + OsCondition for mojang rules that constrain natives selection by host version (rare, but in the spec). - factor mojang_os_name/arch/version into a shared launch_profile::system module instead of duplicating between net/mojang.rs and launch/mod.rs. - get_json and get_bytes now retry transient failures (5xx, connect, body decode) via a shared get_with_retry envelope; previously only download_file had retry logic. - migrate_legacy_meta_if_needed falls back to the stale cached profile with a warn log on network failure instead of erroring out (offline launches now work). - tightened legacy-loader detection by requiring the unique-to-rmcl gameArguments field; clearer error when loader_version is absent. - forge legacy versionInfo write uses compact serialization (no pretty-print key reorder). - deleted dead fetch_version_meta and save_profile_json. - documented quick-play templates omission in templates::lookup. - added end-to-end test that loads a vanilla profile from disk, loads a loader profile with inheritsFrom, resolves, renders, and snapshots.
This commit is contained in:
1 parent
19887643bc
commit
412e6ff91a
12 files changed
+395
-74
No files matched your search
@@ -8,4 +8,5 @@ pub mod model;
|
||||
pub mod render;
|
||||
pub mod resolve;
|
||||
pub mod rules;
|
||||
pub mod system;
|
||||
pub mod templates;
|
||||
Reference in new issue
Block a user