lua与C++交互
C++调用lua
luaL_loadfile luaL_loadbuffer

看引用应该是luaL_loadbuffer。
lua调用C++

我改了mainfunctions.lua中的OnServerPauseDirty函数,确实会反应到dbgview中。

说明print是会调用OutputDebugPrint的。print_loggers这个table没有办法打印出来。

上2张图说明print_logger里有个函数专门负责OutputDebugPrint的。但是在ida这种没有找到lua注册函数相关的信息,奇怪。



参考: https://zilongshanren.com/post/lua-call-cpp-functions/ https://zilongshanren.com/post/call-lua-table-from-cpp/