Skip to content
DOSBox built in cheat system
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

This system is currently in development and unfinished!

A cheat system for DOSBox. This technically works for any version. Windows, MacOS, Linux, etc.

.cht files are text files that store cheat information. The .cht file should have the name of the game's executable file and be placed in a "cheats" folder in your default configuration folder.

Toggle: off or on
Type: a(active) and o(once)
Offset: The offset from MemBase
Bytes: a0,0b,c0

Installation For Compiling

  • Place cheats.h into the "includes" folder, place cheats.cpp into the "src/misc" folder ("src/gui" if using DOSBox-x).
  • If using to compile, right click on Header Files > Add Existing Item > cheats.h, right click on Source Files > Add Existing Item > cheats.cpp
  • If using MinGW to compile, edit src/misc/ ("src/gui/" if using DOSBox-x) and add cheats.cpp
  • Follow the Integration wiki document for the rest.

How To Find Cheats

  • Use Cheat Engine.
  • Make sure the dosbox.pdb file is present in the same folder as dosbox.exe
  • Open Cheat Engine and target Dosbox. Click the "Add Address Manually" button and check the "Pointer" box. In the very bottom text box type in MemBase, and leave the above text box at 0. Press OK.
  • The address shown after "P->" is the current temporary address MemBase variable is pointing to. This is your virtual memory base. Use Cheat Engine to find an in ingame value.
  • Once you find an ingame value, take the address it found and subtract it by the virtual memory base address. This will give you the offset you want to use for a .cht file.

If you have any questions, please ask us in our Discord:

If you would like to contribute or make changes, please fork this source and send a PR.

You can’t perform that action at this time.