|
When MAME fails to load a game...
#315197 - 09/30/13 11:19 PM
|
|
|
I is there any way to send some info to the clipboard or to a log file so as to determine when MAME fails to load a game, be it because the file is corrupt of the romset outdated?
|
|
|
redk9258 |
Regular
|
|
|
Reged: 09/21/03
|
Posts: 3968
|
Loc: Troy, Illinois USA
|
|
Send PM
|
|
|
Re: When MAME fails to load a game...
[Re: Elaphe]
#315199 - 10/01/13 12:08 AM
|
|
|
Are you running from the command prompt?
Try -verbose
MAME -verbose pacman>pacman.txt
|
|
|
|
Re: When MAME fails to load a game...
[Re: redk9258]
#315229 - 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?
|
|
|
|
Re: When MAME fails to load a game...
[Re: Elaphe]
#315234 - 10/01/13 05:08 PM
|
|
|
|
|
Re: When MAME fails to load a game...
[Re: krick]
#315243 - 10/01/13 09:30 PM
|
|
|
Thanx. It worked. I just need to use runwait instead of run with Autohotkey and now it detects the errorlevel on mame's exit. If it's 2, that means the game failed to load.
|
|
|