Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: Rockman on September 05, 2012, 08:33:44 am

Title: Is relatively easy create a diff patch to do a save config with cheat options?
Post by: Rockman on September 05, 2012, 08:33:44 am
Hi guys!!!

Since Official Mame don't provide the mode to save the presets of the overclocking with the cheats activated,
Is relatively easy to create a diff path (similar to hiscore diff patch) to do a save the overclocking values in the *.cfg files for the games?

Hiscore is a lot more complex to do i think. My idea is only add the field of the cpu speed of each game.
I can tweak the source to do a permanent cpu speed fix, but if i discover a new game with slowdowns i need to recompile all the code.
I think that is not a bad idea.......maybe :D

Someone with a skills or experience in tweaking a little the mame code can comment if it is a lot difficult to do?

Thanks.

Peace.  :cheers:
Title: Re: Is relatively easy create a diff patch to do a save config with cheat options?
Post by: nitz on September 05, 2012, 08:04:41 pm
There is a way to mark cheats in the cheat.dat file so that they are automatically on as long as you run mame with cheats enabled. It's been ages since I've done this, but I think it's something simple like just putting a colon or two in front of the cheat code.

Of course you need a way to determine what values need to be added to cheat.dat for the overclocking you want. There was a thread on this forum about it, but it's ancient - maybe like 7 or 8 years old. I think they talked about Cruisin' USA specifically, so that might help you search for it.

Maybe not the answer you were wanting, but I think this would be easier than modifying the source code, and I've given you a bit to go on.

 :cheers:
Title: Re: Is relatively easy create a diff patch to do a save config with cheat options?
Post by: Rockman on September 09, 2012, 09:24:39 am
Thanks nitz :)

This way of specifying the value of overclock work with the old CHEAT.DAT. I see that way in the forums.
But the new cheat.dat engine, all is different, and I do not know if there is a way to specify or send values ​​in the "new" cheat system to mame.

Anyone can contribute with something?
 :dunno



Title: Re: Is relatively easy create a diff patch to do a save config with cheat options?
Post by: nitz on September 09, 2012, 04:54:40 pm
Sorry, haven't used cheat.dat in ages and didn't know it had changed.

If I were you, I'd try asking about this over at Mameworld. Someone there will likely know the answer. :)