diff options
| author | Juan Linietsky | 2017-07-22 16:11:04 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-07-22 16:11:56 -0300 |
| commit | 0ad1a8f3d00f1927765f7ad687a470f96373729a (patch) | |
| tree | bbefc779772c882124abadce51235d6a755fe486 /core | |
| parent | c74a3275dcce579287d954451d225742581bbb42 (diff) | |
| download | godot-0ad1a8f3d00f1927765f7ad687a470f96373729a.tar.gz godot-0ad1a8f3d00f1927765f7ad687a470f96373729a.tar.zst godot-0ad1a8f3d00f1927765f7ad687a470f96373729a.zip | |
Diffstat (limited to 'core')
| -rw-r--r-- | core/script_language.cpp | 7 | ||||
| -rw-r--r-- | core/script_language.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/core/script_language.cpp b/core/script_language.cpp index 4a7fdc9d6..aeb157384 100644 --- a/core/script_language.cpp +++ b/core/script_language.cpp @@ -99,6 +99,13 @@ void ScriptServer::init_languages() { } } +void ScriptServer::finish_languages() { + + for (int i = 0; i < _language_count; i++) { + _languages[i]->finish(); + } +} + void ScriptServer::set_reload_scripts_on_save(bool p_enable) { reload_scripts_on_save = p_enable; diff --git a/core/script_language.h b/core/script_language.h index a81300233..7aba3ec0f 100644 --- a/core/script_language.h +++ b/core/script_language.h @@ -69,6 +69,7 @@ public: static void thread_exit(); static void init_languages(); + static void finish_languages(); }; class ScriptInstance; |
