GithubHelp home page GithubHelp logo

gamehackingacademy / wesnoth_codecavedll Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 2.0 17 KB

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.

Home Page: https://gamehacking.academy/

License: Apache License 2.0

C++ 100.00%
gamehacking game-hacking wesnoth dll-injection

wesnoth_codecavedll's Introduction

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.

wesnoth_codecavedll's People

Contributors

attilathedud avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.