CodeCave.dll injected to wesnoth.exe
process creates code cave that changes Gold
value.
It places hook opcodes right before calling Terrain Description
menu.
Note: the hack is made for Battle for Wesnoth
v.1.14.9 x86. Other version of the game are more likely
not supported.
Use Visual Studio standard build routine. Build the DLL for x86 platform.
Use any DLL injector that supports x86 applications and inject compiled DLL file to the game process.
Take a look at releases,
where you can find ready-to-use Run.ps1
script:
PRs are accepted.