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/fs.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/util/fs.rs') diff --git a/src/util/fs.rs b/src/util/fs.rs index b86c0d7..8ecd0d0 100644 --- a/src/util/fs.rs +++ b/src/util/fs.rs @@ -2,11 +2,13 @@ use std::path::Path; +use tokio::fs::remove_file; + use crate::errors::McError; pub async fn remove_if_exists(path: &Path) -> Result<(), McError> { if path.exists() { - tokio::fs::remove_file(path).await?; + remove_file(path).await?; } Ok(()) } -- cgit v1.2.3