MAMEWorld >> News
View all threads Index   Flat Mode Flat  

CiroConsentino
Frontend freak!
Reged: 09/21/03
Posts: 6211
Loc: Alien from Terra Prime... and Brazil
Send PM
Re: Lightspeed MameLister© - New Version Released
06/10/16 12:16 AM


hi,
to get screen res and refresh rate, just parse this info from the -listxml output, but be aware, the resolution is not always width x height, you must also check the rotate tag to get the proper resolution.
Vertical games have the [width info in the height tag and the height info in the width tag.

First, parse the rotate tag.
- if rotate is 0 or 180, the game is horizontal and you can parse width and height tags normally.
- if rotate is 90 or 270, parse width as height and height as width (this is to show the correct resolution.
Easy...

I don't know why MAME does this in the -listxml output.

Just parse all resolutions and refresh rate and store them into two TStringList vars and make sure to remove duplicates. Then you can display them in TComboBox controls (drop-down control), or another control of your choosing.

>> The list of different modes is very large though, so the way I could try to add this as
>> a filter would be through a drop-down menu for resolutions and another one for refresh.
>> Would that work?

That's a good solution for single resolution / refresh rate selection.
But if you want to select more than one resolution and/or refresh rate for the filters, the best solution would be to display them in two TListView controls, one for resolution and other for refresh rate.
Also, each entry could have a checkbox so the user can choose multiple resolutions/refresh rates.
TListView have a property to enable checkbox on items (TListItem)... at least in Delphi language it does, but I don't know what language you coded the application. It might be different.

>> About filtering by visible scanlines and b/w, I must confess I don't know how to
>> approach this at this point. Is this information available in the XML or support files?
>> If it is, then I can definitely add it as well!

there is no such info in -listxml output. There is no way to know how many colors a game uses, much less scanlines (don't even know what this scanlines info mean).


Emu Loader
Ciro Alfredo Consentino
home: http://emuloader.mameworld.info
e-mail: [email protected]

Edited by CiroConsentino (06/10/16 11:32 PM)







Entire thread
Subject Posted by Posted on
* Lightspeed MameLister© - New Version Released Antropus 06/09/16 10:11 AM
. * Re: Lightspeed MameLister© - New Version Released Antropus  06/17/16 09:31 AM
. * Re: Lightspeed MameLister© - New Version Released uman  06/18/16 12:09 PM
. * Re: Lightspeed MameLister© - New Version Released Antropus  06/20/16 07:19 PM
. * Re: Lightspeed MameLister© - New Version Released Antropus  06/22/16 09:16 PM
. * Re: Lightspeed MameLister© - New Version Released Antropus  06/22/16 09:18 PM
. * Re: Lightspeed MameLister© - New Version Released uman  06/23/16 12:59 AM
. * Re: Lightspeed MameLister© - New Version Released Traso  06/18/16 01:37 AM
. * Re: Lightspeed MameLister© - New Version Released Antropus  06/18/16 01:50 AM
. * Re: Lightspeed MameLister© - New Version Released Antropus  06/18/16 02:01 AM
. * Re: Lightspeed MameLister© - New Version Released Traso  06/23/16 07:33 AM
. * Re: Lightspeed MameLister© - New Version Released Antropus  06/11/16 08:29 AM
. * Re: Lightspeed MameLister© - New Version Released robotronman  06/13/16 08:18 PM
. * Re: Lightspeed MameLister© - New Version Released Antropus  06/13/16 10:33 PM
. * Re: Lightspeed MameLister© - New Version Released robotronman  06/14/16 12:43 AM
. * Re: Lightspeed MameLister© - New Version Released Antropus  06/14/16 01:01 AM
. * Re: Lightspeed MameLister© - New Version Released Antropus  06/14/16 12:09 PM
. * Re: Lightspeed MameLister© - New Version Released robotronman  06/16/16 01:13 AM
. * Re: Lightspeed MameLister© - New Version Released Antropus  06/16/16 07:53 PM
. * Re: Lightspeed MameLister© - New Version Released CiroConsentino  06/14/16 01:34 PM
. * Re: Lightspeed MameLister© - New Version Released Antropus  06/14/16 07:20 PM
. * Re: Lightspeed MameLister© - New Version Released AntoPISA  06/15/16 09:04 PM
. * Re: Lightspeed MameLister© - New Version Released Antropus  06/16/16 07:48 PM
. * Re: Lightspeed MameLister© - New Version Released CiroConsentino  06/14/16 11:45 PM
. * Re: Lightspeed MameLister© - New Version Released uman  06/09/16 12:44 PM
. * Re: Lightspeed MameLister© - New Version Released Antropus  06/09/16 07:01 PM
. * Re: Lightspeed MameLister© - New Version Released CiroConsentino  06/10/16 12:16 AM
. * Re: Lightspeed MameLister© - New Version Released Antropus  06/10/16 02:27 AM
. * Re: Lightspeed MameLister© - New Version Released uman  06/10/16 12:09 PM
. * Re: Lightspeed MameLister© - New Version Released CiroConsentino  06/10/16 01:43 PM
. * Re: Lightspeed MameLister© - New Version Released Antropus  06/10/16 10:09 PM
. * Re: Lightspeed MameLister© - New Version Released CiroConsentino  06/10/16 11:29 PM
. * Re: Lightspeed MameLister© - New Version Released Mamesick  06/10/16 04:41 PM
. * Re: Lightspeed MameLister© - New Version Released CiroConsentino  06/10/16 11:31 PM

Extra information Permissions
Moderator:  John IV, Robbbert, Tafoid 
0 registered and 220 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 6295