Allow to load file with ignore case

This commit is contained in:
2025-12-12 10:50:21 +08:00
parent 1203b25b63
commit 552160ec86
2 changed files with 131 additions and 1 deletions

View File

@@ -90,7 +90,7 @@ impl Pgd3 {
let path = {
let mut pb = std::path::PathBuf::from(filename);
pb.set_file_name(&header.base_name);
pb
crate::utils::files::get_ignorecase_path(&pb)?
};
crate::utils::files::read_file(&path).map_err(|e| {
anyhow::anyhow!("Failed to read base image file '{}': {}", path.display(), e)