|
MAME command line param to list game info?
#327220 - 06/20/14 10:04 PM
|
|
|
Is there a command line param to list the game info for a given game, like the info given in 'Game Information' in the MAME UI?
I specifically want to find the vertical refresh frequency (Hz) the original game's monitor ran at.
Thanks.
|
|
|
Stiletto![Administrator Administrator](//www.mameworld.info/ubbthreads/images/adm.gif) |
They're always after me Lucky ROMS!
|
|
|
Reged: 03/07/04
|
Posts: 6472
|
|
|
Send PM
|
|
|
Re: MAME command line param to list game info?
[Re: big10p]
#327334 - 06/24/14 01:46 AM
|
|
|
> Is there a command line param to list the game info for a given game, like the info > given in 'Game Information' in the MAME UI? > > I specifically want to find the vertical refresh frequency (Hz) the original game's > monitor ran at. > > Thanks.
Hmmm, think that's in the XML. Ex. mame.exe -listxml Ex. mame.exe -listxml > c:\blah\blah.xml
You'll have to parse it. Also, IIRC it's really only going to list the refresh at start, not all the possible refreshes a game may have.
There's probably some 3rd party scene tool that pretties up the output for ya, tho.
- Stiletto
|
|
|
Tafoid![Administrator Administrator](//www.mameworld.info/ubbthreads/images/adm.gif) |
I keep on testing.. testing.. testing... into the future!
|
|
|
Reged: 04/19/06
|
Posts: 3135
|
Loc: USA
|
|
Send PM
|
|
|
Re: MAME command line param to list game info?
[Re: Stiletto]
#327335 - 06/24/14 01:54 AM
|
|
|
> > Is there a command line param to list the game info for a given game, like the info > > given in 'Game Information' in the MAME UI? > > > > I specifically want to find the vertical refresh frequency (Hz) the original game's > > monitor ran at. > > > > Thanks. > > Hmmm, think that's in the XML. > Ex. mame.exe -listxml > Ex. mame.exe -listxml > c:\blah\blah.xml > > You'll have to parse it. Also, IIRC it's really only going to list the refresh at > start, not all the possible refreshes a game may have. > > There's probably some 3rd party scene tool that pretties up the output for ya, tho. > > - Stiletto
This is correct in most cases and will show the default for the hardware/driver/game you are running. There are some instances which the Hz / resolution will change from defaults after the game starts, to adjust for the given game or situation. There is no way to extract this information other than while the game is running and using that "Game Information".
This is an example of changing freqs: http://mametesters.org/view.php?id=5588
|
|
|
|
Re: MAME command line param to list game info?
[Re: Tafoid]
#327370 - 06/24/14 11:57 AM
|
|
|
Thanks for the info, chaps.
I run all my games at 1920x1080 to keep the artwork looking nice and give HLSL room to play. I just wanted to run each game at it's native refresh rate (or near as damn it) to keep the game at it's proper speed - I run with vsync on and throttle off, for smooth scrolling.
I did this by specifying the Hz in the cfg for games with non-60Hz refreshes. The problem was that MAME stays in that mode when exiting a game and launching another that doesn't have a cfg that specifies the Hz to use.
I kludged the issue by writing a little prog that makes a cfg for every game, setting Hz to 60. I then just edited the files for games that use a non-60Hz refresh.
On a related issue, is it possible to specify an interlaced mode? I tried "resolution 1920x1080@60i" but it didn't work.
[edit] I mean ini files, not cfg.
Edited by big10p (06/24/14 01:38 PM)
|
|
|