Guest User

Untitled

a guest
Apr 25th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. ;----------------------------------------------------------------------------
  2. ; MAME
  3. ; MAME .140
  4. ; by BBB
  5. ; 1.0
  6. ;
  7. ; Info:
  8. ; Since MAME needs to save hi scores and data on exit, then we can't force
  9. ; MAME closed with a hotkey. So make sure you have your own exit key setup
  10. ; in MAME first. We will leave the CloseProcess section below blank, but
  11. ; it is still required.
  12. ;
  13. ;----------------------------------------------------------------------------
  14.  
  15.  
  16. Runwait, %executable% %romName%, %emuPath%, Hide UseErrorLevel
  17.  
  18. if(ErrorLevel != 0){
  19. if (ErrorLevel = 1){
  20. Error = Failed Validity
  21. }else if(ErrorLevel = 2){
  22. Error = Missing Files
  23. }else if(ErrorLevel = 3){
  24. Error = Fatal Error
  25. }else if(ErrorLevel = 4){
  26. Error = Device Error
  27. }else if(ErrorLevel = 5){
  28. Error = Game Does Not Exist
  29. }else if(ErrorLevel = 6){
  30. Error = Invalid Config
  31. }else if(ErrorLevel = 7 || ErrorLevel = 8 || ErrorLevel = 9){
  32. Error = Identification Error
  33. }else{
  34. Error = Mame Error
  35. }
  36. MsgBox Mame Error - %Error%
  37. }
  38.  
  39. ExitApp
  40.  
  41.  
  42. ;Required
  43. CloseProcess:
  44. ;Doesnt have to do anything but make sure to have the line before and after this line.
  45. return
Add Comment
Please, Sign In to add comment