Skip to content

Integration

Jacob Fliss edited this page Dec 16, 2018 · 2 revisions

Now that you have the cheats source files included with the compile, we need to add a few functions into the DOSBox code to trigger the functions.

  1. Open dosbox.cpp and add #include "cheats.h" in the other #include's at the top of the file.

  2. Also in the dosbox.cpp file, beneath void SERIAL_Init(Section*); add void CHEATS_Init(Section*);. This is our timer for writing the "active" cheats.

  3. Open sdlmain.cpp and add #include "cheats.h" in the other #include's at the top of the file.

  4. Also in the sdlmain.cpp file, navigate to the void GFX_SetTitle(Bit32s cycles,Bits frameskip,bool paused) function. Add cheat::ParseCheatFile(RunningProgram); inside the function's brackets { }. This is to start the parsing of our cheat file and write our "once" cheats.

You can’t perform that action at this time.