diff --git a/core/src/objects/script.cpp b/core/src/objects/script.cpp index 217bbdc..86a975c 100644 --- a/core/src/objects/script.cpp +++ b/core/src/objects/script.cpp @@ -13,6 +13,8 @@ int script_wait(lua_State*); int script_delay(lua_State*); +int script_wrapper(lua_State*); +int script_errhandler(lua_State*); Script::Script(): Instance(&TYPE) { source = "print(\"Hello, world!\")"; @@ -52,41 +54,11 @@ void Script::Run() { lua_pop(Lt, 1); // _G - // Load source and push onto thread stack as function ptr - // luaL_loadstring(Lt, source.c_str()); - luaL_loadbuffer(Lt, source.c_str(), source.size(), scriptContext->RegisterScriptSource(shared