From 2281942fb3ac5889abc6e95df27a80e71fe32c0e Mon Sep 17 00:00:00 2001 From: Karroffel Date: Wed, 8 Mar 2017 02:50:13 +0100 Subject: Added methods for opening dynamic libraries to OS --- core/os/os.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core') diff --git a/core/os/os.h b/core/os/os.h index 46e57e5186..dbcbaaedce 100644 --- a/core/os/os.h +++ b/core/os/os.h @@ -177,6 +177,10 @@ public: virtual void set_borderless_window(int p_borderless) {} virtual bool get_borderless_window() { return 0; } + virtual Error open_dynamic_library(const String p_path, void* &p_library_handle) { return ERR_UNAVAILABLE; }; + virtual Error close_dynamic_library(void* p_library_handle) { return ERR_UNAVAILABLE; }; + virtual Error get_dynamic_library_symbol_handle(void* p_library_handle, const String p_name, void* &p_symbol_handle) { return ERR_UNAVAILABLE; }; + virtual void set_keep_screen_on(bool p_enabled); virtual bool is_keep_screen_on() const; virtual void set_low_processor_usage_mode(bool p_enabled); -- cgit v1.2.3 From 67f59bc2d9e2ce5faa9507017d49827753981e1e Mon Sep 17 00:00:00 2001 From: Karroffel Date: Wed, 8 Mar 2017 03:59:12 +0100 Subject: increased maximum number of scripting languages --- core/script_language.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/script_language.h b/core/script_language.h index 6c37074639..88584e4ef9 100644 --- a/core/script_language.h +++ b/core/script_language.h @@ -43,7 +43,7 @@ typedef void (*ScriptEditRequestFunction)(const String &p_path); class ScriptServer { enum { - MAX_LANGUAGES = 4 + MAX_LANGUAGES = 16 }; static ScriptLanguage *_languages[MAX_LANGUAGES]; -- cgit v1.2.3 From fd553087867187220d4f6b8217854dd8e9be2667 Mon Sep 17 00:00:00 2001 From: Karroffel Date: Mon, 3 Apr 2017 16:11:38 +0200 Subject: added dlscript module This module was written by bojidar-bg and me, with the help of ClikCode and touilleMan. This adds a module to Godot that enables the use of dynamic libraries as a source for scripts. That also allows third party libraries to be linked to Godot more easily and without creating modules. For a readme see https://github.com/GodotNativeTools/godot_headers/blob/master/README.md --- core/os/os.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core') diff --git a/core/os/os.h b/core/os/os.h index dbcbaaedce..0febfb70cf 100644 --- a/core/os/os.h +++ b/core/os/os.h @@ -177,9 +177,9 @@ public: virtual void set_borderless_window(int p_borderless) {} virtual bool get_borderless_window() { return 0; } - virtual Error open_dynamic_library(const String p_path, void* &p_library_handle) { return ERR_UNAVAILABLE; }; - virtual Error close_dynamic_library(void* p_library_handle) { return ERR_UNAVAILABLE; }; - virtual Error get_dynamic_library_symbol_handle(void* p_library_handle, const String p_name, void* &p_symbol_handle) { return ERR_UNAVAILABLE; }; + virtual Error open_dynamic_library(const String p_path, void *&p_library_handle) { return ERR_UNAVAILABLE; }; + virtual Error close_dynamic_library(void *p_library_handle) { return ERR_UNAVAILABLE; }; + virtual Error get_dynamic_library_symbol_handle(void *p_library_handle, const String p_name, void *&p_symbol_handle) { return ERR_UNAVAILABLE; }; virtual void set_keep_screen_on(bool p_enabled); virtual bool is_keep_screen_on() const; -- cgit v1.2.3