Results 1 to 3 of 3

Thread: Does mame.exe set errorlevel if it crashes?

  1. #1

    Default Does mame.exe set errorlevel if it crashes?

    Running mame in a batch file.

    Just wondering if it sets errorlevel at all when it is either run successfully or crashes?

    looking to do something like:

    mame %1
    if errorlevel = 0 goto allow
    if errorlevel = 1 goto crashed

  2. #2

    Default Re: Does mame.exe set errorlevel if it crashes?

    Got it figured out (answer is it does).

    Batch file is essentially as follows:

    rem launch special version
    mame %1

    rem if it errors out try alternate version
    if %errorlevel% neq 0 goto altversion

    goto done

    :altversion
    mame_alt %1

    :done

  3. #3

    Default Re: Does mame.exe set errorlevel if it crashes?

    Even better, just throw the alternate launch on the if line:

    mame %1

    if %errorlevel% neq 0 mamealt %1

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •