diff options
author | Ariel Manzur <ariel@godotengine.org> | 2015-12-21 09:17:15 -0300 |
---|---|---|
committer | Ariel Manzur <ariel@godotengine.org> | 2015-12-21 09:17:15 -0300 |
commit | 0576e1e28f41f103cd06452d810a04265e3574cc (patch) | |
tree | 817c1a5e3ca8b8f786e013c0322e4052e7f85d59 /core | |
parent | 72a6b137ba256f5198843f8980107c350d52e5ca (diff) | |
parent | 15429d6ac95acb044c9eebd64356f33e7e5d14ef (diff) |
Merge branch 'master' of https://github.com/godotengine/godot
Diffstat (limited to 'core')
-rw-r--r-- | core/bind/core_bind.cpp | 11 | ||||
-rw-r--r-- | core/os/input.h | 2 |
2 files changed, 9 insertions, 4 deletions
diff --git a/core/bind/core_bind.cpp b/core/bind/core_bind.cpp index 743ae19a93..438db5d518 100644 --- a/core/bind/core_bind.cpp +++ b/core/bind/core_bind.cpp @@ -1883,6 +1883,14 @@ void _Thread::_start_func(void *ud) { Variant::CallError ce; const Variant* arg[1]={&t->userdata}; + // we don't know our thread pointer yet :( + if (t->name == "") { + // come up with a better name using maybe the filename on the Script? + //t->thread->set_name(t->target_method); + } else { + //t->thread->set_name(t->name); + }; + t->ret=t->target_instance->call(t->target_method,arg,1,ce); if (ce.error!=Variant::CallError::CALL_OK) { @@ -1941,9 +1949,6 @@ Error _Thread::start(Object *p_instance,const StringName& p_method,const Variant return ERR_CANT_CREATE; } - if (name != "") - thread->set_name(name); - return OK; } diff --git a/core/os/input.h b/core/os/input.h index 8aa0e6b18a..d81ebf4ec3 100644 --- a/core/os/input.h +++ b/core/os/input.h @@ -62,7 +62,7 @@ public: virtual float get_joy_axis(int p_device,int p_axis)=0; virtual String get_joy_name(int p_idx)=0; - virtual void joy_connection_changed(int p_idx, bool p_connected, String p_name)=0; + virtual void joy_connection_changed(int p_idx, bool p_connected, String p_name, String p_guid)=0; virtual Point2 get_mouse_pos() const=0; |