Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: chemame on April 18, 2005, 11:47:05 am

Title: mamewah and multiple file extensions
Post by: chemame on April 18, 2005, 11:47:05 am
I'm almost done with setting up all my emulators in mamewah. It's turned out to be easier than I expected. For the most part, I could nearly script the import from advmenu config to mamewah config.

Nearly.

Anyway, last night I was setting up my C64, and I ran across an issue. My C64 images are not all TAP files (I notice JCrouse uses TAP in his C64 ini file). I have maybe a 3:2:1 ratio of .d64, .t64, .prg

So I noticed that mamewah cannot accept multiple extension definitions in the INI file, which is something I took for granted with advmenu. I saw that the extension can be defined as "*", which will find everything in a directory, which works for the most part, but apparently causes problems in actually sending the extension to the emulator? Not sure why this would be, but anyway...

I was using a BAT file as a C64 wrapper, not just for the commandline parameters, but also to do some automated screenshot cleanup after execution (i.e. you take a BMP snapshot, I rename it to the rom name.PNG and move it to the proper directory yada yada)

ANYWAY... all that to say that I ended up using a perl script instead, testing for romname.d64, romname.t64, etc ... find the first matching extension and send THAT to the emulator. A little convoluted but it works.

Am I missing something on the multiple extensions? Am I making life more complicated than it needs to be?

Chemame
Title: Re: mamewah and multiple file extensions
Post by: jcrouse on April 18, 2005, 12:23:46 pm
Sounds like your right on the mark. The one option is that IF the emulator can handle zipped files than you can zip each file so they have a unifrom extension.

John