aboutsummaryrefslogtreecommitdiff
path: root/game/src
diff options
context:
space:
mode:
author George L. Albany <Megacake1234@gmail.com>2023-03-11 21:46:21 +0100
committer GitHub <noreply@github.com>2023-03-11 21:46:21 +0100
commit48867142aa9ae286ff61bf3c2da4e51af0680025 (patch)
tree8635940e139299409b3c8fab62e82ae3d33fbf6e /game/src
parent62bc0a0c2fc851a1e167b8d8da7c280f5e525921 (diff)
parente60583c141dde1202bca03130a709a19e3d7d19a (diff)
Merge pull request #62 from Spartan322/fix/music-for-export
Diffstat (limited to 'game/src')
-rw-r--r--game/src/MusicConductor/MusicConductor.gd3
1 files changed, 2 insertions, 1 deletions
diff --git a/game/src/MusicConductor/MusicConductor.gd b/game/src/MusicConductor/MusicConductor.gd
index 1dfa95d..c0cfc46 100644
--- a/game/src/MusicConductor/MusicConductor.gd
+++ b/game/src/MusicConductor/MusicConductor.gd
@@ -58,7 +58,8 @@ func select_previous_song() -> void:
func _ready():
var dir = DirAccess.open(music_directory)
for fname in dir.get_files():
- if !fname.ends_with(".import"):
+ if fname.ends_with(".import"):
+ fname = fname.get_basename()
if fname.get_basename() == first_song_name:
_selected_track = _available_songs.size()
_available_songs.append(SongInfo.new(music_directory, fname))