mirror of
https://github.com/lightsoutgames/godot-tts
synced 2024-11-22 12:25:56 +00:00
Don't initialize TTS in server builds after all.
This commit is contained in:
parent
e2f81c32dc
commit
a7b8ecb775
4
TTS.gd
4
TTS.gd
|
@ -6,7 +6,7 @@ var TTS
|
||||||
var tts = null
|
var tts = null
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
if OS.has_feature("JavaScript"):
|
if OS.get_name() == "Server" or OS.has_feature("JavaScript"):
|
||||||
return
|
return
|
||||||
elif Engine.has_singleton("AndroidTTS"):
|
elif Engine.has_singleton("AndroidTTS"):
|
||||||
tts = Engine.get_singleton("AndroidTTS")
|
tts = Engine.get_singleton("AndroidTTS")
|
||||||
|
@ -79,4 +79,4 @@ func singular_or_plural(count, singular, plural):
|
||||||
func _exit_tree():
|
func _exit_tree():
|
||||||
if not tts or not TTS:
|
if not tts or not TTS:
|
||||||
return
|
return
|
||||||
tts.free()
|
tts.free()
|
|
@ -1,6 +1,5 @@
|
||||||
[entry]
|
[entry]
|
||||||
|
|
||||||
Server.64="res://addons/godot-tts/target/debug/libgodot_tts.so"
|
|
||||||
Windows.64="res://addons/godot-tts/target/debug/godot_tts.dll"
|
Windows.64="res://addons/godot-tts/target/debug/godot_tts.dll"
|
||||||
X11.64="res://addons/godot-tts/target/debug/libgodot_tts.so"
|
X11.64="res://addons/godot-tts/target/debug/libgodot_tts.so"
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
[entry]
|
[entry]
|
||||||
|
|
||||||
Server.64="res://addons/godot-tts/target/release/libgodot_tts.so"
|
|
||||||
Windows.64="res://addons/godot-tts/target/release/godot_tts.dll"
|
Windows.64="res://addons/godot-tts/target/release/godot_tts.dll"
|
||||||
X11.64="res://addons/godot-tts/target/release/libgodot_tts.so"
|
X11.64="res://addons/godot-tts/target/release/libgodot_tts.so"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user