Issue 320 (#396) - Mobile fixes

Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
Co-authored-by: dploeger <dploeger@users.noreply.github.com>
This commit is contained in:
Dennis Ploeger
2021-09-23 08:32:08 +02:00
committed by GitHub
parent bb93dc1ef3
commit 60ea4d851b
82 changed files with 897 additions and 427 deletions

View File

@@ -68,11 +68,11 @@ func _get_voice_file(key: String, start: String = "") -> String:
if _voice_file != "":
return _voice_file
else:
if file_name == "%s.%s" % [
if file_name == "%s.%s.import" % [
key,
ProjectSettings.get("escoria/sound/speech_extension")
]:
return start.plus_file(file_name)
return start.plus_file(file_name.trim_suffix(".import"))
file_name = _dir.get_next()
return ""