From a7b8ecb77597c277894fe62faf2b9a895d3f840a Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Fri, 10 Jan 2020 15:06:13 -0600 Subject: [PATCH] Don't initialize TTS in server builds after all. --- TTS.gd | 4 ++-- godot-tts.gdnlib | 1 - godot-tts.gdnlib.release | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/TTS.gd b/TTS.gd index ba8a8d0..ed766e6 100644 --- a/TTS.gd +++ b/TTS.gd @@ -6,7 +6,7 @@ var TTS var tts = null func _ready(): - if OS.has_feature("JavaScript"): + if OS.get_name() == "Server" or OS.has_feature("JavaScript"): return elif Engine.has_singleton("AndroidTTS"): tts = Engine.get_singleton("AndroidTTS") @@ -79,4 +79,4 @@ func singular_or_plural(count, singular, plural): func _exit_tree(): if not tts or not TTS: return - tts.free() + tts.free() \ No newline at end of file diff --git a/godot-tts.gdnlib b/godot-tts.gdnlib index 2c3f863..8e93148 100644 --- a/godot-tts.gdnlib +++ b/godot-tts.gdnlib @@ -1,6 +1,5 @@ [entry] -Server.64="res://addons/godot-tts/target/debug/libgodot_tts.so" Windows.64="res://addons/godot-tts/target/debug/godot_tts.dll" X11.64="res://addons/godot-tts/target/debug/libgodot_tts.so" diff --git a/godot-tts.gdnlib.release b/godot-tts.gdnlib.release index 2e22313..1419fa3 100644 --- a/godot-tts.gdnlib.release +++ b/godot-tts.gdnlib.release @@ -1,6 +1,5 @@ [entry] -Server.64="res://addons/godot-tts/target/release/libgodot_tts.so" Windows.64="res://addons/godot-tts/target/release/godot_tts.dll" X11.64="res://addons/godot-tts/target/release/libgodot_tts.so"