.hashes/.sha-sums, .iw4xrevision -> awcache.json

This commit is contained in:
2024-08-29 23:36:09 +02:00
parent 8d05683bd1
commit 9b215e5ea8
4 changed files with 70 additions and 35 deletions

View File

@@ -1,5 +1,5 @@
use colored::*;
use std::path::Path;
use std::{collections::HashMap, path::Path};
#[derive(serde::Deserialize, serde::Serialize, Clone)]
pub struct CdnFile {
@@ -74,3 +74,9 @@ impl PrintPrefix {
format!("[{}]{:width$}", self.text, "", width = self.padding).to_string()
}
}
#[derive(serde::Deserialize, serde::Serialize, Default)]
pub struct Cache {
pub iw4x_revision: String,
pub hashes: HashMap<String, String>,
}