Add ability to force updates for outdated asset versions

This commit is contained in:
Ethan O'Brien
2026-09-27 11:39:31 -05:00
parent f1c8e96fbe
commit 99ba099d1b
4 changed files with 9 additions and 1 deletions
+4 -1
View File
@@ -100,13 +100,16 @@ impl AssetVersion {
}
fn valid_hashes(asset_version: &str, platform: &str) -> Vec<String> {
let args = crate::get_args();
let mut out = Vec::new();
for entry in ASSET_VERSIONS {
if entry.platform != platform {
continue;
}
if entry.version == asset_version && !entry.hash.is_empty() {
out.push(entry.stock_hash());
if entry.latest || !args.force_updates {
out.push(entry.stock_hash());
}
}
if entry.latest {
if let Some((ov, oh)) = entry.override_pair() {