Main > Software Forum
MAME modification request; $50 for you
Buddabing:
I'm going to submit a change to MAMEdev. Except I'm going to change Mahuti's specifications.
URebel's comment on command option pollution got me thinking that it would better to implement this functionality into the existing -listxml option.
If a game name is specified with -listxml: only that game is output.
If no game name is specified: all games are output.
There are a couple of advantages to this approach.
1) no command line option pollution
2) A program can just call MAME with -listxml gamename and parse the resulting XML, regardless of whether or not the new functionality has been implemented. If it has not, the XML file will be bigger, but it will still work.
mahuti:
That is a better idea. Originally, when I began working with listxml, that's how I thought it should work... I had just forgotten until now.
u_rebelscum:
--- Quote from: Buddabing on June 22, 2006, 03:24:56 pm ---I'm going to submit a change to MAMEdev. Except I'm going to change Mahuti's specifications.
URebel's comment on command option pollution got me thinking that it would better to implement this functionality into the existing -listxml option.
If a game name is specified with -listxml: only that game is output.
If no game name is specified: all games are output.
There are a couple of advantages to this approach.
1) no command line option pollution
2) A program can just call MAME with -listxml gamename and parse the resulting XML, regardless of whether or not the new functionality has been implemented. If it has not, the XML file will be bigger, but it will still work.
--- End quote ---
And it's the way -listinfo worked before it was overtaken by -listxml.
mahuti:
right... which is why it always drove me nuts that listxml didn't work the same.
Buddabing:
I've revised the code and submitted a patch to MAMEdev. Hopefully it will be accepted into 0.106u8.
A copy is attached. If you want, you can undo the previous code and apply this by copying it into the root directory of your MAME installation and running patch -p1 < patch.txt.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version