Skip to content

Commit

Permalink
Fixed: Cacophony can't found files (saves, soundfonts, etc.) if the f…
Browse files Browse the repository at this point in the history
…ile extension contains uppercase characters.
  • Loading branch information
subalterngames committed May 16, 2024
1 parent da9e964 commit 76f476b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
14 changes: 7 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
members = ["audio", "common", "input", "io", "render", "text"]

[workspace.package]
version = "0.2.3"
version = "0.2.4"
authors = ["Esther Alter <subalterngames@gmail.com>"]
description = "A minimalist and ergonomic MIDI sequencer"
documentation = "https://github.com/subalterngames/cacophony"
Expand Down Expand Up @@ -86,7 +86,7 @@ speech_dispatcher_0_9 = ["text/speech_dispatcher_0_9"]

[package]
name = "cacophony"
version = "0.2.3"
version = "0.2.4"
authors = ["Esther Alter <subalterngames@gmail.com>"]
description = "A minimalist and ergonomic MIDI sequencer"
documentation = "https://github.com/subalterngames/cacophony"
Expand Down Expand Up @@ -122,7 +122,7 @@ path = "text"
name = "Cacophony"
identifier = "com.subalterngames.cacophony"
icon = ["icon/32.png", "icon/64.png", "icon/128.png", "icon/256.png"]
version = "0.2.3"
version = "0.2.4"
resources = ["data/*"]
copyright = "Copyright (c) Subaltern Games LLC 2023. All rights reserved."
short_description = "A minimalist and ergonomic MIDI sequencer."
Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# 0.2.x

## 0.2.4

- Fixed: Cacophony can't found files (saves, soundfonts, etc.) if the file extension contains uppercase characters.

## 0.2.3

- Optimized text and rectangle rendering, which reduces CPU usage by around 5%.
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 76f476b

Please sign in to comment.