hey guys,
i'm about to start my build of a new panel and am adding a servo to auto switch joysticks from 8 to 4 way. daoldman has written a great plug in for mala but in all honesty, i'm happy using mamewah and the task of moving 30+ emu's from one FE to another is not something i'm looking forward to.
from an older post, user "terahawk" seems to have created a bat file that calls to an edited text file containing the names of 4 way games. if his bat doesn't find the name, it assumes 8 way and adjusts the servo accordingly. that sounds great but i dont want to have to edit a txt file everytime i update mame.
so, if anyone out there is willing to tackle this, i'd be happy to throw $40 your way for your time. i *think* it could be relatively easy. my thought is that the servo bat would check controls.ini file for the rom name, and adjust the servo based on results. obviously it would only be looking for "4 way" and "8 way" so there would have to be soemthing in there that would just ignore other stick/trackball/spinner, etc. control types.
any takers? here is the sample code from the post by "terahawk"
@echo off
d:
cd d:\mame
findstr /b /r "%1$" game-stick-mapping.txt > result.txt
for /f %%A in ("result.txt") do if %%~zA NEQ 0 goto four
echo 8-way
usccmd --sub 0,8
goto end
:four
echo 4-way
usccmd --sub 0,4
:end
mame "%1"