|Here is a directory snapshot of a MAMEWah setup. A carefully set up directory structure can make MAMEWah a relatively easy system to maintain.|
|There are three primary types of files you need to edit to configure MAMEWah.|
Contains your global settings such as the emulator_root_path which needs to be manually set to the parent directory. In my case this is:
From now on if you use the variable "emurootpath", MAMEWah will read it as "f:\mamewah162b13\emu"
Almost everything else in the mamewah.ini can be configured from inside the program.
This file contains all of the key settings for MAMEWah and is where you can set some of the buttons to easily move around the front-end such as Next Emulator and Random Game.
This is where all the magic takes place. When you tell MAMEWah to run a particular game on a particular emulator, you are essentially just passing it a command line.
For example (and assuming you have your directory structure like mine), to run Super Punch Out on ZSNES you would type the command line:
|Of course, most people would change to the target directory first, like this:|
|Using variable paths the emulator config file (09supernintendo.ini) represents this command line like this:|
Where [emurootpath] = f:\mamewah162b13\emu (as set by mamewah.ini)
[emuname] = 09supernintendo (name of the config directory for the emulator chosen)
This variable is very useful and is the reason why the emulator directories are named exactly the same as the config directories.
[rompath] = [emurootpath]\[emuname]\roms (as set in the emulator config file)
If you extrapolate this pathname out, you get:
[rompath] = f:\mamewah162b13\emu\09supernintendo\roms
[name] = PUNCHOUT (or the game title selected via the MAMEWah selection screen)
[romext] = .zip (as set in the emulator config file)
Now all that's required is a bit of discipline. Images always go in the emulator directory as snap, titles and flyers. Roms are always in the parent emulator directory rather than under the emulator itself, so that multiple emulators for the same format can easily access the same set of roms. Finally, the actual directory for the emulator can be anything you like since it is manually set in the emulator_commandline variable.
To create a new emulator configuration file:
And you've got it!
|###09supernintendo.ini (mamewah v1.62)###|
|### List Generation Settings ###|
|### Execution Settings ###|
|### Artwork Settings ###|
|### Screen-Saver Settings ###|
|### Additional Settings ###|
|### Settings used by MAMEWAH ###|