From 79eeb59bf137eb0b08732d2ab5aa7779360e83ab Mon Sep 17 00:00:00 2001 From: actboy168 Date: Wed, 12 Feb 2014 22:55:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0TriggerWaitForSound=E3=80=81S?= =?UTF-8?q?yncSelections=E3=80=81TriggerSyncReady=E7=9A=84=E8=BF=87?= =?UTF-8?q?=E6=BB=A4=09=09=09=09||=20(0=20=3D=3D=20strcmp(name,=20"Trigger?= =?UTF-8?q?SyncReady"))=20=09=09=09=09||=20(0=20=3D=3D=20strcmp(name,=20"S?= =?UTF-8?q?yncSelecti?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Plugin/Warcraft3/yd_lua_engine/main/libs_jass.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Development/Editor/Plugin/Warcraft3/yd_lua_engine/main/libs_jass.cpp b/Development/Editor/Plugin/Warcraft3/yd_lua_engine/main/libs_jass.cpp index 0ba3aee5c..10c308fcf 100644 --- a/Development/Editor/Plugin/Warcraft3/yd_lua_engine/main/libs_jass.cpp +++ b/Development/Editor/Plugin/Warcraft3/yd_lua_engine/main/libs_jass.cpp @@ -138,7 +138,7 @@ namespace base { namespace warcraft3 { namespace lua_engine { int jass_call_null_function(lua_State* L) { jassbind* lj = (jassbind*)L; - printf("Wanring: %s\n", lj->tostring(lua_upvalueindex(1))); + printf("Wanring: %s isn't implemented.\n", lj->tostring(lua_upvalueindex(1))); lj->pushnil(); return 1; } @@ -182,12 +182,17 @@ namespace base { namespace warcraft3 { namespace lua_engine { const char* name = lj->tostring(2); + uintptr_t vm = get_jass_virtual_machine(); + jass::func_value const* nf = jass::jass_func(name); if (nf && nf->is_valid()) { - if (0 == strcmp(name, "TriggerSleepAction")) + if ((0 == strcmp(name, "TriggerSleepAction")) + || (0 == strcmp(name, "TriggerWaitForSound")) + || (0 == strcmp(name, "TriggerSyncReady")) + || (0 == strcmp(name, "SyncSelections"))) { - lj->pushstring("TriggerSleepAction isn't implemented."); + lj->pushstring(name); lj->pushcclosure((lua::state::cfunction)jass_call_null_function, 1); return 1; }