mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
Refactors sound file checking (#93734)
This commit is contained in:
@@ -100,7 +100,7 @@
|
||||
var/datum/track/new_track = new()
|
||||
new_track.song_path = file("[global.config.directory]/jukebox_music/sounds/[track_file]")
|
||||
var/list/track_data = splittext(track_file, "+")
|
||||
if(length(track_data) < 3)
|
||||
if(length(track_data) < 3 || !IS_SOUND_FILE(new_track.song_path))
|
||||
continue
|
||||
new_track.song_name = track_data[1]
|
||||
new_track.song_length = text2num(track_data[2])
|
||||
|
||||
Reference in New Issue
Block a user