autoload cheats

Jun 3, 2013 at 3:58 AM
Edited Jun 3, 2013 at 5:39 AM
Is it possible to make the cheat dialog autoload cheats from "[gamecode].cht" or "cheatpops.db" (CWCheat database)?

I've written a small python converter for PEC cheats, but there are a few issues:
  • we need an easy way to get the game code;
  • some cheat codes may have a variable part (usually indicated with question marks), for instance:
[V/Max Always At ??? Km/H]
800AC0D0 0???
$5BA 200 km/h
$88F 300 km/h
$B6F 400 km/h
Jul 31, 2013 at 4:20 PM

Commit 86327 adds this feature to GTK version.

Cheats are loaded from /home/<user>/.pcsxr/cheats/<CDROMLABEL>-<CDROMID>.cht
e.g. /home/user/.pcsxr/cheats/SLUS_90064-SLUS90064.cht

Naming scheme is same as for save states in /home/<user>/.pcsxr/sstates/