mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
Fixed duplicate files listed in BGM/ME pickers in PBS file editors
This commit is contained in:
@@ -514,7 +514,8 @@ def pbSelectSE(canvas, audio)
|
||||
animfiles.concat(Dir.glob("*.ogg"))
|
||||
animfiles.concat(Dir.glob("*.wma"))
|
||||
}
|
||||
animfiles.sort! { |a, b| a.upcase <=> b.upcase }
|
||||
animfiles.uniq!
|
||||
animfiles.sort! { |a, b| a.downcase <=> b.downcase }
|
||||
animfiles = [_INTL("[Play user's cry]")] + animfiles
|
||||
cmdwin = pbListWindow(animfiles, 320)
|
||||
cmdwin.height = 480
|
||||
|
||||
@@ -224,17 +224,13 @@ class MusicFileLister
|
||||
@commands.clear
|
||||
Dir.chdir(folder) {
|
||||
# Dir.glob("*.mp3") { |f| @commands.push(f) }
|
||||
# Dir.glob("*.MP3") { |f| @commands.push(f) }
|
||||
Dir.glob("*.ogg") { |f| @commands.push(f) }
|
||||
Dir.glob("*.OGG") { |f| @commands.push(f) }
|
||||
Dir.glob("*.wav") { |f| @commands.push(f) }
|
||||
Dir.glob("*.WAV") { |f| @commands.push(f) }
|
||||
Dir.glob("*.mid") { |f| @commands.push(f) }
|
||||
Dir.glob("*.MID") { |f| @commands.push(f) }
|
||||
Dir.glob("*.midi") { |f| @commands.push(f) }
|
||||
Dir.glob("*.MIDI") { |f| @commands.push(f) }
|
||||
}
|
||||
@commands.sort!
|
||||
@commands.uniq!
|
||||
@commands.sort! { |a, b| a.downcase <=> b.downcase }
|
||||
@commands.length.times do |i|
|
||||
@index = i if @commands[i] == @setting
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user