mirror of
https://github.com/lifegpc/msg-tool.git
synced 2026-06-07 05:18:44 +08:00
Allow to load file with ignore case
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user