[DiscordArchive] hi everyone,i less information about how testing patch without compil to patch.mpq?
[DiscordArchive] hi everyone,i less information about how testing patch without compil to patch.mpq?
Archived author: <o> • Posted: 2022-08-12T20:43:54.473000+00:00
Original source
then place .cpp files in there and run cmake
Archived author: <o> • Posted: 2022-08-12T20:44:53.905000+00:00
Original source
inside of those files you can add things like lua functions (we have space only for like 3 custom at the moment) or client detours like this:
https://github.com/tswow/tswow/blob/mast...Module.cpp
[Embed: tswow/TestModule.cpp at master · tswow/tswow]
Root project for TSWoW. Contribute to tswow/tswow development by creating an account on GitHub.
https://github.com/tswow/tswow/blob/mast...Module.cpp
Archived author: <o> • Posted: 2022-08-12T20:45:57.393000+00:00
Original source
the `LUA_FUNCTION` macro creates a new lua function, first argument is the name that the function gets in lua, second is just the lua state you can use inside the following block