The cheat functions are coded already. Implementing the interface in GTK would not solve the non-GTK case nevertheless. If you wanted to apply a specific cheat you could follow the attached example (Ctrl+H enables it).
--- visualboyadvance-1.8.0.dfsg.orig/src/sdl/SDL.cpp 2011-07-03 04:59:05.000000000 +0200 +++ visualboyadvance-1.8.0.dfsg/src/sdl/SDL.cpp 2011-08-26 17:26:36.000000000 +0200 @@ -38,6 +38,7 @@ #include "../Util.h" #include "../gb/GB.h" #include "../gb/gbGlobals.h" +#include "../gb/gbCheats.h" #ifndef _WIN32 # include <unistd.h> @@ -1857,6 +1858,20 @@ pauseNextFrame = true; } break; + case SDLK_h: + if(!(event.key.keysym.mod & MOD_NOCTRL) && + (event.key.keysym.mod & KMOD_CTRL)) { + static int once; + if (!once) { + once = 1; +// const char code[] = "91xx04D2"; + const char code[] = "919704D2"; + const char desc[] = "Catch Any Foobar"; + gbAddGsCheat(code, desc); + systemScreenMessage("Cheat enabled"); + } + } + break; default: break; }
smime.p7s
Description: S/MIME cryptographic signature