Main > Software Forum
Aaron removes xml2info as of u12 (in other words, we are screwed)
Minwah:
--- Quote from: krick on July 19, 2006, 12:02:48 am ---I've updated my xml2info XSL Transformation again.
--- End quote ---
Works very well as far as I can tell...thank you :)
krick:
--- Quote from: Minwah on July 19, 2006, 05:27:20 am ---Aside from actually parsing the stuff from -listxml, this is gonna slightly mess up my filtering in Mamewah a touch...having multiple control types. I might just join them into one string for the sake of getting it to work again quickly...
--- End quote ---
In my XSL transform, I just grab the first display and the first control and ignore the rest because that produces output that matches the old listinfo format. Of course, if you want to offer proper filtering by number of screens or types of controls, then you'll have to do something different.
The XSL transform is easy enough to modify to output multiple screen items and input items if you want it that way. Or you can just do the right thing and write the XML parser. :)
Oh, and here's a tip for anyone parsing the XML:
If you want to determine if a game is vertical, you can do it like this...
convert the "rotate" attribute to an integer (r), then...
boolean vertical = ( ( ( r / 10 ) mod 2 ) != 0 )
Howard_Casto:
what I do with the control types is I merge them together and then slap the input element on the end.... the result looks exactly the same as the ol listinfo output except now you cna have strings like
joy8way trackball buttons 2 coins 2 players 2 instead of only the first control
As for display types I just ignore all the data but the first one. I dare you to find a multi-monitor game in which the secondary monitor runs at a different res. The vertical and horizontal deal isn't a big thing. Horizontal games are gonna be 0 or 180 (those odd-ball games that project through a mirror) vertical is everything else. What does stupify me is the fact that now the dimensions aren't rotated with the native orientation. I can't see the logic in that one myself.
krick:
--- Quote from: Howard_Casto on July 19, 2006, 03:00:03 pm ---As for display types I just ignore all the data but the first one. I dare you to find a multi-monitor game in which the secondary monitor runs at a different res.
--- End quote ---
MAME currently has a few "multi-display" games where the second and third display are small monochrome LCD screens. They definitely have different resolutions and I'm not really sure about the refresh rate but I assume it's probably not the same.
In the future, I think you'll see things like single line LCD readouts and seven segment LEDs showing up under the "display" tag too.
Howard_Casto:
I'm gonna need some examples, cause I haven't run across them.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version