diff options
| author | Thomas Herzog | 2017-07-27 13:03:10 +0200 |
|---|---|---|
| committer | GitHub | 2017-07-27 13:03:10 +0200 |
| commit | 3c53b3560fe1ae6b476cf6941ca0d7c79e0093a7 (patch) | |
| tree | 87dc648f137a9d0d47766b281427766f621ad48f /modules/nativescript/register_types.cpp | |
| parent | 411f09a512d5847fc9c6270439308d1e3093f211 (diff) | |
| parent | 135c2112ad87265d35899dede34c3a7e06ec2f54 (diff) | |
| download | godot-3c53b35.tar.gz godot-3c53b35.tar.zst godot-3c53b35.zip | |
Merge pull request #9907 from karroffel/nativescript-init-call
NativeScript changes and OS symbol lookup optional error handling
Diffstat (limited to 'modules/nativescript/register_types.cpp')
| -rw-r--r-- | modules/nativescript/register_types.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/nativescript/register_types.cpp b/modules/nativescript/register_types.cpp index a8a931343..dfa16d8a2 100644 --- a/modules/nativescript/register_types.cpp +++ b/modules/nativescript/register_types.cpp @@ -50,7 +50,8 @@ void init_call_cb(void *p_handle, godot_string *p_proc_name, void *p_data, int p Error err = OS::get_singleton()->get_dynamic_library_symbol_handle( p_handle, *(String *)p_proc_name, - library_proc); + library_proc, + true); // we print our own message if (err != OK) { ERR_PRINT((String("GDNative procedure \"" + *(String *)p_proc_name) + "\" does not exists and can't be called").utf8().get_data()); return; @@ -75,7 +76,8 @@ void thread_call_cb(void *p_handle, godot_string *p_proc_name, void *p_data, int Error err = OS::get_singleton()->get_dynamic_library_symbol_handle( p_handle, *(String *)p_proc_name, - library_proc); + library_proc, + true); if (err != OK) { // it's fine if thread callbacks are not present in the library. return; |
