Monday, April 15, 2013

MAME from XBMC (via RomCollectionBrowser or AdvancedLauncher)

To get MAME 0.148u3 to launch from commandline, you need the following syntax

D:\mame0148b_64bit\mame64.exe -inipath D:\mame0148b_64bit\ "%rom%"


In the mame.ini file, you HAVE to specify the exact path for all the directories!
e.g.

rompath                   D:\mame0148b_64bit\ROMS
hashpath                  D:\mame0148b_64bit\hash
samplepath                D:\mame0148b_64bit\samples
...


In order to use it with the XBox 360 Controller, you would need to map the keys in the cfg\default.cfg

<mameconfig version="10">
    <system name="default">
        <input>
            <port type="P1_BUTTON7">
                <newseq type="standard">
                    KEYCODE_C
                </newseq>
            </port>
            <port type="P1_BUTTON8">
                <newseq type="standard">
                    KEYCODE_V
                </newseq>
            </port>
            <port type="P1_START">
                <newseq type="standard">
                    JOYCODE_1_BUTTON8
                </newseq>
            </port>
            <port type="P1_SELECT">
                <newseq type="standard">
                    JOYCODE_1_BUTTON7
                </newseq>
            </port>
            <port type="START1">
  <newseq type="standard">
                    JOYCODE_1_BUTTON8
                </newseq>
     </port>
     <port type="COIN1">
  <newseq type="standard">
                    JOYCODE_1_BUTTON7
                </newseq>
            </port>
        </input>
    </system>
</mameconfig>

No comments:

Post a Comment