Fixed file-choosing methods not removing file extensions, fixed typo in Puddle envirnment registration

This commit is contained in:
Maruno17
2022-11-23 22:43:11 +00:00
parent bd04112122
commit 91efb4684b
6 changed files with 64 additions and 26 deletions

View File

@@ -105,7 +105,7 @@ class PokemonJukeboxScreen
Dir.glob("*.mid") { |f| files.push(f) }
Dir.glob("*.midi") { |f| files.push(f) }
}
files.map! { |f| f.chomp(File.extname(f)) }
files.map! { |f| File.basename(f, ".*") }
files.uniq!
files.sort! { |a, b| a.downcase <=> b.downcase }
@scene.pbSetCommands(files, 0)