fix(genshin): voicepack english

This commit is contained in:
2024-12-31 11:16:07 +07:00
parent 844453eabc
commit fc3a43bec7

View File

@ -278,8 +278,11 @@ class Game(GameABC):
voicepacks = [] voicepacks = []
for child in audio_assets.iterdir(): for child in audio_assets.iterdir():
if child.resolve().is_dir(): if child.resolve().is_dir():
name = child.name
if name.startswith("English"):
name = "English"
try: try:
voicepacks.append(VoicePackLanguage[child.name]) voicepacks.append(VoicePackLanguage[name])
except ValueError: except ValueError:
pass pass
return voicepacks return voicepacks