Main > Main Forum
MAME Driver Patch for Hardware Gear Shift Support
BadMouth:
I managed to make the change in a later version of MAME by copying and pasting the line from Dmod's diff file into the source code manually.
(I know nothing about diff files or coding & this was my first time compiling)
All you need to do is find the line in the driver source code that corresponds to the line in Dmod's diff file that has a - before it.
Replace it with the line from the diff file that has the + in front of it.
Only one line needs changed for most games.
Each game may have its own section inside the driver, so you might have to repeat the change for each game.
If you get in there and start tinkering, it isn't hard to figure out. The individual drivers aren't that big.
It will take a while if you plan to run all the games, but it might be your only option if you want to stick to a specific version.
I only did a few for the sake of testing. I was waiting for v.144 before trying to do them all, but since recent versions have made some games run slower, I doubt I'll bother. I'll just fix it for the few 270 degree wheel games that I have on my cab.
Texasmame:
--- Quote from: BadMouth on October 18, 2011, 04:53:11 pm ---I managed to make the change in a later version of MAME by copying and pasting the line from Dmod's diff file into the source code manually.
(I know nothing about diff files or coding & this was my first time compiling)
All you need to do is find the line in the driver source code that corresponds to the line in Dmod's diff file that has a - before it.
Replace it with the line from the diff file that has the + in front of it.
Only one line needs changed for most games.
Each game may have its own section inside the driver, so you might have to repeat the change for each game.
If you get in there and start tinkering, it isn't hard to figure out. The individual drivers aren't that big.
It will take a while if you plan to run all the games, but it might be your only option if you want to stick to a specific version.
I only did a few for the sake of testing. I was waiting for v.144 before trying to do them all, but since recent versions have made some games run slower, I doubt I'll bother. I'll just fix it for the few 270 degree wheel games that I have on my cab.
--- End quote ---
I'm just doing this for Spy Hunter. I take it that's the MCR3.c file that I'll have to edit?
BadMouth:
--- Quote from: Texasmame on October 18, 2011, 06:32:29 pm ---I'm just doing this for Spy Hunter. I take it that's the MCR3.c file that I'll have to edit?
--- End quote ---
Yep, that's it. The lines in the diff file above and below the + and - ones are there for reference to make sure you're in the right place.
That driver supports multiple games.
If you can locate the section for Spy Hunter, you probably only need to change the one line in that section.
To play it safe, you could do all 5.
Texasmame:
Okay, thought my rig couldn't handle the newest MAME but it can if I use the command line version and not MAMEUI32, which is what I had been using.
So, gonna try a cut/paste of the necessary driver lines as suggested above, compile and see what happens. . . :applaud:
EDIT: HOT DAMN! It worked! :laugh:
Just did the cut/paste method then complied. Using MALA for options setup, etc. as I prefer the GUI as opposed to the command line.
Thanks so much, all!
Attached is the updated MCR3.c file. I updated the gear shift ONLY for Spy Hunter so now, it is automatically in low unless you press and HOLD the key - which is faithful to the arcade microswitch setup.
BadMouth:
I don't know how to make a diff patch, but I can copy and paste! :P
Attached are the drivers for MAME v144 with Dmod's shifter changes made.
I also reversed the PORT_TOGGLE hack that was made more recently on the taito_z driver.
Copy these drivers into the driver folder in the MAME source code (overwrite the ones there), then compile.
I used Mr.Do's guide found here:
http://mrdo.mameworld.info/compile.html
While you're at it, you can apply the hi score/no nag diff to get rid of the "Not Working 100%" boxes on Virtua Racing, Chase Bombers, etc.
JUST DON'T GO REPORTING ISSUES TO MAMETESTERS WHEN THERE SHOULD BE A POPUP BOX TELLING YOU THE GAME HAS ISSUES!!!!
I checked a few, but not all of the games to make sure the shifter was working correctly.
(pole postion, outrun, chase hq)
If a particular game isn't working properly, let me know and I'll see if I screwed up somewhere.
I'm sticking with v137 on my cab, so I won't be using these myself.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version