Skip to content

Commit

Permalink
Merge pull request #35 from subalterngames/uppercase_extensions
Browse files Browse the repository at this point in the history
Fixed: Cacophony can't found files (saves, soundfonts, etc.) if the file extension contains uppercase characters
  • Loading branch information
subalterngames authored May 29, 2024
2 parents 730b417 + fdd923f commit 91cc116
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## 0.2.4

- Fixed: Cacophony can't found files (saves, soundfonts, etc.) if the file extension contains uppercase characters.
- Fixed clippy warnings for Rust 1.78
- The GitHub workflow for building Cacophony now uses the latest version of Rust.

Expand Down
3 changes: 2 additions & 1 deletion common/src/open_file/child_paths.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ impl ChildPaths {
.filter(|p| {
p.is_file()
&& p.extension().is_some()
&& extension.to_str(false) == p.extension().unwrap().to_str().unwrap()
&& extension.to_str(false)
== p.extension().unwrap().to_str().unwrap().to_lowercase()
})
.collect();
files.sort();
Expand Down

0 comments on commit 91cc116

Please sign in to comment.