diff options
author | chai <chaifix@163.com> | 2019-03-28 08:56:15 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-03-28 08:56:15 +0800 |
commit | 3bced067a4144381e59ce4bd0eb749eeff5ad1f4 (patch) | |
tree | 0352c8ae263dae904967f9e21326ce2a4ca9ada8 /source/libs/asura-lib-utils/io/io_task.cpp | |
parent | f6bcacef6e10200b1c0dc34c4aa34313cbfc0392 (diff) |
*misc
Diffstat (limited to 'source/libs/asura-lib-utils/io/io_task.cpp')
-rw-r--r-- | source/libs/asura-lib-utils/io/io_task.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/source/libs/asura-lib-utils/io/io_task.cpp b/source/libs/asura-lib-utils/io/io_task.cpp index a96c293..1a50e56 100644 --- a/source/libs/asura-lib-utils/io/io_task.cpp +++ b/source/libs/asura-lib-utils/io/io_task.cpp @@ -1,5 +1,8 @@ #include "io_task.h" +using namespace AEScripting; +using namespace Luax; + namespace AsuraEngine { namespace IO @@ -20,9 +23,17 @@ namespace AsuraEngine return true; } - void IOTask::Invoke() + void IOTask::Invoke(lua_State* thread) { - + if (mCallback) + { + LuaxScopedState state(thread); + if (PushLuaxMemberRef(state, mCallback)) + { + PushLuaxMemberRef(state, mDstRef); + state.Call(1, 0); + } + } } } |