Advertisement
djvj

Untitled

Aug 29th, 2015
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. MEmu = CPS3
  2. MEmuV = v1.0a
  3. MURL = http://nebula.emulatronia.com/
  4. MAuthor = djvj
  5. MVersion = 1.0
  6. MCRC = A2D52985
  7. iCRC = EB44FC76
  8. mId = 635732033396524046
  9. MSystem = "Capcom Play System 3","Capcom Play System III"
  10. ;----------------------------------------------------------------------------
  11. ; Notes:
  12. ; Roms must be named mame-style short names because they get passed as is to the emu to load.
  13. ; Open the emulator.ini in the emu folder and make sure the Dir1 points to your folder with your roms. Also make sure to remove the ; at the beginning of the line.
  14. ; Set any other settings in the emulator.ini that you may need as well. AutoFull will be controlled by the module.
  15. ;----------------------------------------------------------------------------
  16. StartModule()
  17. BezelGUI()
  18. FadeInStart()
  19.  
  20. settingsFile := modulePath . "\" . moduleName . ".ini"
  21. fullscreen := IniReadCheck(settingsFile, "Settings", "Fullscreen","true",,1)
  22.  
  23. BezelStart()
  24.  
  25. ;Set the properties in the emulator.ini file
  26. configFile := CheckFile(emuPath . "\emulator.ini")
  27. IniRead, currentFullscreen, %configFile%, Renderer, AutoFull
  28. If (fullscreen = "true" && currentFullscreen != "1")
  29. IniWrite, 1, %configFile%, Renderer, AutoFull
  30. Else If (fullscreen != "true" && currentFullscreen != "0")
  31. IniWrite, 0, %configFile%, Renderer, AutoFull
  32.  
  33. hideEmuObj := Object("ahk_class MYWIN",1) ; Hide_Emu will hide these windows. 0 = will never unhide, 1 = will unhide later
  34. HideEmuStart()
  35. Run(executable . A_Space . romName, emuPath)
  36.  
  37. WinWait("ahk_class MYWIN")
  38. WinWaitActive("ahk_class MYWIN")
  39. Sleep, 2000 ; Increase if your front end is getting a quick flash before the game loads
  40.  
  41. BezelDraw()
  42. HideEmuEnd()
  43. FadeInExit()
  44. Process("WaitClose", executable)
  45. BezelExit()
  46. FadeOutExit()
  47. ExitModule()
  48.  
  49.  
  50. HaltEmu:
  51. RestoreEmu:
  52. If fullscreen = true
  53. { PostMessage, 0x111, 40010,,,ahk_class MYWIN ; Toggle Fullscreen
  54. Sleep, 2000 ; required otherwise the emu crashes from being paused
  55. }
  56. Return
  57.  
  58. CloseProcess:
  59. FadeOutStart()
  60. WinClose("ahk_class MYWIN")
  61. Return
  62.  
  63. ; Unused commands
  64. ; PostMessage, 0x111, 40004,,,ahk_class MYWIN ; Exit
  65. ; PostMessage, 0x111, 40010,,,ahk_class MYWIN ; Set to Custom (.ini) res
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement