Advertisement
djvj

snesgt module

May 21st, 2016
364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.81 KB | None | 0 0
  1. MEmu = SNESGT
  2. MEmuV = v0.230 beta 7
  3. MURL = http://gigo.retrogames.com/|http://gigo.retrogames.com/bbs/c-board.cgi?cmd=one;no=2205
  4. MAuthor = djvj,bleasby
  5. MVersion = 1.0.1
  6. MCRC =
  7. iCRC =
  8. mId = 635986877402729496
  9. MSystem = "Super Nintendo Entertainment System"
  10. ;----------------------------------------------------------------------------
  11. ; Notes:
  12. ; You can find the beta 7 edition here: http://gigo.retrogames.com/bbs/c-board.cgi?cmd=one;no=2205
  13. ;----------------------------------------------------------------------------
  14. StartModule()
  15. BezelGUI()
  16. FadeInStart()
  17.  
  18. primaryExe := new Emulator(emuPath . "\" . executable) ; instantiate emulator executable object
  19.  
  20. ; curTitleMode := A_TitleMatchMode
  21. ; SetTitleMatchMode, RegEx
  22. ; emuPrimaryWindow := new Window(new WindowTitle("i)SNESGT")) ; instantiate primary emulator window object
  23.  
  24. ; emuPrimaryWindow := new Window(new WindowTitle("SNESGT","ATL:00501720")) ; instantiate primary emulator window object
  25. emuPrimaryWindow := new Window(new WindowTitle("i)SNESGT","i)ATL:")) ; instantiate primary emulator window object
  26. ; emuPrimaryWindow := new Window(new WindowTitle("SNESGT")) ; instantiate primary emulator window object
  27. ; MsgBox % A_TitleMatchMode
  28. ; SetTitleMatchMode % curTitleMode
  29.  
  30. Fullscreen := moduleIni.Read("Settings", "Fullscreen","true","",1)
  31. bezelTopOffset := IniReadCheck(settingsFile, "Settings", "Bezel_Top_Offset","50",,1)
  32. bezelBottomOffset := IniReadCheck(settingsFile, "Settings", "Bezel_Bottom_Offset","8",,1)
  33. bezelRightOffset := IniReadCheck(settingsFile, "Settings", "Bezel_Right_Offset", "8",,1)
  34. bezelLeftOffset := IniReadCheck(settingsFile, "Settings", "Bezel_Left_Offset", "8",,1)
  35.  
  36. hideEmuObj := Object(emuPrimaryWindow,1)
  37. 7z(romPath, romName, romExtension, sevenZExtractPath)
  38.  
  39. BezelStart()
  40. HideAppStart(hideEmuObj,hideEmu)
  41.  
  42. primaryExe.Run(" """ . romPath . "\" . romName . romExtension . """")
  43.  
  44. curTitleMode := A_TitleMatchMode
  45. SetTitleMatchMode, RegEx
  46. emuPrimaryWindow.Wait()
  47. emuPrimaryWindow.WaitActive()
  48. SetTitleMatchMode % curTitleMode
  49.  
  50. If (fullscreen = "true")
  51. emuPrimaryWindow.MenuSelectItem("Options","Display","Switch Screen Mode")
  52.  
  53. BezelDraw()
  54. HideAppEnd(hideEmuObj,hideEmu)
  55. FadeInExit()
  56. primaryExe.Process("WaitClose")
  57. 7zCleanUp()
  58. BezelExit()
  59. FadeOutExit()
  60. ExitModule()
  61.  
  62.  
  63. HaltEmu:
  64. disableSuspendEmu := true
  65. RestoreEmu:
  66. If (fullscreen = "true") {
  67. curTitleMode := A_TitleMatchMode
  68. SetTitleMatchMode, RegEx
  69. emuPrimaryWindow.MenuSelectItem("Options","Display","Switch Screen Mode")
  70. SetTitleMatchMode % curTitleMode
  71. }
  72. Return
  73.  
  74. CloseProcess:
  75. FadeOutStart()
  76. curTitleMode := A_TitleMatchMode
  77. SetTitleMatchMode, RegEx
  78. emuPrimaryWindow.Close()
  79. SetTitleMatchMode % curTitleMode
  80. Return
  81.  
  82. BezelLabel:
  83. disableHideTitleBar := "true"
  84. disableHideToggleMenu := "true"
  85. disableHideBorder := "true"
  86. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement