-
- Downloads
Remove dependency on marshal and many other async changes
This makes a number of changes: * Remove the dependency on marshal by using string.dump and loadstring. * Use lua_tolstring rather than having Lua functions pass string lengths to C++. * Move lua_api/l_async_events.* to cpp_api/s_async.*, where it belongs. * Make AsyncWorkerThread a child of ScriptApiBase, this removes some duplicate functionality. * Don't wait for async threads to shut down. (Is this safe? Might result in corruption if the thread is writing to a file.) * Pop more unused items from the stack * Code style fixes * Other misc changes
Showing
- builtin/async_env.lua 13 additions, 11 deletionsbuiltin/async_env.lua
- builtin/async_event.lua 26 additions, 40 deletionsbuiltin/async_event.lua
- src/guiEngine.cpp 20 additions, 26 deletionssrc/guiEngine.cpp
- src/httpfetch.cpp 1 addition, 1 deletionsrc/httpfetch.cpp
- src/script/cpp_api/CMakeLists.txt 1 addition, 0 deletionssrc/script/cpp_api/CMakeLists.txt
- src/script/cpp_api/s_async.cpp 301 additions, 0 deletionssrc/script/cpp_api/s_async.cpp
- src/script/cpp_api/s_async.h 171 additions, 0 deletionssrc/script/cpp_api/s_async.h
- src/script/lua_api/CMakeLists.txt 0 additions, 2 deletionssrc/script/lua_api/CMakeLists.txt
- src/script/lua_api/l_mainmenu.cpp 9 additions, 10 deletionssrc/script/lua_api/l_mainmenu.cpp
- src/script/lua_api/l_util.cpp 1 addition, 1 deletionsrc/script/lua_api/l_util.cpp
- src/script/lua_api/marshall.c 0 additions, 551 deletionssrc/script/lua_api/marshall.c
- src/script/scripting_game.cpp 4 additions, 5 deletionssrc/script/scripting_game.cpp
- src/script/scripting_mainmenu.cpp 17 additions, 15 deletionssrc/script/scripting_mainmenu.cpp
- src/script/scripting_mainmenu.h 4 additions, 7 deletionssrc/script/scripting_mainmenu.h
Loading
Please register or sign in to comment