From cdae65ec872cb096a0c706fb67a6529f204bbf7f Mon Sep 17 00:00:00 2001 From: Luke Hubmayer-Werner Date: Sat, 18 Mar 2023 14:34:42 +1030 Subject: [PATCH] change type hints --- singletons/FileLoader.gd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)