Advertisement
djvj

Untitled

Jan 15th, 2015
913
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.69 KB | None | 0 0
  1. MEmu = AAE
  2. MEmuV = v12/13/08
  3. MURL = http://pages.suddenlink.net/aae/
  4. MAuthor = djvj
  5. MVersion = 2.0.2
  6. MCRC = FADED0CC
  7. iCRC = CF058B02
  8. MID = 635038268873928953
  9. MSystem = "AAE"
  10. ;----------------------------------------------------------------------------
  11. ; Notes:
  12. ; To apply the updates, first extract the aae092808.zip to its own folder. Then extract aaeu1.zip (10/26/08 build) on top of it overwriting existing files. Do this again for aaeu2.zip (12/13/08 build)
  13. ; 12/13/08 release crashes on launch if you have joysticks plugged in or virtual joystick drivers like VJoy installed. If you cannot change this, use AAE from 10/26/08.
  14. ; Open your aae.log if it crashes and if it's filled with joystick control info, you need to unplug one joystick at a time until it stops happening.
  15. ; In the aae.ini, If mame_rom_path has a # before it, remove it.
  16. ; To set fullscreen, set the variable below to true
  17. ; You can also start the emu and press TAB to set options.
  18. ;----------------------------------------------------------------------------
  19. StartModule()
  20. BezelGUI()
  21. FadeInStart()
  22.  
  23. settingsFile := modulePath . "\" . moduleName . ".ini"
  24. bezelMode := IniReadCheck(settingsFile, "Settings", "BezelMode","Layout",,1) ; "Layout" or "FixResMode"
  25. Fullscreen := IniReadCheck(settingsFile, "settings", "Fullscreen","true",,1) ; true (fake full screen), false (Windowed mode) and Fullscreen (normal fullscreen. Do not work with HyperPause.)
  26. Artwork_Crop := IniReadCheck(settingsFile, "Settings", "Artwork_Crop","0",,1) ; Crop Artwork
  27. Use_Artwork := IniReadCheck(settingsFile, "Settings", "Use_Artwork","0",,1) ; Use Artwork
  28. Use_Overlays := IniReadCheck(settingsFile, "Settings", "Use_Overlays","0",,1) ; Use Overlays
  29.  
  30. aaeINI := CheckFile(emuPath . "\aae.ini")
  31.  
  32. ;Enabling Bezel components
  33. If bezelEnabled = true
  34. { If bezelMode = FixResMode
  35. { IniWrite, 0, %aaeINI%, main, bezel
  36. IniWrite, %Use_Artwork%, %aaeINI%, main, artwork
  37. IniWrite, %Use_Overlays%, %aaeINI%, main, overlay
  38. IniWrite, %Artwork_Crop%, %aaeINI%, main, artcrop
  39. BezelStart("FixResMode")
  40. } Else {
  41. IniWrite, 1, %aaeINI%, main, bezel
  42. IniWrite, %Use_Artwork%, %aaeINI%, main, artwork
  43. IniWrite, %Use_Overlays%, %aaeINI%, main, overlay
  44. IniWrite, %Artwork_Crop%, %aaeINI%, main, artcrop
  45. }
  46. } Else {
  47. IniWrite, 0, %aaeINI%, main, bezel
  48. IniWrite, %Use_Artwork%, %aaeINI%, main, artwork
  49. IniWrite, %Use_Overlays%, %aaeINI%, main, overlay
  50. IniWrite, %Artwork_Crop%, %aaeINI%, main, artcrop
  51. }
  52.  
  53. ;Creating fake fullscreen mode if fullscreen is true because HyperPause is not compatible with AAE fullscreen mode.
  54. IniRead, currentFullScreen, %aaeINI%, main, windowed
  55. if (currentFullScreen = 0) and (Fullscreen != "Fullscreen")
  56. IniWrite, 1, %aaeINI%, main, windowed
  57. Else If (currentFullScreen = 1) and (Fullscreen = "Fullscreen")
  58. IniWrite, 0, %aaeINI%, main, windowed
  59. If ( Fullscreen = "true" ){
  60. IniWrite, %A_ScreenWidth%, %aaeINI%, main, screenw
  61. IniWrite, %A_ScreenHeight%, %aaeINI%, main, screenh
  62. }
  63.  
  64. 7z(romPath, romName, romExtension, 7zExtractPath)
  65.  
  66. IniWrite, %romPath%, %aaeINI%, main, mame_rom_path ; update AAE's rom path so it's always correct and also works with 7z
  67.  
  68. Run(executable . A_Space . romName,emuPath)
  69.  
  70. WinWait("ahk_class AllegroWindow")
  71. WinWaitActive("ahk_class AllegroWindow")
  72.  
  73. If (Fullscreen = "true"){
  74. Sleep, 200
  75. WinSet, Style, -0xC00000, A
  76. }
  77.  
  78. BezelDraw()
  79. FadeInExit()
  80. Process("WaitClose",executable)
  81. 7zCleanUp()
  82. BezelExit()
  83. FadeOutExit()
  84. ExitModule()
  85.  
  86.  
  87. RestoreEmu:
  88. timeout := A_TickCount
  89. Loop {
  90. WinClose("ahk_class #32770", "Crap")
  91. If (!ErrorLevel || timeout < A_TickCount - 3000)
  92. Break
  93. Sleep, 50
  94. }
  95. Return
  96.  
  97. CloseProcess:
  98. FadeOutStart()
  99. WinClose("ahk_class AllegroWindow")
  100. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement