From a393e0a2f2c3678a3ea869dc1417fa269f2b1040 Mon Sep 17 00:00:00 2001 From: Filip Wandzio Date: Sat, 24 Jan 2026 08:29:14 +0100 Subject: Resolve audio not loading bug Ensure all assets are downloading for each version Temporarily disable minecraft versions older than 1.8 because of the asset/manifest loading issues Implement basic documentation of modules Implement basic async/multithreading for downloading assets --- src/util/sha1.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/util/sha1.rs') diff --git a/src/util/sha1.rs b/src/util/sha1.rs index c5f1021..6684963 100644 --- a/src/util/sha1.rs +++ b/src/util/sha1.rs @@ -3,11 +3,12 @@ use std::path::Path; use sha1::{Digest, Sha1}; +use tokio::fs::read; use crate::errors::McError; pub async fn sha1_hex(path: &Path) -> Result { - let data = tokio::fs::read(path).await?; + let data = read(path).await?; let mut hasher = Sha1::new(); hasher.update(&data); Ok(format!("{:x}", hasher.finalize())) -- cgit v1.2.3