Skip to content

A DLL that redirects the Terrain Description function in Wesnoth 1.14.9 to a custom function that sets the player's gold to 888.

License

Notifications You must be signed in to change notification settings

GameHackingAcademy/Wesnoth_CodeCaveDLL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Wesnoth_Code Cave DLL

Referenced in https://gamehacking.academy/lesson/3/4.

A DLL that redirects the Terrain Description function in Wesnoth 1.14.9 to a custom function that sets the player's gold to 888.

This custom function then recreates the Terrain Description function and returns execution to the program.

This is done through the use of a code cave. When injected, the DLL modifies the function that displays the terrain description and changes the code to jump to the code cave function defined in the DLL. The code cave function then saves the registers, sets the gold to 888, and restores the original modified instructions before returning to the original calling code.

This must be injected into the Wesnoth process to work. One way to do this is to use a DLL injector. Another way is to enable AppInit_DLLs in the registry.

About

A DLL that redirects the Terrain Description function in Wesnoth 1.14.9 to a custom function that sets the player's gold to 888.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages