fix: prepare frontend production exports

This commit is contained in:
ANG-Server
2026-07-20 21:07:27 +08:00
parent 435c578dde
commit 0bab768b14
8 changed files with 158 additions and 8 deletions

View File

@@ -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: