MAMEWorld >> EmuChat
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

Elaphe
MAME
Reged: 07/06/05
Posts: 127
Send PM
Re: When MAME fails to load a game...
10/01/13 02:21 PM


Thanx, but I need this for a script. I need a way to tell the script if the game actually loaded or not.

I've figured out a reasonable way: mame game -log. This creates a error.log file. If this file has just one line (here I get something like "Physical width 1920, height 1080"), that means there was an error loading the game. I've tried with an incomplete romset and with a corrupt .zip file.

Can you confirm that in all other cases that file will have several lines of text? I can use that for a condition in my script.

Oh, and do you know if the -log option has any penalty in performance during the game or does it just work during the rom load?









Entire thread
Subject Posted by Posted on
* When MAME fails to load a game... Elaphe 09/30/13 11:19 PM
. * Re: When MAME fails to load a game... redk9258  10/01/13 12:08 AM
. * Re: When MAME fails to load a game... Elaphe  10/01/13 02:21 PM
. * Re: When MAME fails to load a game... krick  10/01/13 05:08 PM
. * Re: When MAME fails to load a game... Elaphe  10/01/13 09:30 PM

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