I will release the source for it in due course at the moment it's not pretty and contains quite a few nasty hacks. There's still plenty of functionality to be added...I just need to work out what exactly and how to implement it
The number of people who would want to use this I could count on the fingers of one hand, so for what it's worth:-
http://cheat.retrogames.com/cheatchk011.zip
Code: Select all
Quick Doc
=========
MAME Cheat Database Checker V0.11 (27 July 2007)
Programmed by Pugsy
This is a basic commandline cheat file checker it's very much still a Work-In-Progess so at the moment it's a binary only release.
To run it copy the cheatchk.exe into it's own directory and copy over mame.exe and cheat.dat (filenames must match).
Then either double click it on run it direct from the commandline.
Things it does/checks:-
- Imports all the shortname/longname info direct from the MAME.EXE
- Reports mismatches between shortname and longname
- Reports games in MAME with no cheat file entries
- Reports any HEX fields that have non-hex characters in them or are not in uppercase
- Reports any type,value,mask fields that have NOT got exactly 8 characters
- Reports any type fields containing 60xxxxx or 62xxxxxx that do not contain all 0s in the other HEX fields
- Reports any mask fields that contain 000000FF,0000FFFF & 00FFFFFF which should be FFFFFFFF
- Warns about any suspect incorrectly zeroed address/mask fields
- Reports any character >7f anywhere in the cheat file (this check has been added to stop the SDLMAME issue reoccuring)
NOTE it will only check cheats upto '## END OF MAIN CHEATS' in the cheat file, so to use it with your own cheat file make
sure that '## END OF MAIN CHEATS' exists and all the cheats you want to check are BEFORE it.