1. The spy hunter driver uses a toggle switch for the gear shifter. I am having problems getting my shifter to work right when I shift quickly (virtually every time
). I was wondering if some of you programmer types could tell me where to look to change the source code to be more like Outrun (which has a separate input for low and high). This is actually how the original game played anyway.
As said prior, the original only had on switch. IIRC, open (not pressed) is low, closed (pressed) is high. The driver uses a toggle so the person wouldn't need to hold down a key on the keyboard.
Look at the line jerryjanis posted, remove the "IPF_TOGGLE" flag (including the "|" just in front of it) and recompile mame. Then map you high gear to the shift "button".
2. I would like to change the default settings in the service mode (F2) so that it only needs one coin to start. Any idea where I can change this.
Hmm, it doesn't look like this is saved in nvram. If the original game didn't save this setting when the plug was pulled, mame wouldn't save it either. However, if the original was supposed to save it, then this is a bug in the mame driver.
Thanks for helping me. I'm a has-been amateur programmer (started in the 70's and now I'm obsolete
)
Thanks for any help you can give me!
Rocky
Old school is cool!
Mame is in C, and the driver and core code doesn't have any of the new or windows-only stuff; you only have to worry about that in the windows specific code in the src/windows folder. Mame drivers use a lot of MACROS, so if you don't mind not knowing how the macros do it, "all" you need to know is what the macros are supposed to be "saying" if you only want to edit the drivers.
Take the "INPUT_PORTS_START( spyhunt )" macro. It means "the list of inputs for spyhunter start here". See?

Not too hard (except that there's a lot of macros).