diff --git a/singletons/FileLoader.gd b/singletons/FileLoader.gd index 1840836..8c1efe2 100644 --- a/singletons/FileLoader.gd +++ b/singletons/FileLoader.gd @@ -31,16 +31,16 @@ func find_file(name: String, print_notfound:=false) -> String: return NOT_FOUND -var fallback_audiostream = AudioStreamOGGVorbis.new() -var fallback_videostream = VideoStreamWebm.new() +var fallback_audiostream: AudioStream = AudioStreamOGGVorbis.new() +var fallback_videostream: VideoStream = VideoStreamWebm.new() var fallback_texture := ImageTexture.new() -func load_ogg(name: String) -> AudioStreamOGGVorbis: # Searches through all of the paths to find the file +func load_ogg(name: String) -> AudioStream: # Searches through all of the paths to find the file match find_file(name): NOT_FOUND: return fallback_audiostream var filename: return FileHelpers.load_ogg(filename) -func load_video(name: String): # Searches through all of the paths to find the file +func load_video(name: String) -> VideoStream: # Searches through all of the paths to find the file match find_file(name): NOT_FOUND: return fallback_videostream var filename: return FileHelpers.load_video(filename)