Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;----------------------------------------------------------------------------
- ; MAME
- ; MAME .140
- ; by BBB
- ; 1.0
- ;
- ; Info:
- ; Since MAME needs to save hi scores and data on exit, then we can't force
- ; MAME closed with a hotkey. So make sure you have your own exit key setup
- ; in MAME first. We will leave the CloseProcess section below blank, but
- ; it is still required.
- ;
- ;----------------------------------------------------------------------------
- Runwait, %executable% %romName%, %emuPath%, Hide UseErrorLevel
- if(ErrorLevel != 0){
- if (ErrorLevel = 1){
- Error = Failed Validity
- }else if(ErrorLevel = 2){
- Error = Missing Files
- }else if(ErrorLevel = 3){
- Error = Fatal Error
- }else if(ErrorLevel = 4){
- Error = Device Error
- }else if(ErrorLevel = 5){
- Error = Game Does Not Exist
- }else if(ErrorLevel = 6){
- Error = Invalid Config
- }else if(ErrorLevel = 7 || ErrorLevel = 8 || ErrorLevel = 9){
- Error = Identification Error
- }else{
- Error = Mame Error
- }
- MsgBox Mame Error - %Error%
- }
- ExitApp
- ;Required
- CloseProcess:
- ;Doesnt have to do anything but make sure to have the line before and after this line.
- return
Add Comment
Please, Sign In to add comment