Take this file : /usr/games/gamelist.xml
add this

PHP Code:
<gamelist>
  <
game>
    <
name>N64 Emu Mario64</name>
    <
command>/usr/local/bin/mythn64.sh Mario64.v64</command>
    <
genre>N64</genre>
    <
year>2001</year>
  </
game>
</
gamelist
make this file: /usr/local/bin/mythn64.sh
ps. I know you don't *need* this, but I have extra stuff that runs in here I took out.

Code:
#!/bin/sh

NDIR="/usr/local/bin/mupen64"
N64="mupen64_nogui"
ISODIR="/160gig/mythtv/games/n64"
GAME="`echo $*`"

echo mupen64 : $GAME

# have to set the dir for the stupid blight controller plugin
cd $NDIR
$NDIR/$N64 "$ISODIR/$GAME" < $NDIR/startkeys
and here is the startkeys file: /usr/local/bin/mupen64/startkeys
set to your own settings.

Code:
2
1
2
1
1
change filenames/dirs to whatever you want. This works great for me on myth v.16/.17, your mileage may vary. Hope a new version comes out soon