Guest User

Untitled

a guest
Sep 22nd, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 74.99 KB | None | 0 0
  1. [code]
  2. 23:17:21:073 | RL | INFO | +N/A | Main - RocketLauncher v1.0.1.3 (www.rlauncher.com)
  3. 23:17:21:115 | RL | INFO | +31 | Main - System Specs:
  4. RocketLauncher Dir: Z:\Hyperspin\RocketLauncher
  5. RocketLauncher is: 32-bit
  6. OS: Microsoft Windows 7 Ultimate
  7. SKU: Ultimate
  8. Total Memory: 16288.03 MB
  9. Free Memory: 12495.12 MB
  10. Used Memory: 3792.906 MB
  11. SystemType: 64-bit
  12. Physical Processors: 1
  13. Logical Processors: 8
  14. GPU 1 Name: Intel(R) HD Graphics 4600
  15. GPU 1 RAM: 1024.00 MB
  16. GPU 1 Driver Version: 10.18.14.4206
  17. Sound 1 Device: Realtek High Definition Audio
  18. Sound 1 Status: Enabled
  19. Sound 2 Device: Intel(R) Display Audio
  20. Sound 2 Status: Enabled
  21. OS Language: English_United_States
  22. OS Admin Status: Yes
  23. Latest .Net Version: v4.0.30319
  24. Monitor #1 (\\.\DISPLAY1): 1920x1080 (1920x1040 work) [Landscape] (Primary)
  25. Current AHK Desktop Width: 1920
  26. Current AHK Desktop Height: 1080
  27. AutoHotkey Path:
  28. AHK Version: 1.1.09.04
  29. Unicode: No
  30. 23:17:21:115 | RL | INFO | +0 | CheckFile - Checking if Z:\Hyperspin\RocketLauncher\RocketLauncher.exe exists
  31. 23:17:21:115 | RL | INFO | +0 | Main - Loading Front End Plugin: "HyperSpin"
  32. 23:17:21:115 | RL | INFO | +0 | Main - RocketLauncher received "Amstrad GX4000" and "Robocop 2"
  33. 23:17:21:119 | RL | INFO | +16 | Main - Did not find a "Z:\Hyperspin\RocketLauncher\Settings\Amstrad GX4000\Game Options.ini" file, skipping any game-specific options.
  34. 23:17:21:119 | RL | INFO | +0 | Main - Robocop 2 is using the default emulator: MESS
  35. 23:17:21:119 | RL | INFO | +0 | Main - Checking for a [MESS] section in Z:\Hyperspin\RocketLauncher\Settings\Amstrad GX4000\Emulators.ini
  36. 23:17:21:119 | RL | INFO | +0 | Main - Found [MESS] in Z:\Hyperspin\RocketLauncher\Settings\Amstrad GX4000\Emulators.ini
  37. 23:17:21:120 | RL | INFO | +0 | CheckFile - Checking if Z:\Hyperspin\RocketLauncher\Modules\RetroArch - Amstrad GX4000\RetroArch - Amstrad GX4000.ahk exists
  38. 23:17:21:124 | RL | WARNING | +0 | Main - CRC Check - Module has no CRC defined on the header.
  39. 23:17:21:124 | RL | INFO | +0 | Main - Robocop 2 will use module: Z:\Hyperspin\RocketLauncher\Modules\RetroArch - Amstrad GX4000\RetroArch - Amstrad GX4000.ahk
  40. 23:17:21:131 | RL | INFO | +0 | Main - Using standard method with "Rom Extension" SkipChecks or without any SkipChecks.
  41. 23:17:21:132 | RL | INFO | +0 | CheckFile - Checking if Z:\Hyperspin\Emulators\Amstrad GX4000\retroarch.exe exists
  42. 23:17:21:132 | RL | INFO | +0 | Main - INI Keys read
  43. 23:17:21:132 | RL | INFO | +0 | CheckFile - Checking if Z:\Hyperspin\RocketLauncher\Module Extensions\7z.exe exists
  44. 23:17:21:132 | RL | INFO | +0 | CheckFile - Checking if Z:\Hyperspin\RocketLauncher\Module Extensions\7z.dll exists
  45. 23:17:21:134 | RL | INFO | +15 | Main - "Robocop 2" does not qualify for MultiGame. Only roms with any of these strings in their name are acceptable: (Disc,(Disk,(Cart,(Tape,(Cassette,(Part,(Side
  46. 23:17:21:134 | RL | INFO | +0 | CheckPaths - Started
  47. 23:17:21:134 | RL | INFO | +0 | CheckPaths - Found rom: Z:\Hyperspin\Emulators\Amstrad GX4000\ROMS\Robocop 2.zip
  48. 23:17:21:134 | RL | INFO | +0 | CheckPaths - Ended
  49. 23:17:21:134 | RL | INFO | +0 | BuildScript - User Variables:
  50. ;----------------------------------------------------------------------------
  51. ; INJECTED VARIABLES
  52. ;----------------------------------------------------------------------------
  53.  
  54. #NoTrayIcon
  55. #InstallKeybdHook
  56. DetectHiddenWindows, ON
  57. SetTitleMatchMode, 2
  58. SendMode, Event
  59. 0 = 10
  60. pluginPath = Z:\Hyperspin\RocketLauncher\Plugins
  61. pluginName = HyperSpin
  62. pluginExt = .plugin
  63. contextOnExit = 1
  64. rlMode =
  65. rlTitle = RocketLauncher
  66. rlVersion = 1.0.1.3
  67. rlAuthor = djvj
  68. rlURL = www.rlauncher.com
  69. langFile = Z:\Hyperspin\RocketLauncher\Data\Language\Localization.ini
  70. primMonitor = 1
  71. frontendPID =
  72. frontendPath = Z:\Hyperspin
  73. frontendExe = HyperSpin.exe
  74. frontendExt = exe
  75. frontendName = HyperSpin
  76. frontendDrive = Z:
  77. exitEmulatorKey = ~Esc
  78. restoreFE = false
  79. exitScriptKey = ~PGUP & ~PGDN
  80. toggleCursorKey = ~e & ~t
  81. emuFullPath = Z:\Hyperspin\Emulators\Amstrad GX4000\retroarch.exe
  82. emuPath = Z:\Hyperspin\Emulators\Amstrad GX4000
  83. emuName = MESS
  84. emuExt = exe
  85. romPath = Z:\Hyperspin\Emulators\Amstrad GX4000\ROMS
  86. romPathFromIni = Z:\Hyperspin\Emulators\Amstrad GX4000\ROMS
  87. romExtension = .zip
  88. romExtensionOrig = .zip
  89. romExtensions = zip
  90. executable = retroarch.exe
  91. systemDbName = Amstrad GX4000
  92. systemName = Amstrad GX4000
  93. dbPath =
  94. dbName = Robocop 2
  95. dbExt =
  96. romName = Robocop 2
  97. romMapPath =
  98. romMappingEnabled = false
  99. romMappingLaunchMenuEnabled = false
  100. romMappingFirstMatchingExt = false
  101. romMappingShowAllRomsInArchive = true
  102. romMappingNumberOfGamesByScreen = 7
  103. romMappingMenuWidth = 400
  104. romMappingMenuMargin = 65
  105. romMappingTextFont = Bebas Neue
  106. romMappingTextOptions = cFFFFFFFF r4 s60 Bold
  107. romMappingDisabledTextColor = ff888888
  108. romMappingTextSizeDifference = 7
  109. romMappingTextMargin = 15
  110. romMappingTitleTextFont = Bebas Neue
  111. romMappingTitleTextOptions = cFFFFFFFF r4 s90 Bold
  112. romMappingTitle2TextFont = Bebas Neue
  113. romMappingTitle2TextOptions = cFFFFFFFF r4 s22 Bold
  114. romMappingGameInfoTextFont = Bebas Neue
  115. romMappingGameInfoTextOptions = cFFFFFFFF r4 s22 Regular
  116. romMappingBackgroundBrush = aa000000
  117. romMappingColumnBrush = 33000000
  118. romMappingButtonBrush1 = 6f000000
  119. romMappingButtonBrush2 = 33000000
  120. romMappingBackgroundAlign = Stretch and Lose Aspect
  121. romMappingMenuFlagWidth = 55
  122. romMappingMenuFlagSeparation = 7
  123. romMappingDefaultMenuList = FullList
  124. romMappingSingleFilteredRomAutomaticLaunch = false
  125. altArchiveNameOnly =
  126. altRomNameOnly =
  127. altArchiveAndRomName =
  128. altArchiveAndManyRomNames =
  129. altRomNamesOnly =
  130. romMapScenario =
  131. skipchecks = false
  132. romMatchExt = false
  133. blockInputTime = 0
  134. blockInputFile = Z:\Hyperspin\RocketLauncher\Module Extensions\BlockInput.exe
  135. errorLevelReporting = false
  136. lockLaunch = false
  137. lockLaunchGame =
  138. screenRotationAngle = 0
  139. screenRotationAngleGame =
  140. logFile = Z:\Hyperspin\RocketLauncher\RocketLauncher.log
  141. logLabel := [" INFO"," WARNING"," ERROR"," DEBUG1"," DEBUG2"]
  142. logLevel = 3
  143. logShowDebugConsole = false
  144. logIncludeModule = true
  145. logIncludeFileProperties = true
  146. logShowCommandWindow = false
  147. logCommandWindow = false
  148. rlDebugConsoleStdout =
  149. sysLang = English_United_States
  150. sysType = 64-bit
  151. broadcastWindowTitle =
  152. navUpKey = Up
  153. navDownKey = Down
  154. navLeftKey = Left
  155. navRightKey = Right
  156. navSelectKey = Enter
  157. navP2UpKey = Numpad8
  158. navP2DownKey = Numpad2
  159. navP2LeftKey = Numpad4
  160. navP2RightKey = Numpad6
  161. navP2SelectKey = NumpadEnter
  162. originalWidth = 1920
  163. originalHeight = 1080
  164. vdEnabled = true
  165. vdFullPath = Z:\Hyperspin\Daemon Tools Lite\DTLite.exe
  166. vdUseSCSI = true
  167. vdDriveLetter = D
  168. vdAddDrive = true
  169. servoStikEnabled = false
  170. servoStikExitMode = false
  171. ledblinkyEnabled = false
  172. ledblinkyFullPath =
  173. ledblinkyProfilePath = Z:\Hyperspin\RocketLauncher\Profiles\LEDBlinky
  174. ledblinkyRLProfile = Z:\Hyperspin\RocketLauncher\Profiles\LEDBlinky\RocketLauncher
  175. emuIdleShutdown = 0
  176. launchPasswordHash = zQJHGuIBD6bt2rEoPola0Rbrl81Ci3lgdm1mxbcm+QfXe+SDPHV0ig==
  177. hideCursor = false
  178. hideEmu = false
  179. hideFE = false
  180. fadeIn = false
  181. fadeInDuration = 2000
  182. fadeInTransitionAnimation = DefaultAnimateFadeIn
  183. fadeInDelay = 5000
  184. fadeInExitDelay = 2000
  185. fadeOutExitDelay = 0
  186. fadeOut = false
  187. fadeOutExtraScreen = false
  188. fadeOutDuration = 500
  189. fadeOutTransitionAnimation = DefaultAnimateFadeOut
  190. fadeOutDelay = 0
  191. fadeLyrInterpolation = 2
  192. fadeMuteEmulator = false
  193. fadeUseBackgrounds = false
  194. fadeWidthBaseRes = 1920
  195. fadeHeightBaseRes = 1080
  196. fadeLyr1Color = FF000000
  197. fadeLyr1AlignImage = Center
  198. fadeLyr2Pos = Center
  199. fadeLyr2X = 0
  200. fadeLyr2Y = 0
  201. fadeLyr2W =
  202. fadeLyr2H =
  203. fadeLyr2Adjust = 1
  204. fadeLyr2PicPad = 0
  205. fadeLyr2Prefix = Extra Layer 1 - Console
  206. fadeLyr3Pos = Center
  207. fadeLyr3X = 450
  208. fadeLyr3Y = 450
  209. fadeLyr3W =
  210. fadeLyr3H =
  211. fadeLyr3Adjust = 1
  212. fadeLyr3PicPad = 0
  213. fadeLyr3Speed = 750
  214. fadeLyr3Animation = DefaultFadeAnimation
  215. fadeLyr37zAnimation = DefaultFadeAnimation
  216. fadeLyr3Type = imageandbar
  217. fadeLyr3ImgFollow7zProgress = true
  218. fadeLyr3Repeat = 1
  219. fadeLyr3BackImageTransparency = 30
  220. fadeLyr3StaticPos = No Alignment
  221. fadeLyr3StaticX = 0
  222. fadeLyr3StaticY = 870|1575
  223. fadeLyr3StaticW =
  224. fadeLyr3StaticH =
  225. fadeLyr3StaticAdjust = 1
  226. fadeLyr3StaticPicPad = 0
  227. fadeLyr3StaticPrefix = Info Bar
  228. fadeLyr4Adjust = 1
  229. fadeLyr4X = 1792|952
  230. fadeLyr4Y = 891|1596
  231. fadeLyr4W = 128
  232. fadeLyr4H =
  233. fadeLyr4Pos = No Alignment
  234. fadeLyr4FPS = 50
  235. fadeLyr4PicPad = 0
  236. fadeTranspGifColor = FFFFFF
  237. fadeBarWindow = Image
  238. fadeBarWindowX =
  239. fadeBarWindowY =
  240. fadeBarWindowW = 900
  241. fadeBarWindowH =
  242. fadeBarWindowR = 30
  243. fadeBarWindowM = 30
  244. fadeBarWindowHatchStyle = 8
  245. fadeBar = 7zOnly
  246. fadeBarNon7zProgressTime = 0
  247. fadeBarBack = true
  248. fadeBarBackColor = FF555555
  249. fadeBarH = 30
  250. fadeBarR = 10
  251. fadeBarColor = DD00BFFF
  252. fadeBarHatchStyle = 8
  253. fadeBarPercentageText = true
  254. fadeBarInfoText = true
  255. fadeBarXOffset = 0
  256. fadeBarYOffset = 150
  257. fadeRomInfoDescription = filtered text
  258. fadeRomInfoSystemName = image
  259. fadeRomInfoYear = text with label
  260. fadeRomInfoManufacturer = text with label
  261. fadeRomInfoGenre = disabled
  262. fadeRomInfoRating = image
  263. fadeRomInfoOrder = Description|SystemName|Year|Manufacturer|Genre|Rating
  264. fadeRomInfoTextPlacement = User Defined
  265. fadeRomInfoTextMargin = 7
  266. fadeRomInfoText1Options = w1600|787 h90 x165 y870|1575 cFFE1E1E1 r4 s90 Left Regular
  267. fadeRomInfoText2Options = w400 x8 y15 cFF555555 r4 s60 Bold
  268. fadeRomInfoText3Options = w310 x165 y960|1665 cFFE1E1E1 r4 s66 Left Regular
  269. fadeRomInfoText4Options = w1305|492 h66 x460 y960|1665 cFFE1E1E1 r4 s66 Left Regular
  270. fadeRomInfoText5Options = cFF555555 r4 s42 Bold
  271. fadeRomInfoText6Options = h135 x15 y885|1590 cFFCFCFCA r4 s120 Regular
  272. fadeStats_Number_of_Times_Played = text with label
  273. fadeStats_Last_Time_Played = text with label
  274. fadeStats_Average_Time_Played = text with label
  275. fadeStats_Total_Time_Played = text with label
  276. fadeStats_System_Total_Played_Time = text with label
  277. fadeStats_Total_Global_Played_Time = text with label
  278. fadeStatsInfoOrder = Number_of_Times_Played|Last_Time_Played|Average_Time_Played|Total_Time_Played|System_Total_Played_Time|Total_Global_Played_Time
  279. fadeStatsInfoTextPlacement = topRight
  280. fadeStatsInfoTextMargin = 7
  281. fadeStatsInfoText1Options = cFFB4B4B4 r4 s22 Bold
  282. fadeStatsInfoText2Options = cFFB4B4B4 r4 s22 Bold
  283. fadeStatsInfoText3Options = cFFB4B4B4 r4 s22 Bold
  284. fadeStatsInfoText4Options = cFFB4B4B4 r4 s22 Bold
  285. fadeStatsInfoText5Options = cFFB4B4B4 r4 s22 Bold
  286. fadeStatsInfoText6Options = cFFB4B4B4 r4 s22 Bold
  287. fadeText1X = 0
  288. fadeText1Y = 0
  289. fadeText1Options = cFFB4B4B4 r4 s30 Right Bold
  290. fadeText1 = Loading Game
  291. fadeText2X = 0
  292. fadeText2Y = 0
  293. fadeText2Options = cFFB4B4B4 r4 s30 Right Bold
  294. fadeText2 = Extraction Complete, Ready
  295. fadeText3 = Loading Game
  296. fadeText4 = Loading Complete
  297. fadeFont = Bebas Neue
  298. fadeSystemAndRomLayersOnly = true
  299. fadeExtractionTime = disabled
  300. fadeExtractionTimeTextX = 0
  301. fadeExtractionTimeTextY = 0
  302. fadeExtractionTimeTextOptions = cFF555555 r4 s20 Bold
  303. fadeInterruptKey =
  304. detectFadeErrorEnabled = true
  305. fadeImgPath = Z:\Hyperspin\RocketLauncher\Media\Fade
  306. RLDataPath = Z:\Hyperspin\RocketLauncher\Data
  307. RLMediaPath = Z:\Hyperspin\RocketLauncher\Media
  308. RLErrSoundPath = Z:\Hyperspin\RocketLauncher\Media\Sounds\Error
  309. modulesPath = Z:\Hyperspin\RocketLauncher\Modules
  310. moduleFullName = Z:\Hyperspin\RocketLauncher\Modules\RetroArch - Amstrad GX4000\RetroArch - Amstrad GX4000.ahk
  311. moduleName = RetroArch - Amstrad GX4000
  312. modulePath = Z:\Hyperspin\RocketLauncher\Modules\RetroArch - Amstrad GX4000
  313. moduleExtension = ahk
  314. moduleExtensionsPath = Z:\Hyperspin\RocketLauncher\Module Extensions
  315. libPath = Z:\Hyperspin\RocketLauncher\Lib
  316. 7zEnabled = false
  317. 7zPath = Z:\Hyperspin\RocketLauncher\Module Extensions\7z.exe
  318. 7zDllPath = Z:\Hyperspin\RocketLauncher\Module Extensions\7z.dll
  319. 7zExtractPath = Z:\Hyperspin\temp
  320. 7zExtractPathOrig =
  321. 7zAttachSystemName = false
  322. 7zDelTemp = true
  323. 7zSounds = true
  324. 7zFormats = .zip,.rar,.7z,.lzh,.gzip,.tar
  325. 7zFormatsNoP = zip,rar,7z,lzh,gzip,tar
  326. mgEnabled = false
  327. mgKey = ~NumpadSub
  328. mgBackgroundColor = FF000000
  329. mgSidePadding = 0.2
  330. mgWidthBaseRes = 1920
  331. mgHeightBaseRes = 1080
  332. mgYOffset = 500|800
  333. mgFont = Arial
  334. mgText1Options = x10p y250|500 w80p Center cBBFFFFFF r4 s100 BoldItalic
  335. mgText1Text = Please select a game
  336. mgText2Options = w96p cFFFFFFFF r4 s50 Center BoldItalic
  337. mgText2Offset = 100
  338. mgUseSound = true
  339. mgSoundfreq = 300
  340. mgExitEffect = none
  341. mgSelectedEffect = rotate
  342. mgUseGameArt = false
  343. mgCandidate =
  344. mgValidTypes = (Disc,(Disk,(Cart,(Tape,(Cassette,(Part,(Side
  345. mgOnLaunch = false
  346. pauseEnabled = false
  347. pauseKey = ~NumpadAdd
  348. pauseBackToMenuBarKey = X
  349. pauseZoomInKey = C
  350. pauseZoomOutKey = V
  351. pauseScreenshotKey = ~PrintScreen
  352. pauseHiToTextPath = Z:\Hyperspin\RocketLauncher\Module Extensions\HiToText.exe
  353. pauseSaveStateKeyCodes =
  354. pauseLoadStateKeyCodes =
  355. keymapperEnabled = false
  356. keymapperAHKMethod = false
  357. keymapper = xpadder
  358. xpadderFullPath = Z:\Hyperspin\Utilities\Xpadder\xpadder.exe
  359. joyToKeyFullPath = Z:\Hyperspin\Utilities\JoyToKey\JoyToKey.exe
  360. keymapperProfilePath = Z:\Hyperspin\RocketLauncher\Profiles\xpadder
  361. keymapperFrontEndProfileName = HyperSpin
  362. keymapperFrontEndProfile = false
  363. keymapperRocketLauncherProfileEnabled = false
  364. joyIDsEnabled = false
  365. joyIDsPreferredControllersGlobal =
  366. joyIDsPreferredControllersSystem = use_global
  367. joyIDsPreferredControllersOnExit =
  368. CustomJoyNamesEnabled = false
  369. CustomJoyNames =
  370. rotateMethod = false
  371. FEProfile = Z:\Hyperspin\RocketLauncher\Profiles\xpadder\HyperSpin
  372. defaultProfile = Z:\Hyperspin\RocketLauncher\Profiles\xpadder\_Default
  373. systemProfile = Z:\Hyperspin\RocketLauncher\Profiles\xpadder\Amstrad GX4000
  374. xPadderSystemProfile = Z:\Hyperspin\RocketLauncher\Profiles\xpadder\Amstrad GX4000\_Default
  375. emuProfile = Z:\Hyperspin\RocketLauncher\Profiles\xpadder\Amstrad GX4000\MESS
  376. romProfile = Z:\Hyperspin\RocketLauncher\Profiles\xpadder\Amstrad GX4000\Robocop 2
  377. RocketLauncherProfile = Z:\Hyperspin\RocketLauncher\Profiles\xpadder\RocketLauncher
  378. blankProfile = Z:\Hyperspin\RocketLauncher\Profiles\xpadder\_Default\blank
  379. ahkFEProfile = Z:\Hyperspin\RocketLauncher\Profiles\AHK\HyperSpin
  380. ahkDefaultProfile = Z:\Hyperspin\RocketLauncher\Profiles\AHK\_Default
  381. ahkSystemProfile = Z:\Hyperspin\RocketLauncher\Profiles\AHK\Amstrad GX4000
  382. ahkEmuProfile = Z:\Hyperspin\RocketLauncher\Profiles\AHK\Amstrad GX4000\MESS
  383. ahkRomProfile = Z:\Hyperspin\RocketLauncher\Profiles\AHK\Amstrad GX4000\Robocop 2
  384. ahkRocketLauncherProfile = Z:\Hyperspin\RocketLauncher\Profiles\AHK\RocketLauncher
  385. bezelEnabled = false
  386. bezelICEnabled = false
  387. statisticsEnabled = true
  388. pressDuration = -1
  389. emuVolume = 1
  390. dxwndIni = Z:\Hyperspin\RocketLauncher\Module Extensions\dxwnd\dxwnd.ini
  391. dxwndFullPath = Z:\Hyperspin\RocketLauncher\Module Extensions\dxwnd\dxwnd.exe
  392. mon1O =
  393. pacDrivedllFile = Z:\Hyperspin\RocketLauncher\Module Extensions\PacDrive32.dll
  394. userFadeAnimIniFile = Z:\Hyperspin\RocketLauncher\Lib\User Fade Animations.ini
  395.  
  396. 23:17:21:134 | RL | INFO | +0 | BuildScript - Loaded XHotkey Init.ahk scripts
  397. 23:17:21:134 | RL | INFO | +0 | BuildScript - Loaded Statistics Init.ahk scripts
  398. 23:17:21:134 | RL | WARNING | +0 | BuildScript - "Z:\Hyperspin\RocketLauncher\Lib\User Functions Init.ahk" not found
  399. 23:17:21:135 | RL | INFO | +0 | BuildScript - Validating module
  400. 23:17:21:137 | RL | INFO | +0 | BuildScript - Validation complete
  401. 23:17:21:137 | RL | INFO | +0 | BuildScript - Module:
  402. MEmu = RetroArch
  403. MEmuV = v05-11-2015 Nightly
  404. MURL = http://themaister.net/retroarch.html
  405. MAuthor = djvj,zerojay
  406. MVersion = 2.3.3
  407.  
  408. MSystem = "Acorn BBC Micro","AAE","Amstrad CPC","Amstrad GX4000","APF Imagination Machine","Applied Technology MicroBee","Apple IIGS","Atari 2600","Atari 5200","Atari 7800","Atari 8-bit","Atari Classics","Atari Jaguar","Atari Lynx","Atari ST","Atari XEGS","Bally Astrocade","Bandai Gundam RX-78","Bandai Super Vision 8000","Bandai Wonderswan","Bandai Wonderswan Color","Canon X07","Capcom Classics","Capcom Play System","Capcom Play System 2","Capcom Play System 3","Casio PV-1000","Casio PV-2000","Cave","Coleco ADAM","ColecoVision","Commodore MAX Machine","Commodore Amiga","Creatronic Mega Duck","Data East Classics","Dragon Data Dragon","Emerson Arcadia 2001","Entex Adventure Vision","Elektronika BK","Epoch Game Pocket Computer","Epoch Super Cassette Vision","Exidy Sorcerer","Fairchild Channel F","Final Burn Alpha","Funtech Super Acan","GamePark 32","GCE Vectrex","Hartung Game Master","Interton VC 4000","Irem Classics","JungleTac Sport Vii","Konami Classics","MAME","Magnavox Odyssey 2","Microsoft MSX","Microsoft MSX2","Matra & Hachette Alice","Mattel Aquarius","Mattel Intellivision","Midway Classics","Namco Classics","Namco System 22","NEC PC Engine","NEC PC Engine-CD","NEC PC-FX","NEC TurboGrafx-16","NEC SuperGrafx","NEC TurboGrafx-CD","Nintendo 64","Nintendo 64DD","Nintendo Arcade Systems","Nintendo Classics","Nintendo DS","Nintendo Entertainment System","Nintendo Famicom","Nintendo Famicom Disk System","Nintendo Game Boy","Nintendo Game Boy Color","Nintendo Game Boy Japan","Nintendo Game Boy Advance","Nintendo Game & Watch","Nintendo Super Game Boy","Nintendo Pokemon Mini","Nintendo Virtual Boy","Nintendo Super Famicom","Nintendo Satellaview","Nintendo SuFami Turbo","Panasonic 3DO","Elektronska Industrija Pecom 64","Philips CD-i","Philips Videopac","RCA Studio II","Sega 32X","Sega Classics","Sega Mega Drive 32X","Sega Mark III","Sega SC-3000","Sega SG-1000","Sega CD","Sega Game Gear","Sega Genesis","Sega Master System","Sega Mega Drive","Sega Pico","Sega Saturn","Sega Saturn Japan","Sega VMU","Sega ST-V","Sharp X1","Sinclair ZX Spectrum","Sony PlayStation","Sony PlayStation Minis","Sony PocketStation","Sony PSP","Sord M5","SNK Classics","SNK Neo Geo","SNK Neo Geo AES","SNK Neo Geo MVS","SNK Neo Geo Pocket","SNK Neo Geo CD","SNK Neo Geo Pocket Color","Spectravideo","Super Nintendo Entertainment System","Taito Classics","Tandy TRS-80 Color Computer","Technos","Texas Instruments TI 99-4A","Thomson MO5","Thomson TO7","Tiger Game.com","Tiki-100","Tomy Tutor","VTech CreatiVision","Watara Supervision","Williams Classics"
  409. ;----------------------------------------------------------------------------
  410. ; Notes:
  411. ; If the emu doesn't load and you get no error, usually this means the LibRetro DLL is not working!
  412. ; Devs stated they will never add support for mounted images (like via DT)
  413. ; Fullscreen is controlled via the module setting in RocketLauncherUI
  414. ; This module uses the CLI version of RetroArch (retroarch.exe), not the GUI (retroarch-phoenix.exe).
  415. ; The emu may make a mouse cursor appear momentarily during launch, MouseMove and hide_cursor seem to have no effect
  416. ; Enable 7z support for archived roms
  417. ; Available CLI options: https://github.com/PyroFilmsFX/iOS/blob/master/docs/retroarch.1
  418. ;
  419. ; LibRetro DLLs:
  420. ; LibRetro DLLs come with the emu, but here is another source for them: http://forum.themaister.net/
  421. ; Whatever cores you decide to use, make sure they are extracted anywhere in your Emu_Path\cores folder. The module will find and load the default core unless you choose a custom one for each system.
  422. ; You can find supported cores that Retroarch supports simply by downloading them from the "retroarch-phoenix.exe" or by visiting here: https://github.com/libretro/libretro.github.com/wiki/Supported-cores
  423. ; Some good discussion on cores and filters: http://forum.themaister.net/viewtopic.php?id=270
  424. ;
  425. ; SRM files:
  426. ; srm are stored in a "srm" dir in the emu folder. Each system ran through retroarch gets its own folder inside srm
  427. ;
  428. ; Save states:
  429. ; Save states are stored in a "save" dir in the emu folder. Each system ran through retroarch gets its own folder inside save
  430. ;
  431. ; Config files:
  432. ; By default, the module looks for config files in a folder called config in the RetroArch folder. Example: C:\emus\RetroArch\config. You can change this folder to anything you like by changing the module's ConfigFolder setting in RocketLauncherUI.
  433. ; RetroArch's global config file is called "retroarch.cfg". RetroArch will use a system cfg file named to match your System Name (example: Nintendo Entertainment System.cfg).
  434. ; RetroArch will also load core config files named after the core name. Example: nestopia_libretro.cfg
  435. ; This allows different settings globally, for each system, and for each core. If you want all systems to use the same retroarch.cfg, do not have any system or core cfg files, only have the retroarch.cfg.
  436. ; If a core config exists, it takes precedence over the global config. And if a system config exists, it takes precedence over the core config.
  437. ;
  438. ; MultiGame:
  439. ; MultiGame support is currently only available for the Mednafen PSX core. Retroarch uses the same method as Mednafen to load multi-disc games. This method involves m3u playlists which are commonly used for music. The m3u files needed to load multi-disc games are generated for you by the module when you launch a multi-disc game and are saved to your corresponding rom directory. Due to m3u limitations, your multi-disc roms/images cannot be archived -- they must be unzipped. All single disc games can remain archived and you can still enable 7z under system settings. If you do not wish to use MultiGame support you can archive your roms/images and m3u generation will be skipped on launch.
  440. ; The m3u files generated by the module contain a list of paths to all roms/images in the multi-disc set. Retroarch automatically loads the first path in the m3u so the first path will always be the disc you are loading. For example, Final Fantasy VII has 3 discs and if you load Disc 2 first, the order of the paths in the m3u will be disc 2, disc 3, disc 1. If you load Disc 3 first, the order will be disc 3, disc 1, disc 2. The module anticipates this and will load the correct disk, selected from the Pause/MultiDisk menus. However if you choose to manually use Retroarch's UI or disk swap keys to change discs, you will need to keep this in mind.
  441. ; In order for RocketLauncher's MultiGame UI to swap discs, you must define Eject_Toggle_Key, Next_Disk_Key, and Previous_Disk_Key under global settings for the emulator in RocketLauncher. Because AHK and Retroarch use different naming conventions for some keyboard keys, it is best to use a letter, a number, or F1-F12.
  442. ;
  443. ; MESS:
  444. ; MESS BIOS roms should be placed in the system\mess folder
  445. ;
  446. ; System Specific Notes:
  447. ; Microsoft MSX/MSX2: Launch an MSX game and in the core options, set the console to be an MSX2 and it will play both just fine.
  448. ; Nintendo Famicom Disk System - Requires disksys.rom be placed in the folder you define as system_directory in the RetroArch's cfg.
  449. ; Sega CD - Requires "bios_CD_E.bin", "bios_CD_J.bin", "bios_CD_U.bin" all be placed in the folder you define as system_directory in the RetroArch's cfg.
  450. ; Super Nintendo Entertainment System - requires split all 10 dsp# & st### roms all be placed in the folder you define as system_directory in the RetroArch's cfg. Many games, like Super Mario Kart require these.
  451. ; NEC TurboGrafx-CD - Requires "syscard3.pce" be placed in the folder you define as system_directory in the RetroArch's cfg.
  452. ; Nintendo Super Game Boy - Set the Module setting in RocketLauncherUI SuperGameBoy to true to enable a system or only a rom to use SGB mode. This is not needed if your systemName is set to the official name of "Nintendo Super Game Boy". Requires "sgb.boot.rom" and "Super Game Boy (World).sfc" to be placed in the folder you define as system_directory in the RetroArch's cfg. This is needed if you want to use Super game boy mode and color palettes. Also requires using the latest bsnes core. Not all games support SGB mode.
  453. ; MAME: The nag screen patch has been removed from the MAME core as of some point in March. We will be investigating our options for this. For MAME-based systems, make sure to set 7z use to false as MAME needs zip files.
  454. ; Sony PSP/PlayStation Minis: To avoid the dialog box complaining about ppge_atlas.zim, download it from https://github.com/libretro/libretro-ppsspp/blob/master/assets/ppge_atlas.zim and place it in your Retroarch/system/PPSSPP/ directory.
  455. ;----------------------------------------------------------------------------
  456. StartModule()
  457. BezelGUI()
  458. FadeInStart()
  459.  
  460. ; Here we define all supported systems for this module. This object controls how the module reacts to different systems. RetroArch can play a lot of systems, but needs to know what system you want to run, so this module has to adapt.
  461. ; 1 - Official System Name in RocketLauncher
  462. ; 2 - Short name used only for easy referencing within module
  463. ; 3 - Default core
  464. ; 4 - The system ID MESS core recognizes
  465. Log("Module - Started building the " . MEmu . " object",4)
  466. mTypeVar=
  467. ( LTrim
  468. AAE|LibRetro_AAE|mame_libretro
  469. Acorn BBC Micro|LibRetro_BBCB|mess_libretro|bbcb
  470. Amstrad CPC|LibRetro_CPC|mess_libretro|cpc464
  471. Amstrad GX4000|LibRetro_GX4K|mess_libretro|gx4000
  472. APF Imagination Machine|LibRetro_APF|mess_libretro|apfimag
  473. Apple IIGS|LibRetro_AIIGS|mess_libretro|apple2gs
  474. Applied Technology MicroBee|LibRetro_MBEE|mess_libretro|mbeeic
  475. Atari 2600|LibRetro_2600|stella_libretro|a2600
  476. Atari 5200|LibRetro_5200|mess_libretro|a5200
  477. Atari 7800|LibRetro_7800|prosystem_libretro|a7800
  478. Atari 8-bit|LibRetro_ATARI8|mess_libretro|a800
  479. Atari Classics|LibRetro_ACLS|mame_libretro
  480. Atari Jaguar|LibRetro_JAG|virtualjaguar_libretro|jaguar
  481. Atari Lynx|LibRetro_LYNX|handy_libretro|lynx
  482. Atari ST|LibRetro_ST|hatari_libretro
  483. Atari XEGS|LibRetro_XEGS|mess_libretro|xegs
  484. Bally Astrocade|LibRetro_BAST|mess_libretro|astrocde
  485. Bandai Gundam RX-78|LibRetro_BGRX|mess_libretro|rx78
  486. Bandai Super Vision 8000|LibRetro_SV8K|mess_libretro|sv8000
  487. Bandai Wonderswan|LibRetro_WSAN|mednafen_wswan_libretro|wswan
  488. Bandai Wonderswan Color|LibRetro_WSANC|mednafen_wswan_libretro|wscolor
  489. Canon X07|LibRetro_CX07|mess_libretro|x07
  490. Capcom Classics|LibRetro_CAPC|mame_libretro
  491. Capcom Play System|LibRetro_CPS1|fba_cores_cps1_libretro
  492. Capcom Play System 2|LibRetro_CPS2|fba_cores_cps2_libretro
  493. Capcom Play System 3|LibRetro_CPS3|mame_libretro
  494. Casio PV-1000|LibRetro_CAS1K|mess_libretro|pv1000
  495. Casio PV-2000|LibRetro_CAS2K|mess_libretro|pv2000
  496. Cave|LibRetro_CAVE|mame_libretro
  497. Coleco ADAM|LibRetro_ADAM|mess_libretro|adam
  498. ColecoVision|LibRetro_COLEC|mess_libretro|coleco
  499. Commodore Amiga|LibRetro_PUAE|puae_libretro
  500. Commodore Max Machine|LibRetro_CMAX|mess_libretro|vic10
  501. Creatronic Mega Duck|LibRetro_DUCK|mess_libretro|megaduck
  502. Data East Classics|LibRetro_DATA|mame_libretro
  503. Dragon Data Dragon|LibRetro_DRAG64|mess_libretro|dragon64
  504. Elektronika BK|LibRetro_EBK|mess_libretro|bk0010
  505. Elektronska Industrija Pecom 64|LibRetro_P64|mess_libretro|pecom64
  506. Emerson Arcadia 2001|LibRetro_A2001|mess_libretro|arcadia
  507. Entex Adventure Vision|LibRetro_AVISION|mess_libretro|advision
  508. Epoch Game Pocket Computer|LibRetro_GPCKET|mess_libretro|gamepock
  509. Epoch Super Cassette Vision|LibRetro_SCV|mess_libretro|scv
  510. Exidy Sorcerer|LibRetro_SORCR|mess_libretro|sorcerer
  511. Fairchild Channel F|LibRetro_CHANF|mess_libretro|channelf
  512. Final Burn Alpha|LibRetro_FBA|fb_alpha_libretro
  513. Funtech Super Acan|LibRetro_SACAN|mess_libretro|supracan
  514. GamePark 32|LibRetro_GP32|mess_libretro|gp32
  515. GCE Vectrex|LibRetro_VECTX|mess_libretro|vectrex
  516. Hartung Game Master|LibRetro_GMASTR|mess_libretro|gmaster
  517. Interton VC 4000|LibRetro_VC4K|mess_libretro|vc4000
  518. Irem Classics|LibRetro_IREM|mame_libretro
  519. JungleTac Sport Vii|LibRetro_SPORTV|mess_libretro|vii
  520. Konami Classics|LibRetro_KONC|mame_libretro
  521. Magnavox Odyssey 2|LibRetro_ODYS2|mess_libretro|odyssey2
  522. MAME|LibRetro_MAME|mame_libretro
  523. Matra & Hachette Alice|LibRetro_ALICE|mess_libretro|alice32
  524. Mattel Aquarius|LibRetro_AQUA|mess_libretro|aquarius
  525. Mattel Intellivision|LibRetro_INTV|mess_libretro|intv
  526. MGT Sam Coupe|LibRetro_SAMCP|mess_libretro|
  527. Microsoft MS-DOS|LibRetro_MSDOS|dosbox_libretro
  528. Microsoft MSX|LibRetro_MSX|bluemsx_libretro
  529. Microsoft MSX2|LibRetro_MSX2|bluemsx_libretro
  530. Microsoft Windows 3.x|LibRetro_WIN3X|dosbox_libretro
  531. Midway Classics|LibRetro_MIDC|mame_libretro
  532. Namco Classics|LibRetro_NAMC|mame_libretro
  533. Namco System 22|LibRetro_NAM2|mame_libretro
  534. NEC PC Engine|LibRetro_PCE|mednafen_pce_fast_libretro|pce
  535. NEC PC Engine-CD|LibRetro_PCECD|mednafen_pce_fast_libretro|pce
  536. NEC PC-FX|LibRetro_PCFX|mednafen_pcfx_libretro
  537. NEC SuperGrafx|LibRetro_SGFX|mednafen_supergrafx_libretro|sgx
  538. NEC TurboGrafx-16|LibRetro_TG16|mednafen_pce_fast_libretro|tg16
  539. NEC TurboGrafx-CD|LibRetro_TGCD|mednafen_pce_fast_libretro|tg16
  540. Nintendo 64|LibRetro_N64|mupen64plus_libretro|n64
  541. Nintendo 64DD|LibRetro_N64|mupen64plus_libretro
  542. Nintendo Arcade Systems|LibRetro_NINARC|mame_libretro
  543. Nintendo Classics|LibRetro_NINC|mame_libretro
  544. Nintendo DS|LibRetro_DS|desmume_libretro
  545. Nintendo Entertainment System|LibRetro_NES|nestopia_libretro|nes
  546. Nintendo Famicom|LibRetro_NFAM|nestopia_libretro
  547. Nintendo Famicom Disk System|LibRetro_NFDS|nestopia_libretro|famicom
  548. Nintendo Game Boy|LibRetro_GB|gambatte_libretro|gameboy
  549. Nintendo Game Boy Advance|LibRetro_GBA|vba_next_libretro|gba
  550. Nintendo Game Boy Color|LibRetro_GBC|gambatte_libretro|gbcolor
  551. Nintendo Game Boy Japan|LibRetro_GBJ|gambatte_libretro|gameboy
  552. Nintendo Game & Watch|LibRetro_GW|gw_libretro
  553. Nintendo Pokemon Mini|LibRetro_POKE|mess_libretro|pokemini
  554. Nintendo Satellaview|LibRetro_NSFS|snes9x_libretro
  555. Nintendo SuFami Turbo|LibRetro_NSFST|snes9x_libretro
  556. Nintendo Super Famicom|LibRetro_NSF|bsnes_balanced_libretro
  557. Nintendo Super Game Boy|LibRetro_SGB|bsnes_balanced_libretro
  558. Nintendo Virtual Boy|LibRetro_NVB|mednafen_vb_libretro|vboy
  559. Othello Multivision|LibRetro_OTHO|genesis_plus_gx_libretro
  560. Panasonic 3DO|LibRetro_3DO|4do_libretro
  561. Philips CD-i|LibRetro_CDI|mess_libretro|cdimono1
  562. Philips Videopac|LibRetro_PVID|mess_libretro|videopac
  563. RCA Studio II|LibRetro_STUD2|mess_libretro|studio2
  564. SCUMMVM|LibRetro_SCUMM|scummvm_libretro
  565. Sega 32X|LibRetro_32X|picodrive_libretro|32x
  566. Sega CD|LibRetro_SCD|genesis_plus_gx_libretro|segacd
  567. Sega Classics|LibRetro_SEGC|mame_libretro
  568. Sega Game Gear|LibRetro_GG|genesis_plus_gx_libretro|gamegear
  569. Sega Genesis|LibRetro_GEN|genesis_plus_gx_libretro|genesis
  570. Sega Mark III|Libretro_SM3|genesis_plus_gx_libretro
  571. Sega Master System|LibRetro_SMS|genesis_plus_gx_libretro|sms
  572. Sega Mega Drive|LibRetro_GEN|genesis_plus_gx_libretro|megadriv
  573. Sega Mega Drive 32X|LibRetro_MD32X|picodrive_libretro
  574. Sega Pico|LibRetro_PICO|picodrive_libretro
  575. Sega Saturn|LibRetro_SAT|yabause_libretro
  576. Sega Saturn Japan|LibRetro_SAT|yabause_libretro
  577. Sega SC-3000|LibRetro_SC3K|mess_libretro|sc3000
  578. Sega SG-1000|LibRetro_SG1K|genesis_plus_gx_libretro
  579. Sega ST-V|LibRetro_STV|mame_libretro
  580. Sega VMU|LibRetro_SVMU|mess_libretro|svmu
  581. Sharp X1|LibRetro_SX1|mess_libretro|x1
  582. Sinclair ZX Spectrum|LibRetro_SPECZX|mess_libretro|spectrum
  583. SNK Classics|LibRetro_SNKC|mame_libretro
  584. SNK Neo Geo|LibRetro_NEO|fb_alpha_libretro
  585. SNK Neo Geo AES|LibRetro_NEOAES|mame_libretro|aes
  586. SNK Neo Geo CD|LibRetro_NEOCD|mess_libretro|neocdz
  587. SNK Neo Geo MVS|LibRetro_NEOMVS|mame_libretro
  588. SNK Neo Geo Pocket|LibRetro_NGP|mednafen_ngp_libretro|ngp
  589. SNK Neo Geo Pocket Color|LibRetro_NGPC|mednafen_ngp_libretro|ngpc
  590. Sony PlayStation|LibRetro_PSX|mednafen_psx_libretro|psx
  591. Sony PlayStation Minis|LibRetro_PSXMIN|ppsspp_libretro
  592. Sony PocketStation|LibRetro_POCKS|mess_libretro|pockstat
  593. Sony PSP|LibRetro_PSP|ppsspp_libretro
  594. Sord M5|LibRetro_SORD|mess_libretro|m5
  595. Spectravideo|LibRetro_SV328|mess_libretro|svi328n
  596. Super Nintendo Entertainment System|LibRetro_SNES|bsnes_balanced_libretro|snes
  597. Taito Classics|LibRetro_TAIC|mame_libretro
  598. Tandy TRS-80 Color Computer|LibRetro_TRS80|mess_libretro|coco3
  599. Technos|LibRetro_TECHN|mame_libretro
  600. Texas Instruments TI 99-4A|LibRetro_TI99|mess_libretro|ti99_4a
  601. Thomson MO5|LibRetro_MO5|mess_libretro|mo5
  602. Thomson TO7|LibRetro_TO7|mess_libretro|to7
  603. Tiger Game.com|LibRetro_TCOM|mess_libretro|gamecom
  604. Tiki-100|LibRetro_TIKI|mess_libretro|kontiki
  605. Tomy Tutor|LibRetro_TOMY|mess_libretro|tutor
  606. VTech CreatiVision|LibRetro_VTECH|mess_libretro|crvision
  607. Watara Supervision|LibRetro_SUPRV|mess_libretro|svision
  608. Williams Classics|LibRetro_WILLS|mame_libretro
  609. )
  610. mType := Object()
  611. Loop, Parse, mTypeVar, `n, `r
  612. {
  613. obj := {}
  614. Loop, Parse, A_LoopField, |
  615. If A_Index = 1
  616. obj.System := A_LoopField
  617. Else If A_Index = 2
  618. obj.ID := A_LoopField
  619. Else If A_Index = 3
  620. obj.Core := A_LoopField
  621. Else ; 4
  622. obj.MessID := A_LoopField
  623. mType.Insert(obj["System"], obj)
  624. }
  625. Log("Module - Finished building the " . MEmu . " object",4)
  626. ; For easier use throughout the module
  627. retroSystem := mType[systemName].System
  628. retroID := mType[systemName].ID
  629. retroCore := mType[systemName].Core
  630. retroMessID := mType[systemName].MessID
  631.  
  632. If !retroSystem
  633. ScriptError("Your systemName is: " . systemName . "`nIt is not one of the known supported systems for this " . MEmu . " module: " . moduleName)
  634. If !retroCore
  635. ScriptError("Your Core ID is: " . retroID . "`nCould not find a default core to use. Please update the module with a default core.")
  636.  
  637. settingsFile := modulePath . "\" . moduleName . ".ini"
  638. core := IniReadCheck(settingsFile, systemName, "LibRetro_Core",retroCore,,1)
  639. Fullscreen := IniReadCheck(settingsFile, "Settings", "Fullscreen","true",,1)
  640. configFolder := IniReadCheck(settingsFile, "Settings", "ConfigFolder",emuPath . "\config",,1)
  641. messRomPath := IniReadCheck(settingsFile, "Settings", "MESS_BIOS_Roms_Folder",,,1)
  642. hideConsole := IniReadCheck(settingsFile, "Settings", "HideConsole","true",,1)
  643. ejectToggleKey := IniReadCheck(settingsFile, "Settings", "Eject_Toggle_Key",,,1)
  644. nextDiskKey := IniReadCheck(settingsFile, "Settings", "Next_Disk_Key",,,1)
  645. prevDiskKey := IniReadCheck(settingsFile, "Settings", "Previous_Disk_Key",,,1)
  646. superGB := IniReadCheck(settingsFile, systemName . "|" . romName, "SuperGameBoy","false",,1)
  647. enableNetworkPlay := IniReadCheck(settingsFile, "Network|" . romName, "Enable_Network_Play","false",,1)
  648. overlay := IniReadCheck(settingsFile, systemName . "|" . romName, "Overlay",,,1)
  649. videoShader := IniReadCheck(settingsFile, systemName . "|" . romName, "VideoShader",,,1)
  650. aspectRatioIndex := IniReadCheck(settingsFile, systemName . "|" . romName, "AspectRatioIndex",,,1)
  651. customViewportWidth := IniReadCheck(settingsFile, systemName . "|" . romName, "CustomViewportWidth",,,1)
  652. customViewportHeight := IniReadCheck(settingsFile, systemName . "|" . romName, "CustomViewportHeight",,,1)
  653. customViewportX := IniReadCheck(settingsFile, systemName . "|" . romName, "CustomViewportX",,,1)
  654. customViewportY := IniReadCheck(settingsFile, systemName . "|" . romName, "CustomViewportY",,,1)
  655. stretchToFillBezel := IniReadCheck(settingsFile, systemName . "|" . romName, "StretchToFillBezel","false",,1)
  656. rotation := IniReadCheck(settingsFile, systemName . "|" . romName, "Rotation",0,,1)
  657. cropOverscan := IniReadCheck(settingsFile, systemName . "|" . romName, "CropOverscan",,,1)
  658. threadedVideo := IniReadCheck(settingsFile, systemName . "|" . romName, "ThreadedVideo",,,1)
  659. vSync := IniReadCheck(settingsFile, systemName . "|" . romName, "VSync",,,1)
  660. integerScale := IniReadCheck(settingsFile, systemName . "|" . romName, "IntegerScale",,,1)
  661. configurationPerCore := IniReadCheck(settingsFile, systemName . "|" . romName, "ConfigurationPerCore","false",,1)
  662.  
  663. configFolder := GetFullName(configFolder)
  664. messRomPath := GetFullName(messRomPath)
  665. overlay := GetFullName(overlay)
  666. videoShader := GetFullName(videoShader)
  667. rotateBezel := false
  668.  
  669. If (retroID = "LibRetro_SGB" || superGB = "true") ; if system or rom is set to use Super Game Boy
  670. { superGB = true ; setting this just in case it's false and the system is Nintendo Super Game Boy
  671. sgbRomPath := CheckFile(emuPath . "\system\Super Game Boy (World).sfc","Could not find the rom required for Super Game Boy support. Make sure the rom ""Super Game Boy (World).sfc"" is located in: " . emuPath . "\system")
  672. CheckFile(emuPath . "\system\sgb.boot.rom","Could not find the bios required for Super Game Boy support. Make sure the bios ""sgb.boot.rom"" is located in: " . emuPath . "\system")
  673. retroID := "LibRetro_SGB" ; switching to Super Game Boy mode
  674. retroSystem := "Nintendo Super Game Boy"
  675. }
  676.  
  677. ; Find the dll for this system
  678. libDll := CheckFile(emuPath . "\cores\" . core . ".dll", "Your " . retroID . " dll is set to " . core . " but could not locate this file:`n" . emuPath . "\cores\" . core . ".dll")
  679.  
  680. ; Find the cfg file to use
  681. If !FileExist(configFolder)
  682. ScriptError("You need to make sure ""ConfigFolder"" is pointing to your RetroArch config folder. By default it is looking here: """ . configFolder . """")
  683. globalRetroCfg := emuPath . "\retroarch.cfg"
  684. systemRetroCfg := configFolder . "\" . retroSystem . ".cfg"
  685. coreRetroCfg := configFolder . "\" . core . ".dll.cfg"
  686. Log("Module - Global cfg should be: " . globalRetroCfg,4)
  687. Log("Module - System cfg should be: " . systemRetroCfg,4)
  688. Log("Module - Core cfg should be: " . coreRetroCfg,4)
  689. foundCfg :=
  690. If FileExist(systemRetroCfg) { ; check for system cfg first
  691. retroCFGFile := systemRetroCfg
  692. foundCfg := 1
  693. Log("Module - Found a System cfg!",4)
  694. } Else If FileExist(coreRetroCfg) { ; 2nd option is a core config
  695. retroCFGFile := coreRetroCfg
  696. foundCfg := 1
  697. Log("Module - Found a Core cfg!",4)
  698. } Else If FileExist(globalRetroCfg) { ; 3rd is global cfg
  699. retroCFGFile := globalRetroCfg
  700. foundCfg := 1
  701. Log("Module - Found a Global cfg!",4)
  702. }
  703. If !foundCfg
  704. Log("Module - Could not find a cfg file to update settings. RetroArch will make one for you.",2)
  705. Else {
  706. Log("Module - " . MEmu . " is using " . retroCFGFile . " as its config file.")
  707. retroCFG := LoadProperties(retroCFGFile)
  708. }
  709.  
  710. If rotation In 1,3 ; use vertical bezel if RA rotation is set to 90 or 270 degrees
  711. rotateBezel := true
  712.  
  713. If RegExMatch(retroID, "LibRetro_NFDS|LibRetro_SCD|LibRetro_TGCD|LibRetro_PCECD|LibRetro_PCFX") { ; these systems require the retroarch settings to be read
  714. retroSysDir := ReadProperty(retroCFG,"system_directory") ; read value
  715. retroSysDir := ConvertRetroCFGKey(retroSysDir) ; remove dbl quotes
  716. StringLeft, retroSysDirLeft, retroSysDir, 2
  717. If (retroSysDirLeft = ":\") { ; if retroarch is set to use a default folder
  718. StringTrimLeft, retroSysDir, retroSysDir, 1
  719. Log("Module - RetroArch is using a relative system path: """ . retroSysDir . """")
  720. retroSysDir := emuPath . retroSysDir
  721. }
  722. If !retroSysDir
  723. ScriptError("RetroArch requires you to set your system_directory and place bios rom(s) in there for """ . retroSystem . """ to function. Please do this first by running ""retroarch-phoenix.exe"" manually.")
  724. StringRight, checkForSlash, retroSysDir, 1
  725. If (checkForSlash = "\") ; check if a backslash is the last character. If it is, remove it, as this is non-standard method to define folders
  726. StringTrimRight, retroSysDir, retroSysDir, 1
  727. }
  728.  
  729. If (RegExMatch(retroID, "LibRetro_N64|LibRetro_NES|LibRetro_LYNX|LibRetro_PSX") || RegExMatch(retroID, "LibRetro_NES") && (InStr(core, "nestopia_libretro"))) { ; these systems will use an ini to store game specific settings
  730. sysSettingsFile := CheckSysFile(modulePath . "\" . systemName . ".ini") ; create the ini if it does not exist
  731. coreOptionsCFGFile := CheckFile((If configurationPerCore = "true" ? configFolder . "\retroarch-core-options.cfg" : emuPath . "\retroarch-core-options.cfg"), "Could not find retroarch-core-options.cfg in retroarch directory: """ . (If configurationPerCore = "true" ? configFolder : emuPath) . """")
  732. coreOptionsCFG := LoadProperties(coreOptionsCFGFile)
  733. If InStr(retroID, "LibRetro_N64") { ; Nintendo 64
  734. mupenGfx := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_Gfx_Plugin", "auto",,1)
  735. mupenRsp := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_RSP_Plugin", "auto",,1)
  736. mupenCpu := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_CPU_Core", "dynamic_recompiler",,1)
  737. mupenPak1 := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_Pak_1", "memory",,1)
  738. mupenPak2 := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_Pak_2", "memory",,1)
  739. mupenPak3 := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_Pak_3", "memory",,1)
  740. mupenPak4 := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_Pak_4", "memory",,1)
  741. mupenGfxAccur := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_Gfx_Accuracy", "high",,1)
  742. mupenExpMem := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_Disable_Exp_Memory", "no",,1)
  743. mupenTexturFilt := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_Texture_Filtering", "nearest",,1)
  744. mupenViRefresh := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_VI_Refresh", "2200",,1)
  745. mupenFramerate := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_Framerate", "fullspeed",,1)
  746. mupenResolution := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_Resolution", "640x480",,1)
  747. mupenPolyOffstFctr := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_Polygon_Offset_Factor", "-3.0",,1)
  748. mupenPolyOffstUnts := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_Polygon_Offset_Units", "-3.0",,1)
  749. mupenViOverlay := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_VI_Overlay", "disabled",,1)
  750. mupenAnalogDzone := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Mupen_Analog_Deadzone", "15",,1)
  751.  
  752. WriteProperty(coreOptionsCFG, "mupen64-gfxplugin", mupenGfx, 1)
  753. WriteProperty(coreOptionsCFG, "mupen64-rspplugin", mupenRsp, 1)
  754. WriteProperty(coreOptionsCFG, "mupen64-cpucore", mupenCpu, 1)
  755. WriteProperty(coreOptionsCFG, "mupen64-pak1", mupenPak1, 1)
  756. WriteProperty(coreOptionsCFG, "mupen64-pak2", mupenPak2, 1)
  757. WriteProperty(coreOptionsCFG, "mupen64-pak3", mupenPak3, 1)
  758. WriteProperty(coreOptionsCFG, "mupen64-pak4", mupenPak4, 1)
  759. WriteProperty(coreOptionsCFG, "mupen64-gfxplugin-accuracy", mupenGfxAccur, 1)
  760. WriteProperty(coreOptionsCFG, "mupen64-disableexpmem", mupenExpMem, 1)
  761. WriteProperty(coreOptionsCFG, "mupen64-filtering", mupenTexturFilt, 1)
  762. WriteProperty(coreOptionsCFG, "mupen64-virefresh", mupenViRefresh, 1)
  763. WriteProperty(coreOptionsCFG, "mupen64-framerate", mupenFramerate, 1)
  764. WriteProperty(coreOptionsCFG, "mupen64-screensize", mupenResolution, 1)
  765. WriteProperty(coreOptionsCFG, "mupen64-polyoffset-factor", mupenPolyOffstFctr, 1)
  766. WriteProperty(coreOptionsCFG, "mupen64-polyoffset-units", mupenPolyOffstUnts, 1)
  767. WriteProperty(coreOptionsCFG, "mupen64-angrylion-vioverlay", mupenViOverlay, 1)
  768. WriteProperty(coreOptionsCFG, "mupen64-astick-deadzone", mupenAnalogDzone, 1)
  769. } Else If InStr(retroID, "LibRetro_NES") { ; these systems will use an ini to store game specific settings
  770. If InStr(core, "nestopia_libretro") { ; Nestopia
  771. nestopiaBlargg := IniReadCheck(sysSettingsFile, "Nestopia" . "|" . romName, "Nestopia_Blargg_NTSC_Filter", "disabled",,1)
  772. nestopiaPalette := IniReadCheck(sysSettingsFile, "Nestopia" . "|" . romName, "Nestopia_Palette", "canonical",,1)
  773. nestopiaNoSprteLimit := IniReadCheck(sysSettingsFile, "Nestopia" . "|" . romName, "Nestopia_Remove_Sprites_Limit", "disabled",,1)
  774.  
  775. WriteProperty(coreOptionsCFG, "nestopia_blargg_ntsc_filter", nestopiaBlargg, 1)
  776. WriteProperty(coreOptionsCFG, "nestopia_palette", nestopiaPalette, 1)
  777. WriteProperty(coreOptionsCFG, "nestopia_nospritelimit", nestopiaNoSprteLimit, 1)
  778. }
  779. } Else If InStr(retroID, "LibRetro_LYNX") { ; Atari Lynx
  780. If InStr(core, "handy_libretro") { ; Handy
  781. handyRotate := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "Handy_Rotation", "None",,1)
  782. If InStr(handyRotate, "240") or InStr(handyRotate, "90")
  783. rotateBezel := true
  784. WriteProperty(coreOptionsCFG, "handy_rot", handyRotate, 1)
  785. }
  786. } Else If InStr(retroID, "LibRetro_PSX") { ; Sony PlayStation
  787. psxCdImageCache := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "PSX_CD_Image_Cache", """enabled""",,1)
  788. psxMemcardHandling := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "PSX_Memcard_Handling", """libretro""",,1)
  789. psxDualshockAnalogToggle := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "PSX_Dualshock_Analog_Toggle", """enabled""",,1)
  790.  
  791. WriteProperty(coreOptionsCFG, "beetle_psx_cdimagecache", psxCdImageCache, 1)
  792. WriteProperty(coreOptionsCFG, "beetle_psx_use_mednafen_memcard0_method", psxMemcardHandling, 1)
  793. WriteProperty(coreOptionsCFG, "beetle_psx_analog_toggle", psxDualshockAnalogToggle, 1)
  794. }
  795. SaveProperties(coreOptionsCFGFile, coreOptionsCFG)
  796. }
  797.  
  798. hideEmuObj := Object("ahk_class ConsoleWindowClass",0,"RetroArch ahk_class RetroArch",1) ; Hide_Emu will hide these windows. 0 = will never unhide, 1 = will unhide later
  799. 7z(romPath, romName, romExtension, 7zExtractPath)
  800.  
  801. mgM3UPath:= romPath . "\" . romTable[1,4] . ".m3u"
  802.  
  803. mgRomExtensions := "cue|iso|ccd"
  804. mgValidExtension := false
  805.  
  806. Loop, parse, mgRomExtensions, |
  807. If (romExtension = "." . A_LoopField)
  808. mgValidExtension := true
  809.  
  810. If (InStr(retroID, "LibRetro_PSX") && romTable.MaxIndex() && mgValidExtension) { ; See if MultiGame table is populated
  811. m3uRomIndex := Object()
  812. mgType := romTable[1,6] . " "
  813. mgMaxIndex := romTable.MaxIndex()
  814. mgRomIndex := 0
  815.  
  816. If FileExist(mgM3UPath)
  817. FileDelete, %mgM3UPath%
  818.  
  819. Loop %mgMaxIndex% {
  820. If (romTable[A_Index, 3] = romName) {
  821. tempType := romTable[A_Index, 5]
  822. StringTrimLeft, mgRomIndex, tempType, StrLen(mgType)
  823. Log ("Found rom index in rom set in romTable: " . mgRomIndex)
  824. break
  825. }
  826. }
  827.  
  828. If (mgRomIndex > 0) {
  829. tempRomIndex := mgRomIndex
  830. Loop %mgMaxIndex% {
  831. mgTypeIndex := mgType . tempRomIndex
  832. m3uRomIndex.Insert(tempRomIndex)
  833.  
  834. Loop %mgMaxIndex% {
  835. If (romTable[A_Index, 5] = mgTypeIndex) {
  836. tempRomPath := romTable[A_Index, 1]
  837. FileAppend, %tempRomPath%`n, %mgM3UPath%
  838. Log("Appending rom path to m3u: " . tempRomPath)
  839. break
  840. }
  841. }
  842.  
  843. If (tempRomIndex < mgMaxIndex)
  844. tempRomIndex++
  845. Else
  846. tempRomIndex := 1
  847. }
  848. }
  849. }
  850.  
  851. ; MESS core options
  852. messParam1 :=
  853. messParam2 :=
  854. messParam3 :=
  855. If InStr(core, "mess") { ; if a mess core is used
  856. Log("Module - Retroarch MESS mode enabled")
  857. If !retroMessID
  858. ScriptError("Your systemName is: " . systemName . "`nIt is not one of the known supported systems for the MESS LibRetro core")
  859. Else
  860. Log("Module - MESS mode using a known ident: " . retroMessID)
  861.  
  862. If !messRomPath
  863. ScriptError("Please set the RetroArch module setting ""MESS_BIOS_Roms_Folder"" to the folder that contains your MESS BIOS roms to use MESS with RetroArch.")
  864.  
  865. messParam1 :=
  866. messParam2 := " -rompath \" . """" . messRomPath . "\" . """"
  867.  
  868. ; Build a key/value object containing the different messParam3 choices
  869. messP3 := Object("alice32","cass1","gp32","memc","cpc464","cass","spectrum","cass","dragon64","cass","cdimono1","cdrom","bk0010","cass","neocd","cdrom","neocdz","cdrom","svi328n","cass","pecom64","cass","svmu","quik","gamecom","cart1","mbeeic","quik1")
  870. messParam3 := messP3[retroMessID] ; search object for the retroMessID pair
  871. messParam3 := " -" . (If messParam3 ? messParam3 : "cart") . " \" . """" . romPath . "\" . romName . romExtension . "\" . """"
  872.  
  873. If retroMessID = mbeeic ; Applied Technology MicroBee
  874. { microbeeModel := IniReadCheck(messSysINI, romName, "MicroBee_Model","mbeeic",,1)
  875. If microbeeModel not in mbee,mbeeic,mbeepc,mbeepc85,mbee56
  876. ScriptError("This is not a known MicroBee model value: " . microbeeModel)
  877. Else If (microbeeModel != "mbeeic")
  878. retroMessID := microbeeModel
  879. If romExtension in .mwb,.com,.bee
  880. mediaDeviceType := "quik1"
  881. Else If romExtension in .wav,.tap
  882. mediaDeviceType := "cass"
  883. Else If romExtension in .rom
  884. mediaDeviceType := "cart"
  885. Else If romExtension in .dsk
  886. mediaDeviceType := "flop1"
  887. Else ; .bin format
  888. mediaDeviceType := "quik2"
  889. messParam3 := " -" . mediaDeviceType . " \" . """" . romPath . "\" . romName . romExtension . "\" . """"
  890. }
  891.  
  892. fullRomPath := messParam1 . messParam2 . messParam3
  893. } Else If (superGB = "true") {
  894. Log("Module - Retroarch Super Game Boy mode enabled")
  895. fullRomPath := " """ . sgbRomPath . """ --subsystem sgb """ . romPath . "\" . romName . romExtension . """"
  896. } Else {
  897. Log("Module - Retroarch standard mode enabled")
  898. fullRomPath := " """ . romPath . "\" . romName . romExtension . """"
  899. }
  900.  
  901. If retroID = LibRetro_NFDS ; Nintendo Famicom Disk System
  902. { IfNotExist, %retroSysDir%\disksys.rom
  903. ScriptError("RetroArch requires ""disksys.rom"" for " . retroSystem . " but could not find it in your system_directory: """ . retroSysDir . """")
  904. } Else If retroID = LibRetro_SCD ; Sega CD
  905. { If romExtension Not In .bin,.cue,.iso
  906. ScriptError("RetroArch only supports Sega CD games in bin|cue|iso format. It does not support:`n" . romExtension)
  907. IfNotExist, %retroSysDir%\bios_CD_E.bin
  908. ScriptError("RetroArch requires ""bios_CD_E.bin"" for " . retroSystem . " but could not find it in your system_directory: """ . retroSysDir . """")
  909. IfNotExist, %retroSysDir%\bios_CD_U.bin
  910. ScriptError("RetroArch requires ""bios_CD_U.bin"" for " . retroSystem . " but could not find it in your system_directory: """ . retroSysDir . """")
  911. IfNotExist, %retroSysDir%\bios_CD_J.bin
  912. ScriptError("RetroArch requires ""bios_CD_J.bin"" for " . retroSystem . " but could not find it in your system_directory: """ . retroSysDir . """")
  913. } Else If retroID in LibRetro_PCECD,LibRetro_TGCD ; NEC PC Engine-CD and NEC TurboGrafx-CD
  914. { If romExtension Not In .ccd,.cue
  915. ScriptError("RetroArch only supports " . retroSystem . " games in ccd or cue format. It does not support:`n" . romExtension)
  916. IfNotExist, %retroSysDir%\syscard3.pce
  917. ScriptError("RetroArch requires ""syscard3.pce"" for " . retroSystem . " but could not find it in your system_directory: """ . retroSysDir . """")
  918. } Else If retroID = LibRetro_PCFX
  919. { If romExtension Not In .ccd,.cue
  920. ScriptError("RetroArch only supports " . retroSystem . " games in ccd or cue format. It does not support:`n" . romExtension)
  921. IfNotExist, %retroSysDir%\pcfx.bios
  922. ScriptError("RetroArch requires ""pcfx.bios"" for " . retroSystem . " but could not find it in your system_directory: """ . retroSysDir . """")
  923. }
  924.  
  925. networkSession :=
  926. If (enableNetworkPlay = "true") {
  927. Log("Module - Network Multi-Player is an available option for " . dbName,4)
  928.  
  929. netplayNickname := IniReadCheck(settingsFile, "Network", "NetPlay_Nickname","Player",,1)
  930. getWANIP := IniReadCheck(settingsFile, "Network", "Get_WAN_IP","false",,1)
  931.  
  932. If (getWANIP = "true")
  933. myPublicIP := GetPublicIP()
  934.  
  935. Log("Module - CAREFUL WHEN POSTING THIS LOG PUBLICLY AS IT CONTAINS YOUR IP ON THE NEXT LINE",2)
  936. defaultServerIP := IniReadCheck(settingsFile, "Network", "Default_Server_IP", myPublicIP,,1)
  937. defaultServerPort := IniReadCheck(settingsFile, "Network", "Default_Server_Port",,,1)
  938. lastIP := IniReadCheck(settingsFile, "Network", "Last_IP", defaultServerIP,,1) ; does not need to be on the ISD
  939. lastPort := IniReadCheck(settingsFile, "Network", "Last_Port", defaultServerPort,,1) ; does not need to be on the ISD
  940.  
  941. mpMenuStatus := MultiPlayerMenu(lastIP,lastPort,networkType,,0)
  942. If (mpMenuStatus = -1) { ; if user exited menu early
  943. Log("Module - Cancelled MultiPlayer Menu. Exiting module.",2)
  944. ExitModule()
  945. }
  946. If networkSession {
  947. Log("Module - Using a Network for " . dbName,4)
  948. IniWrite, %networkPort%, %settingsFile%, Network, Last_Port
  949. ; msgbox lastIP: %lastIP%`nlastPort: %lastPort%`nnetworkIP: %networkIP%`nnetworkPort: %networkPort%
  950. If (networkType = "client") {
  951. IniWrite, %networkIP%, %settingsFile%, Network, Last_IP ; Save last used IP and Port for quicker launching next time
  952. netCommand := " -C " . networkIP . " --port " . networkPort . " --nick """ . netplayNickname . """" ; -C = connect as client
  953. } Else { ; server
  954. netCommand := " -H --port " . networkPort . " --nick """ . netplayNickname . """" ; -H = host as server
  955. }
  956. Log("Module - CAREFUL WHEN POSTING THIS LOG PUBLICLY AS IT CONTAINS YOUR IP ON THE NEXT LINE",2)
  957. Log("Module - Starting a network session using the IP """ . networkIP . """ and PORT """ . networkPort . """",4)
  958. } Else
  959. Log("Module - User chose Single Player mode for this session",4)
  960. }
  961.  
  962. BezelStart(,,(If rotateBezel ? 1:""))
  963.  
  964. If foundCfg {
  965. If (stretchToFillBezel = "true" and bezelEnabled = "true" and bezelPath)
  966. {
  967. customViewportWidth := bezelScreenWidth
  968. customViewportHeight := bezelScreenHeight
  969. customViewportX := 0
  970. customViewportY := 0
  971. aspectRatioIndex := 22
  972. Log("Stretching viewport to fit bezel")
  973. }
  974.  
  975. retroCFG := LoadProperties(retroCFGFile) ; load the config into memory
  976. raCfgHasChanges :=
  977. WriteRetroProperty("input_overlay", overlay)
  978. WriteRetroProperty("video_shader", videoShader)
  979. WriteRetroProperty("aspect_ratio_index", aspectRatioIndex)
  980. WriteRetroProperty("custom_viewport_width", customViewportWidth)
  981. WriteRetroProperty("custom_viewport_height", customViewportHeight)
  982. WriteRetroProperty("custom_viewport_x", customViewportX)
  983. WriteRetroProperty("custom_viewport_y", customViewportY)
  984. WriteRetroProperty("video_rotation", rotation)
  985. WriteRetroProperty("video_crop_overscan", cropOverscan)
  986. WriteRetroProperty("video_threaded", threadedVideo)
  987. WriteRetroProperty("video_vsync", vSync)
  988. WriteRetroProperty("video_scale_integer", integerScale)
  989. WriteRetroProperty("input_disk_eject_toggle", ejectToggleKey)
  990. WriteRetroProperty("input_disk_next", nextDiskKey)
  991. WriteRetroProperty("input_disk_prev", prevDiskKey)
  992. If InStr(retroID, "LibRetro_PSX") {
  993. Loop, 8 ; Loop 8 times for 8 controllers
  994. { p%A_Index%ControllerType := IniReadCheck(sysSettingsFile, systemName . "|" . romName, "P" . A_Index . "_Controller_Type", 517,,1)
  995. WriteRetroProperty("input_libretro_device_p" . A_Index, p%A_Index%ControllerType)
  996. }
  997. }
  998.  
  999. If raCfgHasChanges {
  1000. Log("Module - Saving changed settings to: """ . retroCFGFile . """")
  1001. SaveProperties(retroCFGFile, retroCFG)
  1002. }
  1003. }
  1004.  
  1005. fullscreen := If fullscreen = "true" ? " -f" : ""
  1006. srmPath := emuPath . "\srm\" . retroSystem ; path for this system's srm files
  1007. saveStatePath := emuPath . "\save\" . retroSystem ; path for this system's save state files
  1008. retroCFGFile := If foundCfg ? " -c """ . retroCFGFile . """" : ""
  1009.  
  1010. IfNotExist, %srmPath%
  1011. FileCreateDir, %srmPath% ; creating srm dir if it doesn't exist
  1012. IfNotExist, %saveStatePath%
  1013. FileCreateDir, %saveStatePath% ; creating save dir if it doesn't exist
  1014.  
  1015. HideEmuStart() ; This fully ensures windows are completely hidden even faster than winwait
  1016.  
  1017. If InStr(core, "mess") { ; if a mess core is used
  1018. Run(executable . " """ . (retroMessID ? retroMessID : "") . fullRomPath . """ " . fullscreen . retroCFGFile . " -L """ . libDll . """ -s """ . srmPath . "\" . romName . ".srm"" -S """ . saveStatePath . "\" . romName . ".state""" . netCommand, emuPath, "Hide")
  1019. } Else If (retroID = "LibRetro_SGB" || If superGB = "true") { ; For some reason, the order of our command line matters in this particular case.
  1020. Run(executable . " " . fullscreen . retroCFGFile . " -L """ . libDll . """ -s """ . srmPath . "\" . romName . ".srm"" -S """ . saveStatePath . "\" . romName . ".state""" . fullRomPath . netCommand, emuPath, "Hide")
  1021. } Else If FileExist(mgM3UPath) {
  1022. Run(executable . " " . """" . mgM3UPath . """" . fullscreen . retroCFGFile . " -L """ . libDll . """ -s """ . srmPath . "\" . romName . ".srm"" -S """ . saveStatePath . "\" . romName . ".state""" . netCommand, emuPath, "Hide")
  1023. } Else {
  1024. Run(executable . " " . fullRomPath . fullscreen . retroCFGFile . " -L """ . libDll . """ -s """ . srmPath . "\" . romName . ".srm"" -S """ . saveStatePath . "\" . romName . ".state""" . netCommand, emuPath, "Hide")
  1025. }
  1026.  
  1027. mpMenuStatus :=
  1028. If networkSession {
  1029. canceledServerWait := false
  1030. multiplayerMenuExit := false
  1031. SetTimer, NetworkConnectedCheck, 500
  1032.  
  1033. If (networkType = "server") {
  1034. Log("Module - Waiting for a client to connect to your server")
  1035. mpMenuStatus := MultiPlayerMenu(,,,,,,,,"You are the server. Please wait for your client to connect.")
  1036. } Else { ; client
  1037. Log("Module - Trying to contact the server to establish a connection.")
  1038. mpMenuStatus := MultiPlayerMenu(,,,,,,,,"Attempting to connect to the server...")
  1039. }
  1040.  
  1041. If (mpMenuStatus = -1) { ; if user exited menu early before a client connected
  1042. Log("Module - Cancelled waiting for the " . If (networkType = "server") ? "client to connect" : "server to respond" . ". Exiting module.",2)
  1043. If Process("Exist", executable)
  1044. Process("Close", executable) ; must close process as the exe is waiting for a client to connect and no window was drawn yet
  1045. ExitModule()
  1046. } Else { ; blank response from MultiPlayerMenu, exited properly
  1047. Log("Module - " . If (networkType = "server") ? "Client has connected" : "Connected to the server")
  1048. WinWait("RetroArch ahk_class RetroArch")
  1049. WinWaitActive("RetroArch ahk_class RetroArch")
  1050. }
  1051. SetTimer, NetworkConnectedCheck, Off
  1052. } Else { ; single player
  1053. WinWait("RetroArch ahk_class RetroArch")
  1054. WinWaitActive("RetroArch ahk_class RetroArch")
  1055. }
  1056.  
  1057. If hideConsole = true
  1058. WinSet, Transparent, On, ahk_class ConsoleWindowClass ; makes the console window transparent so you don't see it on exit
  1059.  
  1060. BezelDraw()
  1061. HideEmuEnd()
  1062. FadeInExit()
  1063. Process("WaitClose", executable)
  1064. 7zCleanUp()
  1065. BezelExit()
  1066. FadeOutExit()
  1067. ExitModule()
  1068.  
  1069.  
  1070. ; Writes new properties into the retroCFG if defined by user
  1071. WriteRetroProperty(key,value="") {
  1072. If (value != "") {
  1073. Global retroCFG,raCfgHasChanges
  1074. WriteProperty(retroCFG, key, value,1,1)
  1075. raCfgHasChanges := 1
  1076. }
  1077. }
  1078.  
  1079. ; Used to convert between RetroArch keys and usable data
  1080. ConvertRetroCFGKey(txt,direction="read"){
  1081. Global emuPath
  1082. If direction = read
  1083. { StringTrimLeft,newtxt,txt,1 ; removes the " from the left of the txt
  1084. StringTrimRight,newtxt,newtxt,1 ; removes the " from the right of the txt
  1085. relativeCheck := SubStr(newtxt, 1, 1)
  1086. If InStr(relativeCheck,":") { ; if the path contains a ":" then it is a relative path
  1087. Log("ConvertRetroCFGKey - " . newtxt . " is a relative path",4)
  1088. StringTrimLeft,newtxt,newtxt,1 ; removes the : from the left of the txt
  1089. newtxt := AbsoluteFromRelative(emuPath, "." . newtxt) ; convert relative to absolute
  1090. }
  1091. If InStr(newtxt,"/")
  1092. StringReplace,newtxt,newtxt,/,\,1 ; replaces all forward slashes with backslashes
  1093. } Else If direction = write
  1094. { newtxt = "%txt%" ; wraps the txt with ""
  1095. If InStr(newtxt,"\")
  1096. StringReplace,newtxt,newtxt,\,/,1 ; replaces all backslashes with forward slashes
  1097. } Else
  1098. ScriptError("Not a valid use of ConvertRetroCFGKey. Only ""read"" or ""write"" are supported.")
  1099. Log("ConvertRetroCFGKey - Converted " . txt . " to " . newtxt,4)
  1100. Return newtxt
  1101. }
  1102.  
  1103. ; This will simply create a new blank ini if one does not exist
  1104. CheckSysFile(file){
  1105. IfNotExist, %file%
  1106. FileAppend,, %file%
  1107. Return file
  1108. }
  1109.  
  1110. MultiGame:
  1111. SetKeyDelay(100)
  1112. WinActivate, ahk_class RetroArch
  1113. Send, {%ejectToggleKey% down}{%ejectToggleKey% up} ; eject disc in Retroarch
  1114. If (!mgLastRomIndex) {
  1115. mgLastRomIndex := mgRomIndex
  1116. }
  1117. selectedRomIndex := 0
  1118. StringTrimLeft, selectedRomIndex, selectedRomNum, StrLen(mgType)
  1119.  
  1120. Loop %mgMaxIndex% {
  1121. If (m3uRomIndex[A_index] = mgLastRomIndex) {
  1122. tempLastRomIndex := A_index
  1123. Log("Temp last index: " . tempLastRomIndex)
  1124. }
  1125. If (m3uRomIndex[A_index] = selectedRomIndex) {
  1126. tempSelectedRomIndex := A_index
  1127. Log("temp selected index: " . tempSelectedRomIndex)
  1128. }
  1129. }
  1130.  
  1131. mgNewIndex := tempLastRomIndex - tempSelectedRomIndex
  1132.  
  1133. If (mgNewIndex < 0) {
  1134. mgNewIndex := mgNewIndex * -1
  1135. Loop %mgNewIndex% {
  1136. Log("Sending the next disk key: " . nextDiskKey)
  1137. Send, {%nextDiskKey% down}{%nextDiskKey% up}
  1138. }
  1139. } Else If (mgNewIndex > 0) {
  1140. Loop %mgNewIndex% {
  1141. Log("Sending the previous disk key: " . mgNewIndex)
  1142. Send, {%prevDiskKey% down}{%prevDiskKey% up}
  1143. }
  1144. }
  1145.  
  1146. Send, {%ejectToggleKey% down}{%ejectToggleKey% up} ; close disc in Retroarch
  1147. mgLastRomIndex := selectedRomIndex
  1148. Return
  1149.  
  1150. NetworkConnectedCheck:
  1151. If clientConnected
  1152. multiplayerMenuExit := true
  1153. Else If WinExist("RetroArch ahk_class RetroArch") {
  1154. Log("Module - RetroArch session started, closing the MultiPlayer menu",4)
  1155. multiplayerMenuExit := true
  1156. }
  1157. Return
  1158.  
  1159. CloseProcess:
  1160. FadeOutStart()
  1161. WinClose("RetroArch ahk_class RetroArch")
  1162. Return
  1163.  
  1164. 23:17:21:141 | RL | INFO | +0 | BuildScript - Loaded Multi-Player scripts
  1165. 23:17:21:142 | RL | INFO | +0 | BuildScript - Loaded Statistics.ahk script
  1166. 23:17:21:142 | RL | WARNING | +0 | BuildScript - "Z:\Hyperspin\RocketLauncher\Lib\User Functions.ahk" not found
  1167. 23:17:21:142 | RL | INFO | +0 | BuildScript - Finished injecting functions into module
  1168. 23:17:21:142 | RL | INFO | +0 | Main - Module is built
  1169. 23:17:21:142 | RL | INFO | +0 | CheckFile - Checking if Z:\Hyperspin\RocketLauncher\AutoHotkey.dll exists
  1170. 23:17:21:143 | RL | INFO | +0 | Main - Running module
  1171. 23:17:21:222 | MD | INFO | +N/A | Module initialized
  1172. 23:17:21:224 | MD | INFO | +0 | StartModule - Started
  1173. 23:17:21:224 | MD | INFO | +0 | StartModule - MEmu: RetroArch
  1174. MEmuV: v05-11-2015 Nightly
  1175. MURL: http://themaister.net/retroarch.html
  1176. MAuthor: djvj,zerojay
  1177. MVersion: 2.3.3
  1178. MCRC: C55EEDBC
  1179. iCRC:
  1180. MID:
  1181. MSystem: "Acorn BBC Micro","AAE","Amstrad CPC","Amstrad GX4000","APF Imagination Machine","Applied Technology MicroBee","Apple IIGS","Atari 2600","Atari 5200","Atari 7800","Atari 8-bit","Atari Classics","Atari Jaguar","Atari Lynx","Atari ST","Atari XEGS","Bally Astrocade","Bandai Gundam RX-78","Bandai Super Vision 8000","Bandai Wonderswan","Bandai Wonderswan Color","Canon X07","Capcom Classics","Capcom Play System","Capcom Play System 2","Capcom Play System 3","Casio PV-1000","Casio PV-2000","Cave","Coleco ADAM","ColecoVision","Commodore MAX Machine","Commodore Amiga","Creatronic Mega Duck","Data East Classics","Dragon Data Dragon","Emerson Arcadia 2001","Entex Adventure Vision","Elektronika BK","Epoch Game Pocket Computer","Epoch Super Cassette Vision","Exidy Sorcerer","Fairchild Channel F","Final Burn Alpha","Funtech Super Acan","GamePark 32","GCE Vectrex","Hartung Game Master","Interton VC 4000","Irem Classics","JungleTac Sport Vii","Konami Classics","MAME","Magnavox Odyssey 2","Microsoft MSX","Microsoft MSX2","Matra & Hachette Alice","Mattel Aquarius","Mattel Intellivision","Midway Classics","Namco Classics","Namco System 22","NEC PC Engine","NEC PC Engine-CD","NEC PC-FX","NEC TurboGrafx-16","NEC SuperGrafx","NEC TurboGrafx-CD","Nintendo 64","Nintendo 64DD","Nintendo Arcade Systems","Nintendo Classics","Nintendo DS","Nintendo Entertainment System","Nintendo Famicom","Nintendo Famicom Disk System","Nintendo Game Boy","Nintendo Game Boy Color","Nintendo Game Boy Japan","Nintendo Game Boy Advance","Nintendo Game & Watch","Nintendo Super Game Boy","Nintendo Pokemon Mini","Nintendo Virtual Boy","Nintendo Super Famicom","Nintendo Satellaview","Nintendo SuFami Turbo","Panasonic 3DO","Elektronska Industrija Pecom 64","Philips CD-i","Philips Videopac","RCA Studio II","Sega 32X","Sega Classics","Sega Mega Drive 32X","Sega Mark III","Sega SC-3000","Sega SG-1000","Sega CD","Sega Game Gear","Sega Genesis","Sega Master System","Sega Mega Drive","Sega Pico","Sega Saturn","Sega Saturn Japan","Sega VMU","Sega ST-V","Sharp X1","Sinclair ZX Spectrum","Sony PlayStation","Sony PlayStation Minis","Sony PocketStation","Sony PSP","Sord M5","SNK Classics","SNK Neo Geo","SNK Neo Geo AES","SNK Neo Geo MVS","SNK Neo Geo Pocket","SNK Neo Geo CD","SNK Neo Geo Pocket Color","Spectravideo","Super Nintendo Entertainment System","Taito Classics","Tandy TRS-80 Color Computer","Technos","Texas Instruments TI 99-4A","Thomson MO5","Thomson TO7","Tiger Game.com","Tiki-100","Tomy Tutor","VTech CreatiVision","Watara Supervision","Williams Classics"
  1182. 23:17:21:224 | MD | INFO | +0 | StartModule - You have a supported System Name for this module: "Amstrad GX4000"
  1183. 23:17:21:224 | MD | INFO | +0 | PluginInit - Started
  1184. 23:17:21:224 | MD | INFO | +0 | CheckFile - Checking if Z:\Hyperspin\Databases\Amstrad GX4000\Amstrad GX4000.xml exists
  1185. 23:17:21:246 | MD | INFO | +32 | PluginInit - Ended
  1186. 23:17:21:247 | MD | INFO | +0 | StartModule - Ended
  1187. 23:17:21:248 | MD | INFO | +0 | Module Setting - [Amstrad GX4000] - LibRetro_Core: mess_libretro
  1188. 23:17:21:248 | MD | INFO | +0 | Module Setting - [Settings] - Fullscreen: true
  1189. 23:17:21:248 | MD | INFO | +0 | Module Setting - [Settings] - ConfigFolder: ..\Emulators\Amstrad GX4000\config
  1190. 23:17:21:248 | MD | INFO | +0 | Module Setting - [Settings] - MESS_BIOS_Roms_Folder: ..\Emulators\Amstrad GX4000\bios
  1191. 23:17:21:248 | MD | INFO | +0 | Module Setting - [Settings] - HideConsole: true
  1192. 23:17:21:248 | MD | INFO | +0 | Module Setting - [Settings] - Eject_Toggle_Key:
  1193. 23:17:21:248 | MD | INFO | +0 | Module Setting - [Settings] - Next_Disk_Key:
  1194. 23:17:21:248 | MD | INFO | +0 | Module Setting - [Settings] - Previous_Disk_Key:
  1195. 23:17:21:248 | MD | INFO | +0 | Module Setting - [Amstrad GX4000] - SuperGameBoy: false
  1196. 23:17:21:248 | MD | INFO | +0 | Module Setting - [Robocop 2] - SuperGameBoy: false
  1197. 23:17:21:248 | MD | INFO | +0 | Module Setting - [Network] - Enable_Network_Play: false
  1198. 23:17:21:248 | MD | INFO | +0 | Module Setting - [Robocop 2] - Enable_Network_Play: false
  1199. 23:17:21:248 | MD | INFO | +0 | Module Setting - [Amstrad GX4000] - Overlay:
  1200. 23:17:21:248 | MD | INFO | +0 | Module Setting - [Robocop 2] - Overlay:
  1201. 23:17:21:248 | MD | INFO | +0 | Module Setting - [Amstrad GX4000] - VideoShader:
  1202. 23:17:21:248 | MD | INFO | +0 | Module Setting - [Robocop 2] - VideoShader:
  1203. 23:17:21:248 | MD | INFO | +0 | Module Setting - [Amstrad GX4000] - AspectRatioIndex: 22
  1204. 23:17:21:248 | MD | INFO | +0 | Module Setting - [Robocop 2] - AspectRatioIndex: 22
  1205. 23:17:21:248 | MD | INFO | +0 | Module Setting - [Amstrad GX4000] - CustomViewportWidth: 1733
  1206. 23:17:21:249 | MD | INFO | +0 | Module Setting - [Robocop 2] - CustomViewportWidth: 1733
  1207. 23:17:21:249 | MD | INFO | +0 | Module Setting - [Amstrad GX4000] - CustomViewportHeight: 1535
  1208. 23:17:21:249 | MD | INFO | +0 | Module Setting - [Robocop 2] - CustomViewportHeight: 1535
  1209. 23:17:21:249 | MD | INFO | +0 | Module Setting - [Amstrad GX4000] - CustomViewportX: 94
  1210. 23:17:21:249 | MD | INFO | +0 | Module Setting - [Robocop 2] - CustomViewportX: 94
  1211. 23:17:21:249 | MD | INFO | +0 | Module Setting - [Amstrad GX4000] - CustomViewportY: -211
  1212. 23:17:21:249 | MD | INFO | +0 | Module Setting - [Robocop 2] - CustomViewportY: -211
  1213. 23:17:21:249 | MD | INFO | +0 | Module Setting - [Amstrad GX4000] - StretchToFillBezel: false
  1214. 23:17:21:249 | MD | INFO | +0 | Module Setting - [Robocop 2] - StretchToFillBezel: false
  1215. 23:17:21:249 | MD | INFO | +0 | Module Setting - [Amstrad GX4000] - Rotation: 0
  1216. 23:17:21:249 | MD | INFO | +0 | Module Setting - [Robocop 2] - Rotation: 0
  1217. 23:17:21:249 | MD | INFO | +0 | Module Setting - [Amstrad GX4000] - CropOverscan: true
  1218. 23:17:21:249 | MD | INFO | +0 | Module Setting - [Robocop 2] - CropOverscan: true
  1219. 23:17:21:249 | MD | INFO | +0 | Module Setting - [Amstrad GX4000] - ThreadedVideo:
  1220. 23:17:21:249 | MD | INFO | +0 | Module Setting - [Robocop 2] - ThreadedVideo:
  1221. 23:17:21:249 | MD | INFO | +0 | Module Setting - [Amstrad GX4000] - VSync: true
  1222. 23:17:21:249 | MD | INFO | +0 | Module Setting - [Robocop 2] - VSync: true
  1223. 23:17:21:249 | MD | INFO | +0 | Module Setting - [Amstrad GX4000] - IntegerScale: false
  1224. 23:17:21:249 | MD | INFO | +0 | Module Setting - [Robocop 2] - IntegerScale: false
  1225. 23:17:21:249 | MD | INFO | +0 | Module Setting - [Amstrad GX4000] - ConfigurationPerCore: false
  1226. 23:17:21:249 | MD | INFO | +0 | Module Setting - [Robocop 2] - ConfigurationPerCore: false
  1227. 23:17:21:249 | MD | INFO | +0 | CheckFile - Checking if Z:\Hyperspin\Emulators\Amstrad GX4000\cores\mess_libretro.dll exists
  1228. 23:17:21:250 | MD | INFO | +0 | Module - RetroArch is using Z:\Hyperspin\Emulators\Amstrad GX4000\config\Amstrad GX4000.cfg as its config file.
  1229. 23:17:21:250 | MD | INFO | +0 | Module - Retroarch MESS mode enabled
  1230. 23:17:21:250 | MD | INFO | +0 | Module - MESS mode using a known ident: gx4000
  1231. 23:17:21:253 | MD | INFO | +0 | Module - Saving changed settings to: "Z:\Hyperspin\Emulators\Amstrad GX4000\config\Amstrad GX4000.cfg"
  1232. 23:17:21:254 | MD | INFO | +0 | Run - Running: Z:\Hyperspin\Emulators\Amstrad GX4000\retroarch.exe "gx4000 -rompath \"Z:\Hyperspin\Emulators\Amstrad GX4000\bios\" -cart \"Z:\Hyperspin\Emulators\Amstrad GX4000\ROMS\Robocop 2.zip\"" -f -c "Z:\Hyperspin\Emulators\Amstrad GX4000\config\Amstrad GX4000.cfg" -L "Z:\Hyperspin\Emulators\Amstrad GX4000\cores\mess_libretro.dll" -s "Z:\Hyperspin\Emulators\Amstrad GX4000\srm\Amstrad GX4000\Robocop 2.srm" -S "Z:\Hyperspin\Emulators\Amstrad GX4000\save\Amstrad GX4000\Robocop 2.state"
  1233. 23:17:21:273 | MD | INFO | +31 | WinWait - Waiting for "RetroArch ahk_class RetroArch"
  1234. 23:17:21:470 | MD | INFO | +187 | WinWaitActive - Waiting for "RetroArch ahk_class RetroArch"
  1235. 23:17:21:578 | MD | INFO | +109 | Process - WaitClose retroarch.exe
  1236. 23:17:31:089 | MD | INFO | +9516 | WinClose - Closing: RetroArch ahk_class RetroArch
  1237. 23:17:31:356 | MD | INFO | +266 | ExitModule - Started
  1238. 23:17:31:356 | MD | INFO | +0 | Starting Updating Statistics:
  1239. 23:17:31:396 | MD | INFO | +31 | Game section statistics updated.
  1240. 23:17:31:413 | MD | INFO | +31 | ExitModule - Ended
  1241. 23:17:31:413 | MD | INFO | +0 | End of Module Logs
  1242. 23:17:31:461 | RL | INFO | +10328 | Main - Module ended, exiting RocketLauncher normally
  1243. 23:17:31:461 | RL | INFO | +0 | ExitScript - Started
  1244. 23:17:31:467 | RL | INFO | +0 | SystemCursor - Restoring mouse cursor
  1245. 23:17:31:470 | RL | INFO | +0 | ExitScript - Ended
  1246. [/code]
Advertisement
Add Comment
Please, Sign In to add comment