summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorKarroffel <therzog@mail.de>2017-07-27 09:23:21 +0200
committerKarroffel <therzog@mail.de>2017-07-27 11:13:21 +0200
commit135c2112ad87265d35899dede34c3a7e06ec2f54 (patch)
tree87dc648f137a9d0d47766b281427766f621ad48f /core
parenta2795e95318f57747dbb86a2a12b3567838b8c7d (diff)
added an optional parameter to OS symbol lookup
When looking up a symbol from a library, previously an error was shown when the symbol did not exist. That caused confusion when the lookup was completely optional. This adds a new parameter to that method so that those errors can be handled manually if needed.
Diffstat (limited to 'core')
-rw-r--r--core/os/os.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/os/os.h b/core/os/os.h
index 957c1d0ba7..703c6a6bcd 100644
--- a/core/os/os.h
+++ b/core/os/os.h
@@ -184,9 +184,9 @@ public:
virtual void set_ime_position(const Point2 &p_pos) {}
- 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, bool p_optional = false) { return ERR_UNAVAILABLE; }
virtual void set_keep_screen_on(bool p_enabled);
virtual bool is_keep_screen_on() const;