forked from xiangwang25/whale-town-front-v2
fix: prepare frontend production exports
This commit is contained in:
@@ -78,10 +78,11 @@ func _load_streams() -> void:
|
||||
_friendStream = _load_wav_stream(FRIEND_NOTIFICATION_PATH)
|
||||
|
||||
func _load_wav_stream(path: String) -> AudioStreamWAV:
|
||||
var stream := AudioStreamWAV.load_from_file(ProjectSettings.globalize_path(path))
|
||||
if stream == null:
|
||||
var resource := load(path)
|
||||
if not (resource is AudioStreamWAV):
|
||||
push_warning("NotificationSoundManager: 提醒音效加载失败: %s" % path)
|
||||
return stream
|
||||
return null
|
||||
return resource as AudioStreamWAV
|
||||
|
||||
func _stream_for_kind(kind: String) -> AudioStream:
|
||||
match kind:
|
||||
|
||||
Reference in New Issue
Block a user