Time for a "breakup"?
Posted: Sun Jul 14, 2002 1:56 pm
This is an honest request from a much-pleased cheat engine user.
As we have seen lately, the number of games MAME supports has increased substantially. So, inevitably, the size of our cheat files has increased in kind.
I'm beginning to think that a single cheat file may be becoming too large for reasonable management. I also think it's affecting load times, since the cheat engine has to comb through the entire file to get every cheat for just one game.
Do you think it would be a better idea to break up the cheats into separate files, one for each game? The cheats could be organized into a MAME subdir much as the CFG, HI, NVRAM, etc. are organized now. That way, MAME only has to hunt down say "gamename.cht" and simply load up all the cheats from that file, no seeking. I think it would be much faster to load and much easier to organize (and much easier to locate and trim out space-robbing duplicate cheats).
Now, I can see a drawback: when a bunch of cheats for a bunch of games are posted, as is the case for a good deal of the time here. But that could be solved with a simple parser which takes old-format cheats such as are posted here and appends them to existing files in the new format. This could also be used to convert an old CHEAT.DAT to the new system. I could code a PC cross-platform version myself, if necessary, but I'd need help on the Mac end.
In any event, I thought I'd bring up the subject and see if it's worth trying.
As we have seen lately, the number of games MAME supports has increased substantially. So, inevitably, the size of our cheat files has increased in kind.
I'm beginning to think that a single cheat file may be becoming too large for reasonable management. I also think it's affecting load times, since the cheat engine has to comb through the entire file to get every cheat for just one game.

Do you think it would be a better idea to break up the cheats into separate files, one for each game? The cheats could be organized into a MAME subdir much as the CFG, HI, NVRAM, etc. are organized now. That way, MAME only has to hunt down say "gamename.cht" and simply load up all the cheats from that file, no seeking. I think it would be much faster to load and much easier to organize (and much easier to locate and trim out space-robbing duplicate cheats).
Now, I can see a drawback: when a bunch of cheats for a bunch of games are posted, as is the case for a good deal of the time here. But that could be solved with a simple parser which takes old-format cheats such as are posted here and appends them to existing files in the new format. This could also be used to convert an old CHEAT.DAT to the new system. I could code a PC cross-platform version myself, if necessary, but I'd need help on the Mac end.
In any event, I thought I'd bring up the subject and see if it's worth trying.