Add Engine::unregister_script_language and make Engine::register_script_language returns a Error

This commit is contained in:
Emmanuel Leblond
2022-10-09 22:03:59 +02:00
committed by Rémi Verschelde
parent ed85a2c8ce
commit 58f4139164
5 changed files with 39 additions and 11 deletions

View File

@ -70,8 +70,8 @@ public:
static bool is_scripting_enabled();
_FORCE_INLINE_ static int get_language_count() { return _language_count; }
static ScriptLanguage *get_language(int p_idx);
static void register_language(ScriptLanguage *p_language);
static void unregister_language(const ScriptLanguage *p_language);
static Error register_language(ScriptLanguage *p_language);
static Error unregister_language(const ScriptLanguage *p_language);
static void set_reload_scripts_on_save(bool p_enable);
static bool is_reload_scripts_on_save_enabled();