From c0d3df99c36e1c3aedc8fd203192df556eddcc29 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Tue, 8 Jul 2025 22:23:16 -0400 Subject: [PATCH] Always read path as lowercase in UnpackedResource --- src/resource/unpacked.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/resource/unpacked.rs b/src/resource/unpacked.rs index fc0a366..fce281e 100644 --- a/src/resource/unpacked.rs +++ b/src/resource/unpacked.rs @@ -20,14 +20,14 @@ impl UnpackedResource { impl Resource for UnpackedResource { fn read(&mut self, path: &str) -> Option { let mut new_path = PathBuf::from(&self.base_directory); - new_path.push(path); + new_path.push(path.to_lowercase()); std::fs::read(new_path).ok() } fn exists(&mut self, path: &str) -> bool { let mut new_path = PathBuf::from(&self.base_directory); - new_path.push(path); + new_path.push(path.to_lowercase()); std::fs::exists(new_path).unwrap_or_default() }