RocketLauncher won't launch game without Xbox 360 Controller Powered On

pofo14

Member
This is a strange behavior - and never happened previously. Now any time I try to launch a game - RL will just get this exact spot in the launch process and "wait". It will just hang indefinitely until I exit out, or turn on my XBox 360 controller. As soon as I turn on my XBox 360 controller and it pairs - the module will continue to load, and the game will load fine. This happens on all systems I have tested it with.

I can't seem to figure out why - anyone else seen this behavior before? I usually don't use any controllers - as it is setup in a cabinet. Lately I was setting up some new systems and using the controller in Retroarch to configure things.

Not sure what I changed to make this happen.

Thanks in advance,
Ken

Code:
[code]
21:23:23:384 | RL |      INFO  | +N/A   | Main - RocketLauncher v1.2.0.1 (www.rlauncher.com)
21:23:23:962 | RL |      INFO  | +579   | Main - System Specs:
					RocketLauncher Dir: D:\FrontEnds\RocketLauncher
					RocketLauncher is: 32-bit
					OS: Microsoft Windows 10 Home
					SKU: Windows 8
					Total Memory: 8142.93 MB
					Free Memory: 4183.77 MB
					Used Memory: 3959.160 MB
					SystemType: 64-bit
					Physical Processors: 1
					Logical Processors: 4
					GPU 1 Name: NVIDIA GeForce GTX 660
					GPU 1 RAM: -2048.00 MB
					GPU 1 Driver Version: 26.21.14.4575
					Sound 1 Device: High Definition Audio Device
					Sound 1 Status: Enabled
					Sound 2 Device: NVIDIA High Definition Audio
					Sound 2 Status: Enabled
					Sound 3 Device: NVIDIA Virtual Audio Device (Wave Extensible) (WDM)
					Sound 3 Status: Enabled
					OS Language: English_United_States
					System Locale: en-US
					Formats Locale: en-US
					Windows UI Language: en-US
					Text Encoding: Windows-1252
					OS Admin Status: No
					RL Compatibility Flags:
					Latest .Net Version: v4.0.30319
					Monitor #1 (\\.\DISPLAY1): 1366x768 (1366x728 work) [32bit] [59hz] [Landscape]  (Primary)
					Current AHK Desktop Width: 1366
					Current AHK Desktop Height: 768
					Monitor #1 DPI: 100
					ErrorMode: 0
					AutoHotkey Path: C:\Program Files\AutoHotkey\AutoHotkey.exe
					AHK Version: 1.1.13.00
					Unicode: No
21:23:23:962 | RL |      INFO  | +0     | CheckFile - Checking if D:\FrontEnds\RocketLauncher\RocketLauncher.exe exists
21:23:23:963 | RL |      INFO  | +0     | Main - Raw CLI received: "-s Sega Genesis -r Adventures of Batman & Robin, The (USA) -f D:\FrontEnds\LaunchBox\BigBox.exe -p LaunchBox -c 1 -o 1"
21:23:23:963 | RL |      INFO  | +0     | Main - Loading Front End Plugin: "LaunchBox"
21:23:23:963 | RL |      INFO  | +0     | Main - RocketLauncher received "Sega Genesis" and "Adventures of Batman & Robin, The (USA)"
21:23:23:976 | RL |      INFO  | +15    | Main - Found a "Games Options.ini" file, loading it into memory.
21:23:23:979 | RL |      INFO  | +0     | Main - Adventures of Batman & Robin, The (USA) is using the default emulator: RetroArch
21:23:23:979 | RL |      INFO  | +0     | Main - Checking for a [RetroArch] section in D:\FrontEnds\RocketLauncher\Settings\Sega Genesis\Emulators.ini
21:23:23:981 | RL |      INFO  | +0     | Main - Checking for a [RetroArch] section in D:\FrontEnds\RocketLauncher\Settings\Global Emulators.ini
21:23:23:984 | RL |      INFO  | +16    | Main - Found [RetroArch] in D:\FrontEnds\RocketLauncher\Settings\Global Emulators.ini
21:23:23:984 | RL |      INFO  | +0     | CheckFile - Checking if D:\FrontEnds\RocketLauncher\Modules\RetroArch\RetroArch.ahk exists
21:23:23:998 | RL |      INFO  | +15    | Main - Adventures of Batman & Robin, The (USA) will use module: D:\FrontEnds\RocketLauncher\Modules\RetroArch\RetroArch.ahk
21:23:23:013 | RL |      INFO  | +0     | Main - Using standard method with "Rom Extension" SkipChecks or without any SkipChecks.
21:23:24:018 | RL |      INFO  | +16    | CheckFile - Checking if D:\Emulators\RetroArch\retroarch.exe exists
21:23:24:020 | RL |      INFO  | +0     | Main - INI Keys read
21:23:24:020 | RL |      INFO  | +0     | CheckFile - Checking if D:\FrontEnds\RocketLauncher\Module Extensions\7z.exe exists
21:23:24:024 | RL |      INFO  | +0     | CheckFile - Checking if D:\FrontEnds\RocketLauncher\Module Extensions\7z.dll exists
21:23:24:046 | RL |      INFO  | +31    | Main - "Adventures of Batman & Robin, The (USA)" does not qualify for MultiGame. Only roms with any of these strings in their name are acceptable: \(Disc|\(Disk|\(Cart|\(Tape|\(Cassette|\(Part|\(Side
21:23:24:046 | RL |      INFO  | +0     | CheckPaths - Started
21:23:24:046 | RL |      INFO  | +0     | CheckPaths - Looking for rom: D:\Roms\No-intro\Sega - Mega Drive - Genesis\Adventures of Batman & Robin, The (USA).lha
21:23:24:046 | RL |      INFO  | +0     | CheckPaths - Looking for rom by name in subfolder: D:\Roms\No-intro\Sega - Mega Drive - Genesis\Adventures of Batman & Robin, The (USA)\Adventures of Batman & Robin, The (USA).lha
21:23:24:046 | RL |      INFO  | +0     | CheckPaths - Looking for rom by extension: D:\Roms\No-intro\Sega - Mega Drive - Genesis\Adventures of Batman & Robin, The (USA)\*.lha
21:23:24:046 | RL |      INFO  | +0     | CheckPaths - Looking for rom: D:\Roms\No-intro\Sega - Mega Drive - Genesis\Adventures of Batman & Robin, The (USA).lzh
21:23:24:047 | RL |      INFO  | +0     | CheckPaths - Looking for rom by name in subfolder: D:\Roms\No-intro\Sega - Mega Drive - Genesis\Adventures of Batman & Robin, The (USA)\Adventures of Batman & Robin, The (USA).lzh
21:23:24:047 | RL |      INFO  | +0     | CheckPaths - Looking for rom by extension: D:\Roms\No-intro\Sega - Mega Drive - Genesis\Adventures of Batman & Robin, The (USA)\*.lzh
21:23:24:047 | RL |      INFO  | +0     | CheckPaths - Looking for rom: D:\Roms\No-intro\Sega - Mega Drive - Genesis\Adventures of Batman & Robin, The (USA).gzip
21:23:24:047 | RL |      INFO  | +0     | CheckPaths - Looking for rom by name in subfolder: D:\Roms\No-intro\Sega - Mega Drive - Genesis\Adventures of Batman & Robin, The (USA)\Adventures of Batman & Robin, The (USA).gzip
21:23:24:047 | RL |      INFO  | +0     | CheckPaths - Looking for rom by extension: D:\Roms\No-intro\Sega - Mega Drive - Genesis\Adventures of Batman & Robin, The (USA)\*.gzip
21:23:24:047 | RL |      INFO  | +0     | CheckPaths - Looking for rom: D:\Roms\No-intro\Sega - Mega Drive - Genesis\Adventures of Batman & Robin, The (USA).tar
21:23:24:047 | RL |      INFO  | +0     | CheckPaths - Looking for rom by name in subfolder: D:\Roms\No-intro\Sega - Mega Drive - Genesis\Adventures of Batman & Robin, The (USA)\Adventures of Batman & Robin, The (USA).tar
21:23:24:047 | RL |      INFO  | +0     | CheckPaths - Looking for rom by extension: D:\Roms\No-intro\Sega - Mega Drive - Genesis\Adventures of Batman & Robin, The (USA)\*.tar
21:23:24:047 | RL |      INFO  | +0     | CheckPaths - Looking for rom: D:\Roms\No-intro\Sega - Mega Drive - Genesis\Adventures of Batman & Robin, The (USA).7z
21:23:24:047 | RL |      INFO  | +0     | CheckPaths - Looking for rom by name in subfolder: D:\Roms\No-intro\Sega - Mega Drive - Genesis\Adventures of Batman & Robin, The (USA)\Adventures of Batman & Robin, The (USA).7z
21:23:24:047 | RL |      INFO  | +0     | CheckPaths - Looking for rom by extension: D:\Roms\No-intro\Sega - Mega Drive - Genesis\Adventures of Batman & Robin, The (USA)\*.7z
21:23:24:047 | RL |      INFO  | +0     | CheckPaths - Looking for rom: D:\Roms\No-intro\Sega - Mega Drive - Genesis\Adventures of Batman & Robin, The (USA).zip
21:23:24:047 | RL |      INFO  | +0     | CheckPaths - Found rom: D:\Roms\No-intro\Sega - Mega Drive - Genesis\Adventures of Batman & Robin, The (USA).zip
21:23:24:047 | RL |      INFO  | +0     | CheckPaths - Ended
21:23:24:048 | RL |      INFO  | +0     | BuildScript - User Variables:
					;----------------------------------------------------------------------------
					; INJECTED VARIABLES
					;----------------------------------------------------------------------------

					#NoTrayIcon
					#InstallKeybdHook
					MiscUtils.DetectHiddenWindows("On")
					SetTitleMatchMode, 2
					SendMode, Event
					Global RLLog
					Global RLObject
					0 := "12"
					rlPath := "D:\FrontEnds\RocketLauncher"
					pluginPath := "D:\FrontEnds\RocketLauncher\Plugins"
					pluginName := "LaunchBox"
					pluginExt := ".plugin"
					contextOnExit := "1"
					rlMode := ""
					rlTitle := "RocketLauncher"
					rlVersion := "1.2.0.1"
					rlAuthor := "djvj"
					rlURL := "www.rlauncher.com"
					langFile := "D:\FrontEnds\RocketLauncher\Data\Language\Localization.ini"
					primMonitor := "1"
					frontendPID := ""
					frontendPath := "D:\FrontEnds\LaunchBox"
					frontendExe := "BigBox.exe"
					frontendExt := "exe"
					frontendName := "BigBox"
					frontendDrive := "D"
					exitEmulatorKey := "LControl|4joy18"
					restoreFE := "false"
					exitScriptKey := "~8 & ~9"
					toggleCursorKey := "D:H:6&7"
					emuFullPath := "D:\Emulators\RetroArch\retroarch.exe"
					emuPath := "D:\Emulators\RetroArch"
					emuName := "RetroArch"
					emuExt := "exe"
					baseRomPath := ""
					romPath := "D:\Roms\No-intro\Sega - Mega Drive - Genesis"
					romPathFromIni := "D:\Roms\No-intro\Sega - Mega Drive - Genesis"
					romExtension := ".zip"
					romExtensionOrig := ".zip"
					romExtensions := "lha|lzh|gzip|tar|7z|zip|rar|cue|bin|ccd|sfc|gba|gb|gbc|nes|ngc|ngp|gg|sms|md|a26|pce|nds|j64|lnx|wsc|n64|a78|z64|32x|a52|chd|fds|col|int|crt|ipf"
					executable := "retroarch.exe"
					systemDbName := "Sega Genesis"
					systemName := "Sega Genesis"
					dbPath := ""
					dbName := "Adventures of Batman & Robin, The (USA)"
					dbExt := ""
					romFoundByExt := ""
					romName := "Adventures of Batman & Robin, The (USA)"
					romMapPath := ""
					romMappingEnabled := "false"
					romMappingLaunchMenuEnabled := "false"
					romMappingFirstMatchingExt := "false"
					romMappingShowAllRomsInArchive := "true"
					romMappingNumberOfGamesByScreen := "7"
					romMappingHideParent := "false"
					romMappingMenuWidth := "300"
					romMappingMenuMargin := "50"
					romMappingTextFont := "Bebas Neue"
					romMappingTextOptions := "cFFFFFFFF r4 s40 Bold"
					romMappingDisabledTextColor := "ff888888"
					romMappingTextSizeDifference := "5"
					romMappingTextMargin := "10"
					romMappingTitleTextFont := "Bebas Neue"
					romMappingTitleTextOptions := "cFFFFFFFF r4 s60 Bold"
					romMappingTitle2TextFont := "Bebas Neue"
					romMappingTitle2TextOptions := "cFFFFFFFF r4 s15 Bold"
					romMappingGameInfoTextFont := "Bebas Neue"
					romMappingGameInfoTextOptions := "cFFFFFFFF r4 s15 Regular"
					romMappingGameNameTextFont := "Bebas Neue"
					romMappingGameNameTextOptions := "cFFFFFFFF r4 s40 Regular"
					romMappingBackgroundBrush := "aa000000"
					romMappingColumnBrush := "33000000"
					romMappingButtonBrush1 := "6f000000"
					romMappingButtonBrush2 := "33000000"
					romMappingBackgroundAlign := "Stretch and Lose Aspect"
					romMappingMenuFlagWidth := "40"
					romMappingMenuFlagSeparation := "5"
					romMappingDefaultMenuList := "FullList"
					romMappingSingleFilteredRomAutomaticLaunch := "false"
					altArchiveNameOnly := ""
					altRomNameOnly := ""
					altArchiveAndRomName := ""
					altArchiveAndManyRomNames := ""
					altRomNamesOnly := ""
					romMapScenario := ""
					skipchecks := "false"
					romMatchExt := "true"
					blockInputTime := "0"
					blockInputFile := "D:\FrontEnds\RocketLauncher\Module Extensions\BlockInput.exe"
					errorLevelReporting := "false"
					lockLaunch := "false"
					lockLaunchGame := ""
					screenRotationAngle := "0"
					screenRotationAngleGame := ""
					setResolution := ""
					logFile := ""
					logLabel := ["    INFO"," WARNING","   ERROR","   DEBUG","   TRACE"]
					logLevel := "1"
					logShowDebugConsole := "false"
					logShowCommandWindow := "false"
					logCommandWindow := "false"
					logIncludeModule := "true"
					logIncludeFileProperties := "true"
					logIncludeDLLLogs := "false"
					errorSounds := "true"
					rlDebugConsoleStdout := ""
					sysLang := "English_United_States"
					sysType := "64-bit"
					broadcastWindowTitle := ""
					navUpKey := "Up"
					navDownKey := "Down"
					navLeftKey := "Left"
					navRightKey := "Right"
					navSelectKey := "Enter|A"
					navP2UpKey := "G"
					navP2DownKey := "B"
					navP2LeftKey := "H"
					navP2RightKey := "N"
					navP2SelectKey := "J"
					originalWidth := "1366"
					originalHeight := "768"
					vdEnabled := "true"
					vdFullPath := "C:\Program Files\DAEMON Tools Lite\DTAgent.exe"
					vdUseSCSI := "true"
					vdDriveLetter := "L"
					vdDriveLetterScsi := ""
					vdAddDrive := "true"
					demulShooterPath := ""
					servoStikEnabled := "false"
					servoStikExitMode := "false"
					ledblinkyEnabled := "false"
					ledblinkySystemName := ""
					ledblinkyFullPath := ""
					ledblinkyProfilePath := "D:\FrontEnds\RocketLauncher\Profiles\LEDBlinky"
					ledblinkyRLProfile := "D:\FrontEnds\RocketLauncher\Profiles\LEDBlinky\RocketLauncher"
					winIPACFullPath := ""
					ultraMapEnabled := "false"
					ultraMapFullPath := ""
					emuIdleShutdown := "0"
					launchPasswordHash := "UpUpDownDownLeftRightLeftRight"
					cursorSize := ""
					hideCursor := "true"
					hideEmu := "true"
					hideFE := "true"
					suspendFE := "false"
					fadeIn := "true"
					fadeInDuration := "500"
					fadeInTransitionAnimation := "DefaultAnimateFadeIn"
					fadeInDelay := "4000"
					fadeInExitDelay := "500"
					fadeOutExitDelay := "500"
					fadeOut := "true"
					fadeOutExtraScreen := "false"
					fadeOutDuration := "1000"
					fadeOutTransitionAnimation := "DefaultAnimateFadeOut"
					fadeOutDelay := "1000"
					fadeLyrInterpolation := "7"
					fadeMuteEmulator := "false"
					fadeUseBackgrounds := "true"
					fadeClickThrough := "false"
					fadeSounds := "true"
					fade7zProgressMode := "extraction"
					fadeWidthBaseRes := "1920"
					fadeHeightBaseRes := "1080"
					fadeLyr1Color := "FF000000"
					fadeLyr1AlignImage := "Stretch and Lose Aspect"
					fadeLyr2Pos := "Stretch and Lose Aspect"
					fadeLyr2X := "0"
					fadeLyr2Y := "0"
					fadeLyr2W := ""
					fadeLyr2H := ""
					fadeLyr2Adjust := "1"
					fadeLyr2PicPad := "0"
					fadeLyr2Prefix := "Extra Layer 1 - Console"
					fadeLyr3Pos := "Center"
					fadeLyr3X := "450"
					fadeLyr3Y := "450"
					fadeLyr3W := ""
					fadeLyr3H := ""
					fadeLyr3Adjust := "1"
					fadeLyr3PicPad := "0"
					fadeLyr3Speed := "750"
					fadeLyr3Animation := "DefaultFadeAnimation"
					fadeLyr37zAnimation := "DefaultFadeAnimation"
					fadeLyr3Type := "imageandbar"
					fadeLyr3ImgFollow7zProgress := "true"
					fadeLyr3Repeat := "1"
					fadeLyr3BackImageTransparency := "30"
					fadeLyr3StaticPos := "No Alignment"
					fadeLyr3StaticX := "0"
					fadeLyr3StaticY := "820|1575"
					fadeLyr3StaticW := ""
					fadeLyr3StaticH := ""
					fadeLyr3StaticAdjust := "1"
					fadeLyr3StaticPicPad := "0"
					fadeLyr3StaticPrefix := "Info Bar"
					fadeLyr4Adjust := "1"
					fadeLyr4X := "1750|952"
					fadeLyr4Y := "891|1596"
					fadeLyr4W := "233"
					fadeLyr4H := "233"
					fadeLyr4Pos := "Bottom Right Corner"
					fadeLyr4FPS := "70"
					fadeLyr4PicPad := "0"
					fadeTranspGifColor := "FFFFFF"
					fadeBarWindow := "Image"
					fadeBarWindowX := ""
					fadeBarWindowY := ""
					fadeBarWindowW := "909"
					fadeBarWindowH := ""
					fadeBarWindowR := "30"
					fadeBarWindowM := "80"
					fadeBarWindowHatchStyle := "8"
					fadeBar := "7zOnly"
					fadeProgressDuration := "0"
					fadeBarBack := "false"
					fadeBarBackColor := "FF2E9AE6"
					fadeBarH := "43"
					fadeBarR := "5"
					fadeBarColor := "FF59A5FF"
					fadeBarHatchStyle := "22"
					fadeBarPercentageText := "true"
					fadeBarInfoText := "true"
					fadeBarXOffset := "0"
					fadeBarYOffset := "150"
					fadeRomInfoDescription := "filtered text"
					fadeRomInfoSystemName := "image"
					fadeRomInfoYear := "text with label"
					fadeRomInfoDeveloper := "disabled"
					fadeRomInfoPublisher := "image"
					fadeRomInfoGenre := "disabled"
					fadeRomInfoRating := "image"
					fadeRomInfoOrder := "Description|SystemName|Year|Manufacturer|Genre|Rating"
					fadeRomInfoTextPlacement := "User Defined"
					fadeRomInfoTextMargin := "7"
					fadeRomInfoText1Options := "w1600|787 h90 x165 y870|1575 cFFE1E1E1 r4 s90 Left Regular"
					fadeRomInfoText2Options := "w400 x8 y15 cFF555555 r4 s60 Bold"
					fadeRomInfoText3Options := "w310 x165 y960|1665 cFFE1E1E1 r4 s66 Left Regular"
					fadeRomInfoText4Options := "w1305|492 h66 x460 y960|1665 cFFE1E1E1 r4 s66 Left Regular"
					fadeRomInfoText5Options := "cFF555555 r4 s42 Bold"
					fadeRomInfoText6Options := "h135 x15 y885|1590 cFFCFCFCA r4 s120 Regular"
					fadeRomInfoText7Options := "h135 x15 y885|1590 cFFCFCFCA r4 s120 Regular"
					fadeStats_Number_of_Times_Played := "text with label"
					fadeStats_Last_Time_Played := "text with label"
					fadeStats_Average_Time_Played := "text with label"
					fadeStats_Total_Time_Played := "text with label"
					fadeStats_System_Total_Played_Time := "text with label"
					fadeStats_Total_Global_Played_Time := "text with label"
					fadeStatsInfoOrder := "Number_of_Times_Played|Last_Time_Played|Average_Time_Played|Total_Time_Played|System_Total_Played_Time|Total_Global_Played_Time"
					fadeStatsInfoTextPlacement := "topRight"
					fadeStatsInfoTextMargin := "7"
					fadeStatsInfoText1Options := "cFFB4B4B4 r4 s22 Bold"
					fadeStatsInfoText2Options := "cFFB4B4B4 r4 s22 Bold"
					fadeStatsInfoText3Options := "cFFB4B4B4 r4 s22 Bold"
					fadeStatsInfoText4Options := "cFFB4B4B4 r4 s22 Bold"
					fadeStatsInfoText5Options := "cFFB4B4B4 r4 s22 Bold"
					fadeStatsInfoText6Options := "cFFB4B4B4 r4 s22 Bold"
					fadeText1X := "0"
					fadeText1Y := "60"
					fadeText1Options := "cFFB4B4B4 r4 s30 Right Bold"
					fadeText1 := "Loading Game"
					fadeText2X := "0"
					fadeText2Y := "156"
					fadeText2Options := "cFFB4B4B4 r4 s30 Right Bold"
					fadeText2 := "Extraction Complete, Ready"
					fadeText3 := "Loading Game"
					fadeText4 := "Loading Complete"
					fadeFont := "Bebas Neue"
					fadeSystemAndRomLayersOnly := "false"
					fadeExtractionTime := "disabled"
					fadeExtractionTimeTextX := "0"
					fadeExtractionTimeTextY := "0"
					fadeExtractionTimeTextOptions := "cFF555555 r4 s20 Bold"
					fadeInterruptKey := ""
					detectFadeErrorEnabled := "true"
					fadeImgPath := "D:\FrontEnds\RocketLauncher\Media\Fade"
					RLDataPath := "D:\FrontEnds\RocketLauncher\Data"
					RLMediaPath := "D:\FrontEnds\RocketLauncher\Media"
					RLErrSoundPath := "D:\FrontEnds\RocketLauncher\Media\Sounds\Error"
					modulesPath := "D:\FrontEnds\RocketLauncher\Modules"
					moduleFullName := "D:\FrontEnds\RocketLauncher\Modules\RetroArch\RetroArch.ahk"
					moduleName := "RetroArch"
					modulePath := "D:\FrontEnds\RocketLauncher\Modules\RetroArch"
					moduleExtension := "ahk"
					moduleExtensionsPath := "D:\FrontEnds\RocketLauncher\Module Extensions"
					libPath := "D:\FrontEnds\RocketLauncher\Lib"
					sevenZEnabled := "true"
					sevenZPath := "D:\FrontEnds\RocketLauncher\Module Extensions\7z.exe"
					sevenZDllPath := "D:\FrontEnds\RocketLauncher\Module Extensions\7z.dll"
					sevenZExtractPath := "D:\temp"
					sevenZExtractPathOrig := ""
					sevenZAttachSystemName := "true"
					sevenZDelTemp := "true"
					sevenZFormats := ".zip|.rar|.7z|.lha|.lzh|.gzip|.tar"
					sevenZFormatsNoP := "zip|rar|7z|lha|lzh|gzip|tar"
					sevenZFormatsRegEx := "\.zip|\.rar|\.7z|\.lha|\.lzh|\.gzip|\.tar"
					sevenZGamesToKeep := ""
					sevenZDeletePerSystem := "false"
					sevenZExtensions := "zip|rar|7z|lha|lzh|gzip|tar"
					7zExtractPath := "D:\temp"
					mgEnabled := "false"
					mgKey := "F7"
					mgBackgroundColor := "FF000000"
					mgSidePadding := "0.2"
					mgWidthBaseRes := "1920"
					mgHeightBaseRes := "1080"
					mgYOffset := "500"
					mgFont := "Arial"
					mgText1Options := "x10p y30p w80p Center cBBFFFFFF r4 s100 BoldItalic"
					mgText1Text := "Please select a game"
					mgText2Options := "w96p cFFFFFFFF r4 s50 Center BoldItalic"
					mgText2Offset := "70"
					mgUseSound := "true"
					mgSoundfreq := "300"
					mgExitEffect := "none"
					mgSelectedEffect := "rotate"
					mgUseGameArt := "true"
					mgCandidate := ""
					mgValidTypes := "\(Disc|\(Disk|\(Cart|\(Tape|\(Cassette|\(Part|\(Side"
					mgOnLaunch := "false"
					pauseEnabled := "true"
					pauseKey := "NumpadSub|4joy16"
					pauseBackToMenuBarKey := "S"
					pauseZoomInKey := "Z"
					pauseZoomOutKey := "X"
					pauseScreenshotKey := "~PrintScreen"
					pauseHiToTextPath := "D:\FrontEnds\RocketLauncher\Module Extensions\HiToText.exe"
					pauseSaveStateKeyCodes := "{F2 down}{F2 up}"
					pauseLoadStateKeyCodes := "{F4 down}{F4 up}"
					keyboardEncoder := ""
					keyboardEncoderEnabled := "false"
					keymapperEnabled := "true"
					keymapperAHKMethod := "false"
					keymapper := "joytokey"
					xpadderFullPath := "D:\FrontEnds\RocketLauncher\Utilities\Xpadder\xpadder.exe"
					joyToKeyFullPath := "D:\FrontEnds\RocketLauncher\Utilities\JoyToKey\JoyToKey.exe"
					profilePath := "D:\FrontEnds\RocketLauncher\Profiles"
					keymapperProfilePath := "D:\FrontEnds\RocketLauncher\Profiles\joytokey"
					keymapperFrontEndProfileName := "RocketLauncher"
					keymapperFrontEndProfile := "joytokey"
					keymapperRocketLauncherProfileEnabled := "true"
					joyIDsEnabled := "false"
					joyIDsPreferredControllersGlobal := ""
					joyIDsPreferredControllersSystem := "use_global"
					joyIDsPreferredControllersOnExit := ""
					CustomJoyNamesEnabled := "false"
					CustomJoyNames := ""
					rotateMethod := "false"
					FEProfile := "D:\FrontEnds\RocketLauncher\Profiles\joytokey\RocketLauncher"
					defaultProfile := "D:\FrontEnds\RocketLauncher\Profiles\joytokey\_Default"
					systemProfile := "D:\FrontEnds\RocketLauncher\Profiles\joytokey\Sega Genesis"
					xPadderSystemProfile := "D:\FrontEnds\RocketLauncher\Profiles\joytokey\Sega Genesis\_Default"
					emuProfile := "D:\FrontEnds\RocketLauncher\Profiles\joytokey\Sega Genesis\RetroArch"
					romProfile := "D:\FrontEnds\RocketLauncher\Profiles\joytokey\Sega Genesis\Adventures of Batman & Robin, The (USA)"
					RocketLauncherProfile := "D:\FrontEnds\RocketLauncher\Profiles\joytokey\RocketLauncher"
					blankProfile := "D:\FrontEnds\RocketLauncher\Profiles\joytokey\blank"
					ahkFEProfile := "D:\FrontEnds\RocketLauncher\Profiles\AHK\RocketLauncher"
					ahkDefaultProfile := "D:\FrontEnds\RocketLauncher\Profiles\AHK\_Default"
					ahkSystemProfile := "D:\FrontEnds\RocketLauncher\Profiles\AHK\Sega Genesis"
					ahkEmuProfile := "D:\FrontEnds\RocketLauncher\Profiles\AHK\Sega Genesis\RetroArch"
					ahkRomProfile := "D:\FrontEnds\RocketLauncher\Profiles\AHK\Sega Genesis\Adventures of Batman & Robin, The (USA)"
					ahkRocketLauncherProfile := "D:\FrontEnds\RocketLauncher\Profiles\AHK\RocketLauncher"
					bezelEnabled := "false"
					bezelICEnabled := "true"
					shaderName := "false"
					shaderColor := ""
					shaderTransparency := ""
					statisticsEnabled := "true"
					pressDuration := "-1"
					emuVolume := "1"
					dxwndIni := "D:\FrontEnds\RocketLauncher\Module Extensions\dxwnd\dxwnd.ini"
					dxwndFullPath := "D:\FrontEnds\RocketLauncher\Module Extensions\dxwnd\dxwnd.exe"
					qResFullPath := "D:\FrontEnds\RocketLauncher\Module Extensions\QRes.exe"
					mon1O := ""
					pacDrivedllFile := "D:\FrontEnds\RocketLauncher\Module Extensions\PacDrive32.dll"
					userFadeAnimIniFile := "D:\FrontEnds\RocketLauncher\Lib\User Fade Animations.ini"
					testFile := ""
					testDuration := ""
					initialErrorMode := "0"

21:23:24:054 | RL |      INFO  | +0     | BuildScript - Loaded XHotkey Init.ahk scripts
21:23:24:054 | RL |      INFO  | +0     | BuildScript - Loaded Keymapper Init.ahk scripts
21:23:24:054 | RL |      INFO  | +0     | BuildScript - Loaded Fade Init.ahk scripts
21:23:24:054 | RL |      INFO  | +0     | BuildScript - Loaded Pause Init.ahk scripts
21:23:24:054 | RL |      INFO  | +0     | BuildScript - Loaded Statistics Init.ahk scripts
21:23:24:054 | RL |      INFO  | +0     | BuildScript - Validating module
21:23:24:064 | RL |      INFO  | +16    | BuildScript - Validation complete
21:23:24:064 | RL |      INFO  | +0     | BuildScript - Module:
					MEmu := "RetroArch"
					MEmuV := "v1.3.6"
					MURL := ["http://themaister.net/retroarch.html"]
					MAuthor := ["djvj","zerojay","SweatyPickle"]
					MVersion := "2.4.3"
					MCRC := "699AB8F7"
					iCRC := "FB2DB971"
					MID := "635038268922229162"
					MSystem := ["Acorn BBC Micro","AAE","Amstrad CPC","Amstrad GX4000","APF Imagination Machine","Applied Technology MicroBee","Apple IIGS","Arcade Classics","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 II","Capcom Play System III","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","ScummVM","Sega 32X","Sega Classics","Sega Mega Drive 32X","Sega Mark III","Sega SC-3000","Sega SG-1000","Sega CD","Sega Dreamcast","Sega Game Gear","Sega Genesis","Sega Master System","Sega Mega Drive","Sega Meganet","Sega Nomad","Sega Pico","Sega Saturn","Sega Saturn Japan","Sega VMU","Sega ST-V","Sharp X1","Sharp X68000","Sinclair ZX Spectrum","Sinclair ZX81","Sony PlayStation","Sony PlayStation Minis","Sony PocketStation","Sony PSP","Sony PSP Minis","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","Sammy Atomiswave", "Sega Naomi", "Sega Naomi 2", "Sega Naomi GD", "Sega Naomi 2 GD", "Commodore 64"]
					;----------------------------------------------------------------------------
					; Notes:
					; If the emu doesn't load and you get no error, usually this means the LibRetro DLL is not working!
					; Devs stated they will never add support for mounted images (like via DT)
					; Fullscreen is controlled via the module setting in RocketLauncherUI
					; This module uses the CLI version of RetroArch (retroarch.exe), not the GUI (retroarch-phoenix.exe).
					; The emu may make a mouse cursor appear momentarily during launch, MouseMove and hide_cursor seem to have no effect
					; Enable 7z support for archived roms
					; Available CLI options: https://github.com/PyroFilmsFX/iOS/blob/master/docs/retroarch.1
					;
					; LibRetro DLLs:
					; LibRetro DLLs come with the emu, but here is another source for them: http://forum.themaister.net/
					; 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.
					; 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
					; Some good discussion on cores and filters: http://forum.themaister.net/viewtopic.php?id=270
					;
					; SRM files:
					; The srm files location is determined by the configuration file used (savefile_directory = ":\whatever") The default RetroArch srm directory is ":\saves" You can select to sort into core folders (ie: :/saves/Mednafen PSX) by changing sort_savefiles_enable = "true" in the configuration file.
					;
					; Save states:
					; The save state files location is determined by the configuration file used (savestate_directory = ":\whatever") The default RetroArch savestate directory is ":\states" You can select to sort into core folders (ie: :/states/Mednafen PSX) by changing sort_savestates_enable = "true" in the configuration file.
					;
					; Config files:
					; 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.  This will be the config folder for the module and will NOT change the location of RetroArch's own /config directory.
					; 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).
					; RetroArch will also load core config files named after the core name. Example: nestopia_libretro.cfg
					; 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.
					; 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.
					;
					; Core Options:
					; By default, RetroArch creates a retroarch-core-options.cfg in it's root directory.  Example: C:\emus\RetroArch\retroarch-core-options.cfg.  This will always be used if the default RetroArch.cfg is loaded.  If a configuration file from any other location is used, RetroArch will create a retroarch-core-options.cfg file in the root of that directory.  The module has an option to have RetroArch use only the default retroarch-core-options.cfg file no matter the path of the config directory or location of the configuiration file being used.  To enable this option set Single_Core_Options to true.

					; MultiGame:
					; 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.
					; 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.
					; 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.
					;
					; MAME:
					; MAME BIOS roms should be placed in Rom Path's directory. Some systems require the BIOS roms be placed in the MAME internal name directory. (Example: :\Rom Folder\a5200). The MAME BIOS_Roms_Folder option will have no effect unless you are using an older version of the mess core.
					;
					; System Specific Notes:
					; 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.
					; Nintendo Famicom Disk System - Requires disksys.rom be placed in the folder you define as system_directory in the RetroArch's cfg.
					; 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.
					; 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.
					; NEC TurboGrafx-CD (using pce fast core) - Requires "syscard3.pce" be placed in the folder you define as system_directory in the RetroArch's cfg.
					; NEC TurboGrafx-CD (using MAME core)
					;   - You'll need to update a couple mame specific options in the Retroarch core options file to get it to boot from the cli. These should probably be updated automagically by the module. Turning softlists off, but might not need to.
					;       mame_boot_from_cli = "enabled"
					;       mame_softlists_enable = "disabled"
					;       mame_softlists_auto_media = "disabled"
					;	- Requires hash folder from MAME/MESS/UME, either from the source or release package. Save this in the system_directory you've defined for RetroArch. Something like \RetroArch\system\mame\hash\
					;	- Requires the CD bios file(s) saved in the mame bios folder you've defined. Usually \RetroArch\system\mame\bios\
					;		For PC Engine-CD you'll need the file "[cd] cd-rom system (japan) (v2.1).pce" zipped as cdsys.zip and saved in a pce subfolder in your bios path, so \RetroArch\system\mame\bios\pce\cdsys.zip
					;		For PC Engine SuperGrafx-CD you'll need the file "[cd] super cd-rom system (japan) (v3.0).pce" zipped as scdsys.zip and saved in a pce subfolder in your bios path, so \RetroArch\system\mame\bios\pce\scdsys.zip
					;		For TurboGrafx-CD you'll need the file "[cd] turbografx cd system card (usa) (v2.0).pce" zipped as cdsys.zip and saved in a tg16 subfolder in your bios path, so \RetroArch\system\mame\bios\tg16\cdsys.zip
					;		For TurboDuo you'll need the file "[cd] turbografx cd super system card (usa) (v3.0).pce" zipped as scdsys.zip and saved in a tg16 subfolder in your bios path, so \RetroArch\system\mame\bios\tg16\scdsys.zip
					; 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.
					; 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.
					;----------------------------------------------------------------------------
					StartModule()
					BezelGUI()
					FadeInStart()

					primaryExe := new Emulator(emuPath . "\" . executable)	; instantiate emulator executable object
					emuPrimaryWindow := new Window(new WindowTitle("RetroArch","RetroArch"))	; instantiate primary emulator window object
					emuConsoleWindow := new Window(new WindowTitle("","ConsoleWindowClass"))	; instantiate emulator console window object

					; 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.
					; 1 - Official System Name in RocketLauncher
					; 2 - Short name used only for easy referencing within module
					; 3 - Default core
					; 4 - The system ID MAME core recognizes
					RLLog.Debug("Module - Started building the " . MEmu . " object")
					mTypeVar:="
						( LTrim
						AAE|LibRetro_AAE|mame_libretro
						Acorn BBC Micro|LibRetro_BBCB|mame_libretro|bbcb
						Amstrad CPC|LibRetro_CPC|mame_libretro|cpc464
						Amstrad GX4000|LibRetro_GX4K|mame_libretro|gx4000
						APF Imagination Machine|LibRetro_APF|mame_libretro|apfimag
						Apple IIGS|LibRetro_AIIGS|mame_libretro|apple2gs
						Applied Technology MicroBee|LibRetro_MBEE|mame_libretro|mbeeic
						Arcade Classics|LibRetro_ARCADE|mame_libretro
						Atari 2600|LibRetro_2600|stella_libretro|a2600
						Atari 5200|LibRetro_5200|mame_libretro|a5200
						Atari 7800|LibRetro_7800|prosystem_libretro|a7800
						Atari 8-Bit|LibRetro_ATARI8|mame_libretro|a800
						Atari Classics|LibRetro_ACLS|mame_libretro
						Atari Jaguar|LibRetro_JAG|virtualjaguar_libretro|jaguar
						Atari Lynx|LibRetro_LYNX|handy_libretro|lynx
						Atari ST|LibRetro_ST|hatari_libretro
						Atari XEGS|LibRetro_XEGS|mame_libretro|xegs
						Bally Astrocade|LibRetro_BAST|mame_libretro|astrocde
						Bandai Gundam RX-78|LibRetro_BGRX|mame_libretro|rx78
						Bandai Super Vision 8000|LibRetro_SV8K|mame_libretro|sv8000
						Bandai Wonderswan|LibRetro_WSAN|mednafen_wswan_libretro|wswan
						Bandai Wonderswan Color|LibRetro_WSANC|mednafen_wswan_libretro|wscolor
						Canon X07|LibRetro_CX07|mame_libretro|x07
						Capcom Classics|LibRetro_CAPC|mame_libretro
						Capcom Play System|LibRetro_CPS1|fbalpha_libretro
						Capcom Play System II|LibRetro_CPS2|fbalpha_libretro
						Capcom Play System III|LibRetro_CPS3|mame_libretro
						Casio PV-1000|LibRetro_CAS1K|mame_libretro|pv1000
						Casio PV-2000|LibRetro_CAS2K|mame_libretro|pv2000
						Cave|LibRetro_CAVE|mame_libretro
						Coleco ADAM|LibRetro_ADAM|mame_libretro|adam
						ColecoVision|LibRetro_COLEC|mame_libretro|coleco
						Commodore Amiga|LibRetro_PUAE|puae_libretro
						Commodore Max Machine|LibRetro_CMAX|mame_libretro|vic10
						Creatronic Mega Duck|LibRetro_DUCK|mame_libretro|megaduck
						Data East Classics|LibRetro_DATA|mame_libretro
						Dragon Data Dragon|LibRetro_DRAG64|mame_libretro|dragon64
						Elektronika BK|LibRetro_EBK|mame_libretro|bk0010
						Elektronska Industrija Pecom 64|LibRetro_P64|mame_libretro|pecom64
						Emerson Arcadia 2001|LibRetro_A2001|mame_libretro|arcadia
						Entex Adventure Vision|LibRetro_AVISION|mame_libretro|advision
						Epoch Game Pocket Computer|LibRetro_GPCKET|mame_libretro|gamepock
						Epoch Super Cassette Vision|LibRetro_SCV|mame_libretro|scv
						Exidy Sorcerer|LibRetro_SORCR|mame_libretro|sorcerer
						Fairchild Channel F|LibRetro_CHANF|mame_libretro|channelf
						Final Burn Alpha|LibRetro_FBA|fbalpha_libretro
						Funtech Super Acan|LibRetro_SACAN|mame_libretro|supracan
						GamePark 32|LibRetro_GP32|mame_libretro|gp32
						GCE Vectrex|LibRetro_VECTX|mame_libretro|vectrex
						Hartung Game Master|LibRetro_GMASTR|mame_libretro|gmaster
						Interton VC 4000|LibRetro_VC4K|mame_libretro|vc4000
						Irem Classics|LibRetro_IREM|mame_libretro
						JungleTac Sport Vii|LibRetro_SPORTV|mame_libretro|vii
						Konami Classics|LibRetro_KONC|mame_libretro
						Magnavox Odyssey 2|LibRetro_ODYS2|mame_libretro|odyssey2
						MAME|LibRetro_MAME|mame_libretro|mame
						Matra & Hachette Alice|LibRetro_ALICE|mame_libretro|alice32
						Mattel Aquarius|LibRetro_AQUA|mame_libretro|aquarius
						Mattel Intellivision|LibRetro_INTV|mame_libretro|intv
						MGT Sam Coupe|LibRetro_SAMCP|mame_libretro|
						Microsoft MS-DOS|LibRetro_MSDOS|dosbox_libretro
						Microsoft MSX|LibRetro_MSX|bluemsx_libretro
						Microsoft MSX2|LibRetro_MSX2|bluemsx_libretro
						Microsoft Windows 3.x|LibRetro_WIN3X|dosbox_libretro
						Midway Classics|LibRetro_MIDC|mame_libretro
						Namco Classics|LibRetro_NAMC|mame_libretro
						Namco System 22|LibRetro_NAM2|mame_libretro
						NEC PC Engine|LibRetro_PCE|mednafen_pce_fast_libretro|pce,cart
						NEC PC Engine-CD|LibRetro_PCECD|mednafen_pce_fast_libretro|pce,cdrom
						NEC PC-FX|LibRetro_PCFX|mednafen_pcfx_libretro
						NEC SuperGrafx|LibRetro_SGFX|mednafen_supergrafx_libretro|sgx,cart
						NEC TurboGrafx-16|LibRetro_TG16|mednafen_pce_fast_libretro|tg16,cart
						NEC TurboGrafx-CD|LibRetro_TGCD|mednafen_pce_fast_libretro|tg16,cdrom
						Nintendo 64|LibRetro_N64|mupen64plus_libretro|n64
						Nintendo 64DD|LibRetro_N64|mupen64plus_libretro
						Nintendo Arcade Systems|LibRetro_NINARC|mame_libretro
						Nintendo Classics|LibRetro_NINC|mame_libretro
						Nintendo DS|LibRetro_DS|desmume_libretro
						Nintendo Entertainment System|LibRetro_NES|nestopia_libretro|nes
						Nintendo Famicom|LibRetro_NFAM|nestopia_libretro
						Nintendo Famicom Disk System|LibRetro_NFDS|nestopia_libretro|famicom
						Nintendo Game Boy|LibRetro_GB|gambatte_libretro|gameboy
						Nintendo Game Boy Advance|LibRetro_GBA|vba_next_libretro|gba
						Nintendo Game Boy Color|LibRetro_GBC|gambatte_libretro|gbcolor
						Nintendo Game Boy Japan|LibRetro_GBJ|gambatte_libretro|gameboy
						Nintendo Game & Watch|LibRetro_GW|gw_libretro
						Nintendo Pokemon Mini|LibRetro_POKE|mame_libretro|pokemini
						Nintendo Satellaview|LibRetro_NSFS|snes9x_libretro
						Nintendo SuFami Turbo|LibRetro_NSFST|snes9x_libretro
						Nintendo Super Famicom|LibRetro_NSF|bsnes_balanced_libretro
						Nintendo Super Game Boy|LibRetro_SGB|bsnes_balanced_libretro
						Nintendo Virtual Boy|LibRetro_NVB|mednafen_vb_libretro|vboy
						Othello Multivision|LibRetro_OTHO|genesis_plus_gx_libretro
						Panasonic 3DO|LibRetro_3DO|4do_libretro
						Philips CD-i|LibRetro_CDI|mame_libretro|cdimono1
						Philips Videopac|LibRetro_PVID|mame_libretro|videopac
						RCA Studio II|LibRetro_STUD2|mame_libretro|studio2
						SCUMMVM|LibRetro_SCUMM|scummvm_libretro
						Sega 32X|LibRetro_32X|picodrive_libretro|32x
						Sega CD|LibRetro_SCD|genesis_plus_gx_libretro|segacd
						Sega Classics|LibRetro_SEGC|mame_libretro
						Sega Dreamcast|LibRetro_DCAST|reicast_libretro
						Sega Game Gear|LibRetro_GG|genesis_plus_gx_libretro|gamegear
						Sega Genesis|LibRetro_GEN|genesis_plus_gx_libretro|genesis
						Sega Mark III|Libretro_SM3|genesis_plus_gx_libretro
						Sega Master System|LibRetro_SMS|genesis_plus_gx_libretro|sms
						Sega Mega Drive|LibRetro_GEN|genesis_plus_gx_libretro|megadriv
						Sega Mega Drive 32X|LibRetro_MD32X|picodrive_libretro
						Sega Meganet|LibRetro_GEN|genesis_plus_gx_libretro|genesis
						Sega Nomad|LibRetro_GEN|genesis_plus_gx_libretro|genesis
						Sega Pico|LibRetro_PICO|picodrive_libretro
						Sega Saturn|LibRetro_SAT|yabause_libretro|saturn
						Sega Saturn Japan|LibRetro_SAT|yabause_libretro|saturnjp
						Sega SC-3000|LibRetro_SC3K|mame_libretro|sc3000
						Sega SG-1000|LibRetro_SG1K|genesis_plus_gx_libretro
						Sega ST-V|LibRetro_STV|mame_libretro
						Sega VMU|LibRetro_SVMU|mame_libretro|svmu
						Sharp X1|LibRetro_SX1|mame_libretro|x1
						Sharp X68000|LibRetro_SX68000|mame_libretro|x68000
						Sinclair ZX Spectrum|LibRetro_SPECZX|mame_libretro|spectrum
						Sinclair ZX81|LibRetro_ZX81|81_libretro|zx81
						SNK Classics|LibRetro_SNKC|mame_libretro
						SNK Neo Geo|LibRetro_NEO|fbalpha_libretro
						SNK Neo Geo AES|LibRetro_NEOAES|mame_libretro|aes
						SNK Neo Geo CD|LibRetro_NEOCD|mame_libretro|neocdz
						SNK Neo Geo MVS|LibRetro_NEOMVS|mame_libretro
						SNK Neo Geo Pocket|LibRetro_NGP|mednafen_ngp_libretro|ngp
						SNK Neo Geo Pocket Color|LibRetro_NGPC|mednafen_ngp_libretro|ngpc
						Sony PlayStation|LibRetro_PSX|mednafen_psx_libretro|psu
						Sony PlayStation Minis|LibRetro_PSXMIN|ppsspp_libretro
						Sony PocketStation|LibRetro_POCKS|mame_libretro|pockstat
						Sony PSP|LibRetro_PSP|ppsspp_libretro
						Sony PSP Minis|LibRetro_PSP|ppsspp_libretro
						Sord M5|LibRetro_SORD|mame_libretro|m5
						Spectravideo|LibRetro_SV328|mame_libretro|svi328n
						Super Nintendo Entertainment System|LibRetro_SNES|bsnes_balanced_libretro|snes
						Taito Classics|LibRetro_TAIC|mame_libretro
						Tandy TRS-80 Color Computer|LibRetro_TRS80|mame_libretro|coco3
						Technos|LibRetro_TECHN|mame_libretro
						Texas Instruments TI 99-4A|LibRetro_TI99|mame_libretro|ti99_4a
						Thomson MO5|LibRetro_MO5|mame_libretro|mo5
						Thomson TO7|LibRetro_TO7|mame_libretro|to7
						Tiger Game.com|LibRetro_TCOM|mame_libretro|gamecom
						Tiki-100|LibRetro_TIKI|mame_libretro|kontiki
						Tomy Tutor|LibRetro_TOMY|mame_libretro|tutor
						VTech CreatiVision|LibRetro_VTECH|mame_libretro|crvision
						Watara Supervision|LibRetro_SUPRV|mame_libretro|svision
						Williams Classics|LibRetro_WILLS|mame_libretro
						Sammy Atomiswave|LibRetro_SAMMY|flycast_libretro
						Sega Naomi|LibRetro_NAOMI|flycast_libretro
						Sega Naomi 2|LibRetro_NAOMI|flycast_libretro
						Sega Naomi GD|LibRetro_NAOMI|flycast_libretro
						Sega Naomi 2 GD|LibRetro_NAOMI|flycast_libretro
						Commodore 64|Libretro_VICE|vice_x64_libretro
						)"
					mType := Object()
					Loop, Parse, mTypeVar, `n, `r
					{
						obj := {}
						Loop, Parse, A_LoopField, |
						{
							If (A_Index = 1)
								obj.System := A_LoopField
							Else If (A_Index = 2)
								obj.ID := A_LoopField
							Else If (A_Index = 3)
								obj.Core := A_LoopField
							Else {	; 4
								StringSplit, tmp, A_LoopField, `,
								obj.MAMEID := tmp1
								obj.MAMEMedia := tmp2
							}
						}
						mType.Insert(obj["System"], obj)
					}
					RLLog.Debug("Module - Finished building the " . MEmu . " object")
					; For easier use throughout the module
					retroSystem := mType[systemName].System
					retroID := mType[systemName].ID
					retroCore := mType[systemName].Core
					retroMAMEID := mType[systemName].MAMEID
					retroMAMEMedia := mType[systemName].MAMEMedia
					RLLog.Info("Module - Using these system variables:")
					RLLog.Info("Module - retroSystem: " . retroSystem)
					RLLog.Info("Module - retroID: " . retroID)
					RLLog.Info("Module - retroCore: " . retroCore)
					RLLog.Info("Module - retroMAMEID: " . retroMAMEID)
					RLLog.Info("Module - retroMAMEMedia: " . retroMAMEMedia)
					If !retroSystem
						ScriptError("Your systemName is: " . systemName . "`nIt is not one of the known supported systems for this " . MEmu . " module: " . moduleName)
					If !retroCore
						ScriptError("Your Core ID is: " . retroID . "`nCould not find a default core to use. Please update the module with a default core.")

					Fullscreen := moduleIni.Read("Settings", "Fullscreen","true",,1)
					configFolder := moduleIni.Read("Settings", "ConfigFolder",emuPath . "\config",,1)
					singlecoreoptions := moduleIni.Read("Settings", "single_core_options","false",,1) = "true" ? ":\retroarch-core-options.cfg" : """"
					mameRomPath := moduleIni.Read("MAME", "BIOS_Roms_Folder",,,1)
					mameHideNag := If moduleIni.Read("MAME", "Hide_Nag_Screen","false",,1) = "true" ? "enabled" : "disabled"
					mameHideInfo := If moduleIni.Read("MAME", "Hide_Info_Screen","false",,1) = "true" ? "enabled" : "disabled"
					mameHideWarn := If moduleIni.Read("MAME", "Hide_Warning_Screen","false",,1) = "true" ? "enabled" : "disabled"
					hideConsole := moduleIni.Read("Settings", "HideConsole","true",,1)
					ejectToggleKey := moduleIni.Read("Settings", "Eject_Toggle_Key",,,1)
					nextDiskKey := moduleIni.Read("Settings", "Next_Disk_Key",,,1)
					prevDiskKey := moduleIni.Read("Settings", "Previous_Disk_Key",,,1)
					core := moduleIni.Read(romName . "|" . systemName, "LibRetro_Core",retroCore,,1)
					superGB := moduleIni.Read(romName . "|" . systemName, "SuperGameBoy","false",,1)
					enableNetworkPlay := moduleIni.Read(romName . "|Network", "Enable_Network_Play","false",,1)
					overlay := moduleIni.Read(romName . "|" . systemName, "Overlay",,,1)
					videoShader := moduleIni.Read(romName . "|" . systemName, "VideoShader",,,1)
					aspectRatioIndex := moduleIni.Read(romName . "|" . systemName, "AspectRatioIndex",,,1)
					customViewportWidth := moduleIni.Read(romName . "|" . systemName, "CustomViewportWidth",,,1)
					customViewportHeight := moduleIni.Read(romName . "|" . systemName, "CustomViewportHeight",,,1)
					customViewportX := moduleIni.Read(romName . "|" . systemName, "CustomViewportX",,,1)
					customViewportY := moduleIni.Read(romName . "|" . systemName, "CustomViewportY",,,1)
					stretchToFillBezel := moduleIni.Read(romName . "|" . systemName, "StretchToFillBezel","false",,1)
					rotation := moduleIni.Read(romName . "|" . systemName, "Rotation",0,,1)
					cropOverscan := moduleIni.Read(romName . "|" . systemName, "CropOverscan",,,1)
					threadedVideo := moduleIni.Read(romName . "|" . systemName, "ThreadedVideo",,,1)
					vSync := moduleIni.Read(romName . "|" . systemName, "VSync",,,1)
					integerScale := moduleIni.Read(romName . "|" . systemName, "IntegerScale",,,1)
					configurationPerCore := moduleIni.Read(romName . "|" . systemName, "ConfigurationPerCore","false",,1)

					If (StringUtils.Contains(core, "^(mame|mess|ume)") && !retroMAMEID) {
						retroMAMEID := "mame"	; set all systems that use a mame core to the default mame ID so any system name is supported
						RLLog.Warning("Module - Setting MAMEID to default ""mame"" for """ . retroSystem . """")
					}

					configFolder := RLObject.getFullPathFromRelative(rlPath,configFolder)
					mameRomPath := If mameRomPath ? RLObject.getFullPathFromRelative(rlPath,mameRomPath) : romPath
					overlay := RLObject.getFullPathFromRelative(rlPath,overlay)
					videoShader := RLObject.getFullPathFromRelative(rlPath,videoShader)
					rotateBezel := false

					configFolder := new Folder(configFolder)

					If (retroID = "LibRetro_SGB" || superGB = "true")	; if system or rom is set to use Super Game Boy
					{	superGB := "true"	; setting this just in case it's false and the system is Nintendo Super Game Boy
						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")
						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")
						retroID := "LibRetro_SGB"	; switching to Super Game Boy mode
						retroSystem := "Nintendo Super Game Boy"
					}

					; Find the dll for this system
					libDll := CheckFile(emuPath . "\cores\" . core . ".dll", "Your " . retroID . " dll is set to " . core . " but could not locate this file:`n" . emuPath . "\cores\" . core . ".dll")

					; Find the cfg file to use
					If !configFolder.Exist()
						ScriptError("You need to make sure ""ConfigFolder"" is pointing to your RetroArch config folder. By default it is looking here: """ . configFolder.FilePath . """")
					globalRetroCfg := emuPath . "\retroarch.cfg"
					systemRetroCfg := configFolder.FilePath . "\" . retroSystem . ".cfg"
					coreRetroCfg := configFolder.FilePath . "\" . core . ".cfg"
					RLLog.Info("Module - Global cfg should be: " . globalRetroCfg)
					RLLog.Info("Module - System cfg should be: " . systemRetroCfg)
					RLLog.Info("Module - Core cfg should be: " . coreRetroCfg)
					foundCfg := ""

					systemRetroCfg := new File(systemRetroCfg)
					coreRetroCfg := new File(coreRetroCfg)
					globalRetroCfg := new File(globalRetroCfg)

					If systemRetroCfg.Exist() {	; check for system cfg first
						retroCFGFile := systemRetroCfg
						foundCfg := 1
						RLLog.Info("Module - Found a System cfg!")
					} Else If coreRetroCfg.Exist() {	; 2nd option is a core config
						retroCFGFile := coreRetroCfg
						foundCfg := 1
						RLLog.Info("Module - Found a Core cfg!")
					} Else If globalRetroCfg.Exist() {	; 3rd is global cfg
						retroCFGFile := globalRetroCfg
						foundCfg := 1
						RLLog.Info("Module - Found a Global cfg!")
					}
					If foundCfg {
						RLLog.Info("Module - " . MEmu . " is using " . retroCFGFile.FileFullPath . " as its config file.")
						retroCFG := LoadProperties(retroCFGFile.FileFullPath)
					} Else
						RLLog.Warning("Module - Could not find a cfg file to update settings. RetroArch will make one for you.")

					If StringUtils.Contains(rotation,"1|3") ; use vertical bezel if RA rotation is set to 90 or 270 degrees
						rotateBezel := true

					If StringUtils.Contains(retroID, "LibRetro_NFDS|LibRetro_SCD|LibRetro_TGCD|LibRetro_PCECD|LibRetro_PCFX") {		; these systems require the retroarch settings to be read
						retroSysDir := ReadProperty(retroCFG,"system_directory")	; read value
						retroSysDir := ConvertRetroCFGKey(retroSysDir)	; remove dbl quotes
						retroSysDirLeft := StringUtils.Left(retroSysDir, 2)
						If (retroSysDirLeft = ":\") {	; if retroarch is set to use a default folder
							retroSysDir := StringUtils.TrimLeft(retroSysDir, 1)
							RLLog.Info("Module - RetroArch is using a relative system path: """ . retroSysDir . """")
							retroSysDir := emuPath . retroSysDir
						}
						If !retroSysDir
							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.")
						checkForSlash := StringUtils.Right(retroSysDir, 1)
						If (checkForSlash = "\")	; check if a backslash is the last character. If it is, remove it, as this is non-standard method to define folders
							retroSysDir := StringUtils.TrimRight(retroSysDir, 1)
					}

					If (StringUtils.Contains(core, "^(mame|mess|ume)")) || (StringUtils.Contains(retroID, "LibRetro_N64|LibRetro_NES|LibRetro_LYNX|LibRetro_PSX")) || (StringUtils.Contains(retroID, "LibRetro_NES") && (StringUtils.Contains(core, "nestopia_libretro"))) {	; these systems will use an ini to store game specific settings
						RLLog.Info("Module - Reading / creating system ini for specific settings.")
						If !StringUtils.Contains(core, "^(mame|mess|ume)") {
							If !SystemModuleIni.Exist()
								SystemModuleIni.Append		; create a new blank ini file if one does not exist
						}

						coreOptionsCFG := LoadProperties(coreOptionsCFGFile.FileFullPath)

						If StringUtils.Contains(core, "^(mame|mess|ume)") {	; Set some MAME/MESS/UME core options.
							tmpCore := If StringUtils.Contains(core, "mame") ? "mame" : "mess"
							WriteProperty(coreOptionsCFG, tmpCore . "_read_config", """enabled""", 1)
							WriteProperty(coreOptionsCFG, tmpCore . "_boot_from_cli", """enabled""", 1)				; This needs to be enabled in order to run games with RLauncher
							WriteProperty(coreOptionsCFG, tmpCore . "_hide_nagscreen", "" . mameHideNag . "", 1)
							WriteProperty(coreOptionsCFG, tmpCore . "_hide_infoscreen", "" . mameHideInfo . "", 1)
							WriteProperty(coreOptionsCFG, tmpCore . "_hide_warnings", "" . mameHideWarn . "", 1)
						} Else If StringUtils.Contains(retroID, "LibRetro_N64") {	; Nintendo 64
							mupenGfx := moduleIni.Read(romName . "|" . systemName, "Mupen_Gfx_Plugin", "auto",,1)
							mupenRsp := moduleIni.Read(romName . "|" . systemName, "Mupen_RSP_Plugin", "auto",,1)
							mupenCpu := moduleIni.Read(romName . "|" . systemName, "Mupen_CPU_Core", "dynamic_recompiler",,1)
							mupenPak1 := moduleIni.Read(romName . "|" . systemName, "Mupen_Pak_1", "memory",,1)
							mupenPak2 := moduleIni.Read(romName . "|" . systemName, "Mupen_Pak_2", "memory",,1)
							mupenPak3 := moduleIni.Read(romName . "|" . systemName, "Mupen_Pak_3", "memory",,1)
							mupenPak4 := moduleIni.Read(romName . "|" . systemName, "Mupen_Pak_4", "memory",,1)
							mupenGfxAccur := moduleIni.Read(romName . "|" . systemName, "Mupen_Gfx_Accuracy", "high",,1)
							mupenExpMem := moduleIni.Read(romName . "|" . systemName, "Mupen_Disable_Exp_Memory", "no",,1)
							mupenTexturFilt := moduleIni.Read(romName . "|" . systemName, "Mupen_Texture_Filtering", "nearest",,1)
							mupenViRefresh := moduleIni.Read(romName . "|" . systemName, "Mupen_VI_Refresh", "2200",,1)
							mupenFramerate := moduleIni.Read(romName . "|" . systemName, "Mupen_Framerate", "fullspeed",,1)
							mupenResolution := moduleIni.Read(romName . "|" . systemName, "Mupen_Resolution", "640x480",,1)
							mupenPolyOffstFctr := moduleIni.Read(romName . "|" . systemName, "Mupen_Polygon_Offset_Factor", "-3.0",,1)
							mupenPolyOffstUnts := moduleIni.Read(romName . "|" . systemName, "Mupen_Polygon_Offset_Units", "-3.0",,1)
							mupenViOverlay := moduleIni.Read(romName . "|" . systemName, "Mupen_VI_Overlay", "disabled",,1)
							mupenAnalogDzone := moduleIni.Read(romName . "|" . systemName, "Mupen_Analog_Deadzone", "15",,1)

							WriteProperty(coreOptionsCFG, "mupen64-gfxplugin", mupenGfx, 1)
							WriteProperty(coreOptionsCFG, "mupen64-rspplugin", mupenRsp, 1)
							WriteProperty(coreOptionsCFG, "mupen64-cpucore", mupenCpu, 1)
							WriteProperty(coreOptionsCFG, "mupen64-pak1", mupenPak1, 1)
							WriteProperty(coreOptionsCFG, "mupen64-pak2", mupenPak2, 1)
							WriteProperty(coreOptionsCFG, "mupen64-pak3", mupenPak3, 1)
							WriteProperty(coreOptionsCFG, "mupen64-pak4", mupenPak4, 1)
							WriteProperty(coreOptionsCFG, "mupen64-gfxplugin-accuracy", mupenGfxAccur, 1)
							WriteProperty(coreOptionsCFG, "mupen64-disableexpmem", mupenExpMem, 1)
							WriteProperty(coreOptionsCFG, "mupen64-filtering", mupenTexturFilt, 1)
							WriteProperty(coreOptionsCFG, "mupen64-virefresh", mupenViRefresh, 1)
							WriteProperty(coreOptionsCFG, "mupen64-framerate", mupenFramerate, 1)
							WriteProperty(coreOptionsCFG, "mupen64-screensize", mupenResolution, 1)
							WriteProperty(coreOptionsCFG, "mupen64-polyoffset-factor", mupenPolyOffstFctr, 1)
							WriteProperty(coreOptionsCFG, "mupen64-polyoffset-units", mupenPolyOffstUnts, 1)
							WriteProperty(coreOptionsCFG, "mupen64-angrylion-vioverlay", mupenViOverlay, 1)
							WriteProperty(coreOptionsCFG, "mupen64-astick-deadzone", mupenAnalogDzone, 1)
						} Else If StringUtils.Contains(retroID, "LibRetro_NES") {		; these systems will use an ini to store game specific settings
							If StringUtils.Contains(core, "nestopia_libretro") {	; Nestopia
								nestopiaBlargg := moduleIni.Read(romName . "|Nestopia", "Nestopia_Blargg_NTSC_Filter", "disabled",,1)
								nestopiaPalette := moduleIni.Read(romName . "|Nestopia", "Nestopia_Palette", "canonical",,1)
								nestopiaNoSprteLimit := moduleIni.Read(romName . "|Nestopia", "Nestopia_Remove_Sprites_Limit", "disabled",,1)

								WriteProperty(coreOptionsCFG, "nestopia_blargg_ntsc_filter", nestopiaBlargg, 1)
								WriteProperty(coreOptionsCFG, "nestopia_palette", nestopiaPalette, 1)
								WriteProperty(coreOptionsCFG, "nestopia_nospritelimit", nestopiaNoSprteLimit, 1)
							}
						} Else If StringUtils.Contains(retroID, "LibRetro_LYNX") {	; Atari Lynx
							If StringUtils.Contains(core, "handy_libretro") {   ; Handy
								handyRotate := moduleIni.Read(romName . "|" . systemName, "Handy_Rotation", "None",,1)
								If StringUtils.Contains(handyRotate, "240") or StringUtils.Contains(handyRotate, "90")
									rotateBezel := true
								WriteProperty(coreOptionsCFG, "handy_rot", handyRotate, 1)
							}
						} Else If StringUtils.Contains(retroID, "LibRetro_PSX") {	; Sony PlayStation
							psxCdImageCache := moduleIni.Read(romName . "|" . systemName, "PSX_CD_Image_Cache", """enabled""",,1)
							psxMemcardHandling := moduleIni.Read(romName . "|" . systemName, "PSX_Memcard_Handling", """libretro""",,1)
							psxDualshockAnalogToggle := moduleIni.Read(romName . "|" . systemName, "PSX_Dualshock_Analog_Toggle", """enabled""",,1)

							WriteProperty(coreOptionsCFG, "beetle_psx_cdimagecache", psxCdImageCache, 1)
							WriteProperty(coreOptionsCFG, "beetle_psx_use_mednafen_memcard0_method", psxMemcardHandling, 1)
							WriteProperty(coreOptionsCFG, "beetle_psx_analog_toggle", psxDualshockAnalogToggle, 1)
						}
						SaveProperties(coreOptionsCFGFile.FileFullPath, coreOptionsCFG)
					}

					hideEmuObj := Object(emuConsoleWindow,0,emuPrimaryWindow,1)
					7z(romPath, romName, romExtension, sevenZExtractPath)

					mgM3UFile := new File(romPath . "\" . romTable[1,4] . ".m3u")

					mgRomExtensions := "cue|iso|ccd"
					mgValidExtension := false

					Loop, Parse, mgRomExtensions, |
						If (romExtension = "." . A_LoopField)
							mgValidExtension := true

					If (StringUtils.Contains(retroID, "LibRetro_PSX") && romTable.MaxIndex() && mgValidExtension) { ; See if MultiGame table is populated
						m3uRomIndex := Object()
						mgType := romTable[1,6] . " "
						mgMaxIndex := romTable.MaxIndex()
						mgRomIndex := 0

						If mgM3UFile.Exist()
							mgM3UFile.Delete()

						Loop % mgMaxIndex
						{
							If (romTable[A_Index, 3] = romName) {
								tempType := romTable[A_Index, 5]
								mgRomIndex := StringUtils.TrimLeft(tempType, StringUtils.StringLength(mgType))
								RLLog.Info("Found rom index in rom set in romTable: " . mgRomIndex)
								Break
							}
						}

						If (mgRomIndex > 0) {
							tempRomIndex := mgRomIndex
							Loop % mgMaxIndex
							{
								mgTypeIndex := mgType . tempRomIndex
								m3uRomIndex.Insert(tempRomIndex)

								Loop % mgMaxIndex
								{
									If (romTable[A_Index, 5] = mgTypeIndex) {
										tempRomPath := romTable[A_Index, 1]
										mgM3UFile.Append(tempRomPath . "`n")
										RLLog.Info("Module - Appending rom path to m3u: " . tempRomPath)
										Break
									}
								}

								If (tempRomIndex < mgMaxIndex)
									tempRomIndex++
								Else
									tempRomIndex := 1
							}
						}
					}

					; MAME/MESS/UME core options
					MAMEParam1 := ""
					MAMEParam2 := ""
					MAMEParam3 := ""
					If StringUtils.Contains(core, "^(mame|mess|ume)") {	; if a MAME/MESS/UME core is used
						If !retroMAMEID
							ScriptError("Your systemName is: " . systemName . "`nIt is not one of the known supported systems for the MAME/MESS/UME LibRetro core")
						Else
							RLLog.Info("Module - MAME/MESS/UME mode using a known ident: " . retroMAMEID)

						If !mameRomPath
							ScriptError("Please set the RetroArch module setting ""BIOS_Roms_Folder"" to the folder that contains your MAME/MESS/UME BIOS roms to use with RetroArch.")

						If (retroMAMEID = "mame") {		; want this for arcade mame only
							RLLog.Info("Module - Retroarch MAME/MESS/UME Arcade mode enabled")
							fullRomPath := " """ . romPath . "\" . romName . romExtension . """"
						} Else {
							RLLog.Info("Module - Retroarch MAME/MESS/UME Console/PC mode enabled")
							MAMEParam1 := ""
							MAMEParam2 := " -rompath \""" . mameRomPath . "\"""

							; If we already have a media type, then use it.
							If (StringUtils.Contains(retroMAMEID, "tg16|pce") && retroMAMEMedia = "cart") {
								;MAMEParam3 := " -cart \" . """" . romPath . "\" . romName . romExtension . "\" . """"
								MAMEParam3 := " -cart \""" . romPath . "\" . romName . romExtension . "\"""""
							; TODO: This needs a better way to handle the cdrom bios files, in my opinion. As it is, there's no clean way to pick between the v2.00 or v3.00 bios.
							;       Defaulting to the TurboDuo cdrom bios since it will play 2.00 or 3.00 games.
							} Else If (StringUtils.Contains(retroMAMEID, "tg16|pce") && retroMAMEMedia = "cdrom") {
								;MAMEParam3 := " -cart cdsys -cdrm \" . """" . romPath . "\" . romName . romExtension . "\" . """"
								MAMEParam3 := " -cart scdsys -cdrm \""" . romPath . "\" . romName . romExtension . "\"""""
							} Else {
								; Build a key/value object containing the different MAMEParam3 choices
								MAMEP3 := Object("alice32","cass1","gp32","memc","cpc464","cass","spectrum","cass","dragon64","cass","cdimono1","cdrom","bk0010","cass","neocd","cdrom","neocdz","cdrom","saturn","cdrm","saturnjp","cdrm","svi328n","cass","pecom64","cass","psu","cdrm","svmu","quik","gamecom","cart1","mbeeic","quik1")
								MAMEParam3 := MAMEP3[retroMAMEID]	; search object for the retroMAMEID pair
								MAMEParam3 := " -" . (If MAMEParam3 ? MAMEParam3 : "cart") . " \" . """" . romPath . "\" . romName . romExtension . "\" . """"
							}

							If (retroMAMEID = "mbeeic") ; Applied Technology MicroBee
							{	microbeeModel := IniReadCheck(MAMESysINI, romName, "MicroBee_Model","mbeeic",,1)
								If microbeeModel not in mbee,mbeeic,mbeepc,mbeepc85,mbee56
									ScriptError("This is not a known MicroBee model value: " . microbeeModel)
								Else If (microbeeModel != "mbeeic")
									retroMAMEID := microbeeModel
								If romExtension in .mwb,.com,.bee
									mediaDeviceType := "quik1"
								Else If romExtension in .wav,.tap
									mediaDeviceType := "cass"
								Else If romExtension in .rom
									mediaDeviceType := "cart"
								Else If romExtension in .dsk
									mediaDeviceType := "flop1"
								Else	; .bin format
									mediaDeviceType := "quik2"
								MAMEParam3 := " -" . mediaDeviceType . " \" . """" . romPath . "\" . romName . romExtension . "\" . """"
							}

							If (retroMAMEID = "x68000") ; Sharp X68000
							{
								If romExtension in .xdf,.hdm,.2hd,.dim,.d77,.d88,.1dd,.dfi,.imd,.ipf,.mfi,.mfm,.td0,.cqm,.cqi,.dsk
									mediaDeviceType := "flop1"
								Else	; .bin format
									mediaDeviceType := "sasi"
								MAMEParam3 := " -" . mediaDeviceType . " \" . """" . romPath . "\" . romName . romExtension . "\" . """"
							}

							fullRomPath := MAMEParam1 . MAMEParam2 . MAMEParam3
						}
					} Else If (superGB = "true") {
						RLLog.Info("Module - Retroarch Super Game Boy mode enabled")
						fullRomPath := " """ . sgbRomPath . """ --subsystem sgb """ . romPath . "\" . romName . romExtension . """"
					} Else {
						RLLog.Info("Module - Retroarch standard mode enabled")
						fullRomPath := " """ . romPath . "\" . romName . romExtension . """"
					}

					If (retroID = "LibRetro_NFDS")	; Nintendo Famicom Disk System
					{	disksysRom := new File(retroSysDir . "\disksys.rom")
						If !disksysRom.Exist()
							ScriptError("RetroArch requires ""disksys.rom"" for " . retroSystem . " but could not find it in your system_directory: """ . retroSysDir . """")
					} Else If (retroID = "LibRetro_SCD")	; Sega CD
					{	If !StringUtils.Contains(romExtension, "\.bin|\.cue|\.iso")
							ScriptError("RetroArch only supports Sega CD games in bin|cue|iso format. It does not support:`n" . romExtension)
						biosCDEBin := new File(retroSysDir . "\bios_CD_E.bin")
						biosCDUBin := new File(retroSysDir . "\bios_CD_U.bin")
						biosCDJBin := new File(retroSysDir . "\bios_CD_J.bin")
						If !biosCDEBin.Exist()
							ScriptError("RetroArch requires ""bios_CD_E.bin"" for " . retroSystem . " but could not find it in your system_directory: """ . retroSysDir . """")
						If !biosCDUBin.Exist()
							ScriptError("RetroArch requires ""bios_CD_U.bin"" for " . retroSystem . " but could not find it in your system_directory: """ . retroSysDir . """")
						If !biosCDJBin.Exist()
							ScriptError("RetroArch requires ""bios_CD_J.bin"" for " . retroSystem . " but could not find it in your system_directory: """ . retroSysDir . """")
					} Else If StringUtils.Contains(retroID,"LibRetro_PCECD|LibRetro_TGCD")	; NEC PC Engine-CD and NEC TurboGrafx-CD
					{	If !StringUtils.Contains(romExtension,"\.ccd|\.cue")
							ScriptError("RetroArch only supports " . retroSystem . " games in ccd or cue format. It does not support:`n" . romExtension)
						sysCard3Pce := new File(retroSysDir . "\syscard3.pce")
						If !sysCard3Pce.Exist()
							ScriptError("RetroArch requires ""syscard3.pce"" for " . retroSystem . " but could not find it in your system_directory: """ . retroSysDir . """")
					} Else If (retroID = "LibRetro_PCFX")
					{	If !StringUtils.Contains(romExtension,"\.ccd|\.cue")
							ScriptError("RetroArch only supports " . retroSystem . " games in ccd or cue format. It does not support:`n" . romExtension)
						pcfxBios := new File(retroSysDir . "\pcfx.bios")
						If !pcfxBios.Exist()
							ScriptError("RetroArch requires ""pcfx.bios"" for " . retroSystem . " but could not find it in your system_directory: """ . retroSysDir . """")
					} Else If (retroID = "LibRetro_SCUMM")
					{
						scummFile := new File(romPath . "\" . romName . ".scummvm")
						If !scummFile.Exist()
							scummFile.Append("""" . romName . """")
					}

					networkSession := ""
					If (enableNetworkPlay = "true") {
						RLLog.Info("Module - Network Multi-Player is an available option for " . dbName)

						netplayNickname := moduleIni.Read("Network", "NetPlay_Nickname","Player",,1)
						getWANIP := moduleIni.Read("Network", "Get_WAN_IP","false",,1)

						If (getWANIP = "true")
							myPublicIP := GetPublicIP()

						RLLog.Warning("Module - CAREFUL WHEN POSTING THIS LOG PUBLICLY AS IT CONTAINS YOUR IP ON THE NEXT LINE")
						defaultServerIP := moduleIni.Read("Network", "Default_Server_IP", myPublicIP,,1)
						defaultServerPort := moduleIni.Read("Network", "Default_Server_Port",,,1)
						lastIP := moduleIni.Read("Network", "Last_IP", defaultServerIP,,1)	; does not need to be on the ISD
						lastPort := moduleIni.Read("Network", "Last_Port", defaultServerPort,,1)	; does not need to be on the ISD

						mpMenuStatus := MultiPlayerMenu(lastIP,lastPort,networkType,,0)
						If (mpMenuStatus = -1) {	; if user exited menu early
							RLLog.Warning("Module - Cancelled MultiPlayer Menu. Exiting module.")
							ExitModule()
						}
						If networkSession {
							RLLog.Info("Module - Using a Network for " . dbName)
							moduleIni.Write(networkPort, "GlobalModuleIni", "Network", "Last_Port")
							; msgbox lastIP: %lastIP%`nlastPort: %lastPort%`nnetworkIP: %networkIP%`nnetworkPort: %networkPort%
							If (networkType = "client") {
								moduleIni.Write(networkIP, "GlobalModuleIni", "Network", "Last_IP")	; Save last used IP and Port for quicker launching next time
								netCommand := " -C " . networkIP . " --port " . networkPort . " --nick """ . netplayNickname . """"	; -C = connect as client
							} Else {	; server
								netCommand := " -H --port " . networkPort . " --nick """ . netplayNickname . """"	; -H = host as server
							}
							RLLog.Warning("Module - CAREFUL WHEN POSTING THIS LOG PUBLICLY AS IT CONTAINS YOUR IP ON THE NEXT LINE")
							RLLog.Info("Module - Starting a network session using the IP """ . networkIP . """ and PORT """ . networkPort . """")
						} Else
							RLLog.Info("Module - User chose Single Player mode for this session")
					}

					BezelStart(,,(If rotateBezel ? 1:""))

					If foundCfg {
						If (stretchToFillBezel = "true" and bezelEnabled = "true" and bezelPath)
						{
							customViewportWidth := bezelScreenWidth
							customViewportHeight := bezelScreenHeight
							customViewportX := 0
							customViewportY := 0
							aspectRatioIndex := 22
							RLLog.Info("Stretching viewport to fit bezel")
						}

						raCfgHasChanges := ""
						WriteRetroProperty("core_options_path", singlecoreoptions)
						WriteRetroProperty("input_overlay", overlay)
						WriteRetroProperty("video_shader", videoShader)
						WriteRetroProperty("aspect_ratio_index", aspectRatioIndex)
						WriteRetroProperty("custom_viewport_width", customViewportWidth)
						WriteRetroProperty("custom_viewport_height", customViewportHeight)
						WriteRetroProperty("custom_viewport_x", customViewportX)
						WriteRetroProperty("custom_viewport_y", customViewportY)
						WriteRetroProperty("video_rotation", rotation)
						WriteRetroProperty("video_crop_overscan", cropOverscan)
						WriteRetroProperty("video_threaded", threadedVideo)
						WriteRetroProperty("video_vsync", vSync)
						WriteRetroProperty("video_scale_integer", integerScale)
						WriteRetroProperty("input_disk_eject_toggle", ejectToggleKey)
						WriteRetroProperty("input_disk_next", nextDiskKey)
						WriteRetroProperty("input_disk_prev", prevDiskKey)
						If StringUtils.Contains(retroID, "LibRetro_PSX") {
							Loop, 8	; Loop 8 times for 8 controllers
							{	p%A_Index%ControllerType := moduleIni.Read(romName . "|" . systemName, "P" . A_Index . "_Controller_Type", 517,,1)
								WriteRetroProperty("input_libretro_device_p" . A_Index, p%A_Index%ControllerType)
							}
						}

						If raCfgHasChanges {
							RLLog.Info("Module - Saving changed settings to: """ . retroCFGFile.FileFullPath . """")
							SaveProperties(retroCFGFile.FileFullPath, retroCFG)
						}
					}

					fullscreen := If fullscreen = "true" ? " -f" : ""
					retroCFGFileCLI := If foundCfg ? " -c """ . retroCFGFile.FileFullPath . """" : ""



					HideAppStart(hideEmuObj,hideEmu)

					If (StringUtils.Contains(core, "^(mame|mess|ume)") && (retroMAMEID != "mame")) {    ; if a MAME/MESS/UME core is used
						primaryExe.Run(" """ . (retroMAMEID ? retroMAMEID : "") . fullRomPath . """ " . fullscreen . retroCFGFileCLI . " -L """ . libDll . netCommand, "Hide")
					} Else If (retroID = "LibRetro_SCUMM") {
						primaryExe.Run(" """ . scummFile . """" . fullscreen . retroCFGFileCLI . " -L """ . libDll . "" . netCommand, "Hide")
					} Else If (retroID = "LibRetro_SGB" || If superGB = "true") { ; For some reason, the order of our command line matters in this particular case.
						primaryExe.Run(fullscreen . retroCFGFileCLI . " -L """ . libDll . fullRomPath . netCommand, "Hide")
					} Else If mgM3UFile.Exist() {
						primaryExe.Run(" """ . mgM3UFile.FileFullPath . """" . fullscreen . retroCFGFileCLI . " -L """ . libDll . netCommand, "Hide")
					} Else If (videoShader != "") {
						primaryExe.Run(" " . fullRomPath . fullscreen . retroCFGFileCLI . " --set-shader """ . videoShader . """ -L """ . libDll . """" . netCommand, "Hide")
					} Else {
						primaryExe.Run(" " . fullRomPath . fullscreen . retroCFGFileCLI . " -L """ . libDll . """" . netCommand, "Hide")
					}

					mpMenuStatus := ""
					If networkSession {
						canceledServerWait := false
						multiplayerMenuExit := false
						TimerUtils.SetTimer("NetworkConnectedCheck", 500)

						If (networkType = "server") {
							RLLog.Info("Module - Waiting for a client to connect to your server")
							mpMenuStatus := MultiPlayerMenu(,,,,,,,,"You are the server. Please wait for your client to connect.")
						} Else {	; client
							RLLog.Info("Module - Trying to contact the server to establish a connection.")
							mpMenuStatus := MultiPlayerMenu(,,,,,,,,"Attempting to connect to the server...")
						}

						If (mpMenuStatus = -1) {	; if user exited menu early before a client connected
							RLLog.Warning("Module - Cancelled waiting for the " . If (networkType = "server") ? "client to connect" : "server to respond" . ". Exiting module.")
							If primaryExe.Process("Exist")
								primaryExe.Process("Close")	; must close process as the exe is waiting for a client to connect and no window was drawn yet
							ExitModule()
						} Else {	; blank response from MultiPlayerMenu, exited properly
							RLLog.Info("Module - " . If (networkType = "server") ? "Client has connected" : "Connected to the server")
							emuPrimaryWindow.Wait()
							emuPrimaryWindow.WaitActive()
						}
						TimerUtils.SetTimer("NetworkConnectedCheck", "Off")
					} Else {	; single player
						emuPrimaryWindow.Wait()
						emuPrimaryWindow.WaitActive()
					}

					If (hideConsole = "true")
						emuConsoleWindow.Set("Transparent", "On")	; makes the console window transparent so you don't see it on exit

					BezelDraw()
					HideAppEnd(hideEmuObj,hideEmu)
					FadeInExit()
					primaryExe.Process("WaitClose")
					7zCleanUp()
					BezelExit()
					FadeOutExit()
					ExitModule()


					; Writes new properties into the retroCFG if defined by user
					WriteRetroProperty(key,value="") {
						If (value != "") {
							Global retroCFG,raCfgHasChanges
							WriteProperty(retroCFG, key, value,1,1)
							raCfgHasChanges := 1
						}
					}

					; Used to convert between RetroArch keys and usable data
					ConvertRetroCFGKey(txt,direction="read"){
						Global emuPath,RLLog
						If (direction = "read")
						{	newtxt := StringUtils.TrimLeft(txt,1,0)	; removes the " from the left of the txt
							newtxt := StringUtils.TrimRight(newtxt,1,0)	; removes the " from the right of the txt
							relativeCheck := StringUtils.SubStr(newtxt,1,1,0)
							If StringUtils.Contains(relativeCheck,":",0) {	; if the path contains a ":" then it is a relative path
								RLLog.Debug("ConvertRetroCFGKey - " . newtxt . " is a relative path")
								newtxt := StringUtils.TrimLeft(newtxt,1,0)	; removes the : from the left of the txt
								newtxt := AbsoluteFromRelative(emuPath, "." . newtxt)	; convert relative to absolute
							}
							If StringUtils.Contains(newtxt,"/",0)
								newtxt := StringUtils.Replace(newtxt,"/","\",1,,0)	; replaces all forward slashes with backslashes
						} Else If (direction = "write")
						{	newtxt := """" . txt . """"	; wraps the txt with ""
							If StringUtils.Contains(newtxt,"\\",0)
								newtxt := StringUtils.Replace(newtxt,"\","/",1,,0)	; replaces all backslashes with forward slashes
						} Else
							ScriptError("Not a valid use of ConvertRetroCFGKey. Only ""read"" or ""write"" are supported.")
						RLLog.Debug("ConvertRetroCFGKey - Converted " . txt . " to " . newtxt)
						Return newtxt
					}

					MultiGame:
						KeyUtils.SetKeyDelay(100)
						emuPrimaryWindow.Activate()
						KeyUtils.Send("{" . ejectToggleKey . " down}{" . ejectToggleKey . " up}")	; eject disc in Retroarch
						If (!mgLastRomIndex) {
							mgLastRomIndex := mgRomIndex
						}
						selectedRomIndex := 0
						selectedRomIndex := StringUtils.TrimLeft(selectedRomNum, StringUtils.StringLength(mgType,0))

						Loop % mgMaxIndex
						{
							If (m3uRomIndex[A_index] = mgLastRomIndex) {
								tempLastRomIndex := A_index
								RLLog.Debug("Module - Last index: " . tempLastRomIndex)
							}
							If (m3uRomIndex[A_index] = selectedRomIndex) {
								tempSelectedRomIndex := A_index
								RLLog.Debug("Module - Selected index: " . tempSelectedRomIndex)
							}
						}

						mgNewIndex := tempLastRomIndex - tempSelectedRomIndex

						If (mgNewIndex < 0) {
							mgNewIndex := mgNewIndex * -1
							Loop % mgNewIndex
							{
								RLLog.Debug("Module - Sending the next disk key: " . nextDiskKey)
								KeyUtils.Send("{" . nextDiskKey . " down}{" . nextDiskKey . " up}")
							}
						} Else If (mgNewIndex > 0) {
							Loop % mgNewIndex
							{
								RLLog.Debug("Module - Sending the previous disk key: " . mgNewIndex)
								KeyUtils.Send("{" . prevDiskKey . " down}{" . prevDiskKey . " up}")
							}
						}

						KeyUtils.Send("{" . ejectToggleKey . " down}{" . ejectToggleKey . " up}")	; close disc in Retroarch
						mgLastRomIndex := selectedRomIndex
					Return

					NetworkConnectedCheck:
						If clientConnected
							multiplayerMenuExit := true
						Else If emuPrimaryWindow.Exist() {
							RLLog.Info("Module - RetroArch session started, closing the MultiPlayer menu")
							multiplayerMenuExit := true
						}
					Return

					CloseProcess:
						FadeOutStart()
						emuPrimaryWindow.Close()
					Return

21:23:24:068 | RL |      INFO  | +0     | BuildScript - Loaded Pause scripts
21:23:24:068 | RL |      INFO  | +0     | BuildScript - Loaded Multi-Player scripts
21:23:24:068 | RL |      INFO  | +0     | BuildScript - Loaded Statistics.ahk script
21:23:24:068 | RL |      INFO  | +0     | BuildScript - "D:\FrontEnds\RocketLauncher\Lib\User Functions\Global.ahk" not found
21:23:24:068 | RL |      INFO  | +0     | BuildScript - "D:\FrontEnds\RocketLauncher\Lib\User Functions\Sega Genesis.ahk" not found
21:23:24:068 | RL |      INFO  | +0     | BuildScript - "D:\FrontEnds\RocketLauncher\Lib\User Functions\Emulators\RetroArch.ahk" not found
21:23:24:068 | RL |      INFO  | +0     | BuildScript - "D:\FrontEnds\RocketLauncher\Lib\User Functions\Sega Genesis\Emulators\RetroArch.ahk" not found
21:23:24:068 | RL |      INFO  | +0     | BuildScript - "D:\FrontEnds\RocketLauncher\Lib\User Functions\Sega Genesis\Adventures of Batman & Robin, The (USA).ahk" not found
21:23:24:068 | RL |      INFO  | +0     | BuildScript - Finished injecting functions into module
21:23:24:068 | RL |      INFO  | +0     | Main - Module is built
21:23:24:068 | RL |      INFO  | +0     | CheckFile - Checking if D:\FrontEnds\RocketLauncher\AutoHotkey.dll exists
21:23:24:078 | RL |      INFO  | +16    | Main - Hiding taskbar
21:23:24:190 | RL |      INFO  | +109   | Main - Running module
 

pofo14

Member
OK - so I resolved this issue, but there is maybe something else I am missing. I had setup RL the pause and exit functions in RL to use buttons on the Xbox 360 controller, ~4joy18 is an example you see in the log. Once I removed these key bindings it all worked as expected.

So it looks like it won't load up until it detects this controller?

Is there some configuration setting I am missing to be able to support entering Pause and Exiting the Emulator with the Xbox 360 controller, but not requiring it to be "on and paired" every time?

I am thinking this is where I would leverage JoyToKey - and map these joystick buttons to the key presses. I haven't used it in a long while - but assume that would be something to try?

Code:
12:25:24:851 | RL |      INFO  | +N/A   | Main - RocketLauncher v1.2.0.1 (www.rlauncher.com)
12:25:25:023 | RL |   WARNING  | +171   | Main - Logging level is debug or higher and will cause slowdowns to RocketLauncher's performance. When troubleshooting is finished, please lower logging level to restore proper performance.
12:25:25:569 | RL |     DEBUG  | +547   | Registry.Read - Reading from Registry : RootKey=HKEY_LOCAL_MACHINE, SubKey=System\CurrentControlSet\Control\Windows, ValueName=ErrorMode,RegistryVersion=32
12:25:25:569 | RL |     DEBUG  | +0     | Registry.Read - Registry Read finished, returning 0
12:25:25:569 | RL |      INFO  | +0     | Main - System Specs:
					RocketLauncher Dir: D:\FrontEnds\RocketLauncher
					RocketLauncher is: 32-bit
					OS: Microsoft Windows 10 Home
					SKU: Windows 8
					Total Memory: 8142.93 MB
					Free Memory: 4165.56 MB
					Used Memory: 3977.371 MB
					SystemType: 64-bit
					Physical Processors: 1
					Logical Processors: 4
					GPU 1 Name: NVIDIA GeForce GTX 660
					GPU 1 RAM: -2048.00 MB
					GPU 1 Driver Version: 26.21.14.4575
					Sound 1 Device: High Definition Audio Device
					Sound 1 Status: Enabled
					Sound 2 Device: NVIDIA High Definition Audio
					Sound 2 Status: Enabled
					Sound 3 Device: NVIDIA Virtual Audio Device (Wave Extensible) (WDM)
					Sound 3 Status: Enabled
					OS Language: English_United_States
					System Locale: en-US
					Formats Locale: en-US
					Windows UI Language: en-US
					Text Encoding: Windows-1252
					OS Admin Status: No
					RL Compatibility Flags:
					Latest .Net Version: v4.0.30319
					Monitor #1 (\\.\DISPLAY1): 1366x768 (1366x728 work) [32bit] [59hz] [Landscape]  (Primary)
					Current AHK Desktop Width: 1366
					Current AHK Desktop Height: 768
					Monitor #1 DPI: 100
					ErrorMode: 0
					AutoHotkey Path: C:\Program Files\AutoHotkey\AutoHotkey.exe
					AHK Version: 1.1.13.00
					Unicode: No
12:25:25:616 | RL |      INFO  | +47    | CheckFile - Checking if D:\FrontEnds\RocketLauncher\RocketLauncher.exe exists
12:25:25:632 | RL |     DEBUG  | +16    | CheckFile - Attributes:
					FileDescription         	RocketLauncher
					FileVersion             	1.2.0.1
					LegalCopyright          	�2016 RocketLauncher
					ProductName             	djvj's one swell guy!
					ProductVersion          	1.2.0.1
					CompanyName             	Your favorite Front End companion! Visit us @ www.rlauncher.com
					File Size:			2195456 bytes
					Created:			1/10/2019 - 1:08:46 AM
					Modified:			1/19/2017 - 9:21:13 PM
12:25:25:632 | RL |      INFO  | +0     | Main - Raw CLI received: "-s Arcade -r 10yard85 -f D:\FrontEnds\LaunchBox\BigBox.exe -p LaunchBox -c 1 -o 1"
12:25:25:648 | RL |     TRACE  | +15    | File.__New - Creating new file object of: "D:\FrontEnds\RocketLauncher\Module Extensions\RocketLauncher.dll"
12:25:25:648 | RL |      INFO  | +0     | File.CheckFile - Checking if "D:\FrontEnds\RocketLauncher\Module Extensions\RocketLauncher.dll" exists
12:25:25:663 | RL |     TRACE  | +16    | File.Exist - This file exists: D:\FrontEnds\RocketLauncher\Module Extensions\RocketLauncher.dll
12:25:25:663 | RL |     DEBUG  | +0     | File.CheckFile - Attributes:
					FileDescription         	RocketLauncher Utils
					FileVersion             	1.1.0.0
					InternalName            	RocketLauncher.dll
					LegalCopyright          	Copyright � RocketLauncher 2013-2016
					OriginalFilename        	RocketLauncher.dll
					ProductName             	RocketLauncher
					ProductVersion          	1.1.0.0
					File Size:			81408 bytes
					Created:			1/10/2019 - 4:34:47 PM
					Modified:			1/19/2017 - 9:21:12 PM
12:25:25:679 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Extension: D:\FrontEnds\RocketLauncher\Module Extensions\Array.ahk
12:25:25:694 | RL |     DEBUG  | +15    | CheckFile - Attributes:
					File Size:			4926 bytes
					Created:			1/10/2019 - 4:34:40 PM
					Modified:			2/1/2017 - 9:10:01 PM
12:25:25:710 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Module Extensions\BinHexRW.ahk
12:25:25:726 | RL |     DEBUG  | +16    | CheckFile - Attributes:
					File Size:			5112 bytes
					Created:			1/10/2019 - 4:34:40 PM
					Modified:			1/3/2017 - 9:42:33 PM
12:25:25:726 | RL |      INFO  | +0     | CheckFile - Checking if D:\FrontEnds\RocketLauncher\Module Extensions\BlockInput.exe exists
12:25:25:741 | RL |     DEBUG  | +15    | CheckFile - Attributes:
					FileDescription
					FileVersion             	1.1.09.04
					InternalName
					OriginalFilename
					ProductName
					ProductVersion          	1.1.09.04
					File Size:			657920 bytes
					Created:			1/10/2019 - 4:34:41 PM
					Modified:			1/8/2014 - 1:00:55 AM
12:25:25:757 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Extension: D:\FrontEnds\RocketLauncher\Module Extensions\CLR_L.ahk | vInterop
12:25:25:757 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			5503 bytes
					Created:			1/10/2019 - 4:34:42 PM
					Modified:			1/19/2017 - 9:21:06 PM
12:25:25:788 | RL |      INFO  | +31    | CRC Check - CRC matches, this is an official unedited Extension: D:\FrontEnds\RocketLauncher\Module Extensions\Control_AniGif.ahk | vAniGif.ahk
12:25:25:788 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			5716 bytes
					Created:			1/10/2019 - 4:34:42 PM
					Modified:			1/8/2014 - 1:00:55 AM
12:25:25:804 | RL |     ERROR  | +16    | CRC Check - No CRC defined on the header for: D:\FrontEnds\RocketLauncher\Module Extensions\gdip.ahk
12:25:25:819 | RL |     DEBUG  | +15    | CheckFile - Attributes:
					File Size:			88789 bytes
					Created:			1/10/2019 - 4:34:43 PM
					Modified:			1/8/2014 - 1:00:55 AM
12:25:25:835 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Module Extensions\gdip_alt.ahk
12:25:25:851 | RL |     DEBUG  | +16    | CheckFile - Attributes:
					File Size:			5955 bytes
					Created:			1/10/2019 - 4:34:43 PM
					Modified:			1/3/2017 - 9:42:47 PM
12:25:25:851 | RL |      INFO  | +0     | CheckFile - Checking if D:\FrontEnds\RocketLauncher\Module Extensions\gsdll32.dll exists
12:25:25:866 | RL |     DEBUG  | +15    | CheckFile - Attributes:
					File Size:			13090816 bytes
					Created:			1/10/2019 - 4:34:43 PM
					Modified:			6/28/2015 - 10:43:20 PM
12:25:25:866 | RL |      INFO  | +0     | CheckFile - Checking if D:\FrontEnds\RocketLauncher\Module Extensions\itextsharp.dll exists
12:25:25:882 | RL |     DEBUG  | +16    | CheckFile - Attributes:
					FileDescription         	iTextSharp
					FileVersion             	5.4.2.0
					InternalName            	itextsharp.dll
					LegalCopyright          	Copyright (C) 1999-2013 by Bruno Lowagie and Paulo Soares. All Rights Reserved.
					OriginalFilename        	itextsharp.dll
					ProductName             	iTextSharp
					ProductVersion          	5.4.2.0
					CompanyName             	1T3XT BVBA
					File Size:			3743744 bytes
					Created:			1/10/2019 - 4:34:44 PM
					Modified:			1/8/2014 - 1:00:56 AM
12:25:25:898 | RL |      INFO  | +15    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Module Extensions\Java.ahk
12:25:25:913 | RL |     DEBUG  | +16    | CheckFile - Attributes:
					File Size:			7859 bytes
					Created:			1/10/2019 - 4:34:44 PM
					Modified:			1/3/2017 - 9:42:48 PM
12:25:25:929 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Extension: D:\FrontEnds\RocketLauncher\Module Extensions\JSON.ahk
12:25:25:929 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			9227 bytes
					Created:			1/10/2019 - 4:34:45 PM
					Modified:			5/7/2016 - 10:15:21 AM
12:25:25:944 | RL |      INFO  | +15    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Module Extensions\Origin.ahk
12:25:25:960 | RL |     DEBUG  | +16    | CheckFile - Attributes:
					File Size:			4915 bytes
					Created:			1/10/2019 - 4:34:46 PM
					Modified:			1/3/2017 - 9:42:37 PM
12:25:25:976 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Extension: D:\FrontEnds\RocketLauncher\Module Extensions\RegRW64.ahk
12:25:25:991 | RL |     DEBUG  | +15    | CheckFile - Attributes:
					File Size:			6915 bytes
					Created:			1/10/2019 - 4:34:46 PM
					Modified:			6/20/2015 - 4:11:42 PM
12:25:25:007 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Extension: D:\FrontEnds\RocketLauncher\Module Extensions\RIni.ahk | v1.7
12:25:26:007 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			67872 bytes
					Created:			1/10/2019 - 4:34:46 PM
					Modified:			1/3/2017 - 9:42:36 PM
12:25:26:007 | RL |      INFO  | +0     | CheckFile - Checking if D:\FrontEnds\RocketLauncher\Module Extensions\SevenZipSharp.dll exists
12:25:26:023 | RL |     DEBUG  | +15    | CheckFile - Attributes:
					FileDescription         	SevenZipSharp
					FileVersion             	0.64.5717.6837
					InternalName            	SevenZipSharp.dll
					LegalCopyright          	Copyright (C) Markovtsev Vadim 2009, 2010, licenced under LGPLv3
					OriginalFilename        	SevenZipSharp.dll
					ProductName             	SevenZipSharp
					ProductVersion          	0.64.5717.6837
					CompanyName             	Markovtsev Vadim
					File Size:			167424 bytes
					Created:			1/10/2019 - 4:34:47 PM
					Modified:			11/9/2015 - 8:49:47 PM
12:25:26:038 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Module Extensions\Steam.ahk
12:25:26:054 | RL |     DEBUG  | +16    | CheckFile - Attributes:
					File Size:			5517 bytes
					Created:			1/10/2019 - 4:34:47 PM
					Modified:			1/3/2017 - 9:42:55 PM
12:25:26:069 | RL |      INFO  | +15    | CRC Check - CRC matches, this is an official unedited Extension: D:\FrontEnds\RocketLauncher\Module Extensions\VA.ahk
12:25:26:085 | RL |     DEBUG  | +16    | CheckFile - Attributes:
					File Size:			34688 bytes
					Created:			1/10/2019 - 4:34:48 PM
					Modified:			1/8/2014 - 1:00:55 AM
12:25:26:101 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Module Extensions\VA_Extension.ahk
12:25:26:101 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			3862 bytes
					Created:			1/10/2019 - 4:34:48 PM
					Modified:			1/3/2017 - 9:42:44 PM
12:25:26:116 | RL |      INFO  | +15    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\7z.ahk
12:25:26:132 | RL |     DEBUG  | +16    | CheckFile - Attributes:
					File Size:			33916 bytes
					Created:			1/10/2019 - 1:09:07 AM
					Modified:			1/19/2017 - 9:21:07 PM
12:25:26:148 | RL |      INFO  | +15    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Bezel.ahk
12:25:26:163 | RL |     DEBUG  | +16    | CheckFile - Attributes:
					File Size:			121257 bytes
					Created:			1/10/2019 - 1:09:07 AM
					Modified:			1/19/2017 - 9:21:07 PM
12:25:26:179 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Fade.ahk
12:25:26:179 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			39707 bytes
					Created:			1/10/2019 - 1:09:07 AM
					Modified:			1/19/2017 - 9:21:08 PM
12:25:26:194 | RL |      INFO  | +15    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Fade Init.ahk
12:25:26:210 | RL |     DEBUG  | +16    | CheckFile - Attributes:
					File Size:			1140 bytes
					Created:			1/10/2019 - 1:09:07 AM
					Modified:			1/3/2017 - 9:42:50 PM
12:25:26:226 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Fade Animations.ahk
12:25:26:226 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			77961 bytes
					Created:			1/10/2019 - 1:09:07 AM
					Modified:			1/3/2017 - 9:42:33 PM
12:25:26:241 | RL |      INFO  | +15    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Keymapper.ahk
12:25:26:257 | RL |     DEBUG  | +16    | CheckFile - Attributes:
					File Size:			33682 bytes
					Created:			1/10/2019 - 1:09:07 AM
					Modified:			1/3/2017 - 9:42:45 PM
12:25:26:273 | RL |      INFO  | +15    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Keymapper Init.ahk
12:25:26:288 | RL |     DEBUG  | +16    | CheckFile - Attributes:
					File Size:			3966 bytes
					Created:			1/10/2019 - 1:09:07 AM
					Modified:			1/3/2017 - 9:42:31 PM
12:25:26:304 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\MultiGame.ahk
12:25:26:304 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			41583 bytes
					Created:			1/10/2019 - 1:09:07 AM
					Modified:			1/3/2017 - 9:42:30 PM
12:25:26:319 | RL |      INFO  | +15    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\MultiGame Init.ahk
12:25:26:335 | RL |     DEBUG  | +16    | CheckFile - Attributes:
					File Size:			169 bytes
					Created:			1/10/2019 - 1:09:07 AM
					Modified:			1/3/2017 - 9:42:34 PM
12:25:26:351 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\MultiPlayer.ahk
12:25:26:351 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			67277 bytes
					Created:			1/10/2019 - 1:09:07 AM
					Modified:			1/3/2017 - 9:42:57 PM
12:25:26:382 | RL |      INFO  | +31    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Pause.ahk
12:25:26:382 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			408415 bytes
					Created:			1/10/2019 - 1:09:07 AM
					Modified:			1/26/2017 - 9:32:52 PM
12:25:26:398 | RL |      INFO  | +15    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Pause Init.ahk
12:25:26:413 | RL |     DEBUG  | +16    | CheckFile - Attributes:
					File Size:			563 bytes
					Created:			1/10/2019 - 1:09:07 AM
					Modified:			1/3/2017 - 9:42:51 PM
12:25:26:429 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Password.ahk
12:25:26:444 | RL |     DEBUG  | +15    | CheckFile - Attributes:
					File Size:			10131 bytes
					Created:			1/10/2019 - 1:09:07 AM
					Modified:			1/3/2017 - 9:42:38 PM
12:25:26:460 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Classes\DLL\RocketLauncher.ahk
12:25:26:460 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			31509 bytes
					Created:			1/10/2019 - 1:09:08 AM
					Modified:			1/19/2017 - 9:21:11 PM
12:25:26:476 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Classes\Log\Logger.ahk
12:25:26:491 | RL |     DEBUG  | +15    | CheckFile - Attributes:
					File Size:			3558 bytes
					Created:			1/10/2019 - 1:09:08 AM
					Modified:			1/3/2017 - 9:42:51 PM
12:25:26:507 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Classes\Util\MiscUtils.ahk
12:25:26:523 | RL |     DEBUG  | +15    | CheckFile - Attributes:
					File Size:			6709 bytes
					Created:			1/10/2019 - 1:09:08 AM
					Modified:			1/19/2017 - 9:21:06 PM
12:25:26:538 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Classes\Util\Environment\Registry.ahk
12:25:26:538 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			2084 bytes
					Created:			1/10/2019 - 1:09:08 AM
					Modified:			2/1/2017 - 9:09:59 PM
12:25:26:569 | RL |      INFO  | +31    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Classes\Util\Environment\ArrayUtils.ahk
12:25:26:569 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			306 bytes
					Created:			1/10/2019 - 1:09:08 AM
					Modified:			1/19/2017 - 9:21:06 PM
12:25:26:585 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Classes\Util\Environment\LocaleUtils.ahk
12:25:26:601 | RL |     DEBUG  | +16    | CheckFile - Attributes:
					File Size:			2104 bytes
					Created:			1/10/2019 - 1:09:08 AM
					Modified:			1/19/2017 - 9:21:12 PM
12:25:26:616 | RL |      INFO  | +15    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Classes\Util\Environment\StringUtils.ahk
12:25:26:632 | RL |     DEBUG  | +16    | CheckFile - Attributes:
					File Size:			7754 bytes
					Created:			1/10/2019 - 1:09:08 AM
					Modified:			1/19/2017 - 9:21:11 PM
12:25:26:648 | RL |      INFO  | +15    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Classes\Util\Environment\TimerUtils.ahk
12:25:26:648 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			2948 bytes
					Created:			1/10/2019 - 1:09:08 AM
					Modified:			1/3/2017 - 9:42:34 PM
12:25:26:679 | RL |      INFO  | +32    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Classes\Util\File\ArchiveFile.ahk
12:25:26:679 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			346 bytes
					Created:			1/10/2019 - 1:09:08 AM
					Modified:			1/19/2017 - 9:21:10 PM
12:25:26:694 | RL |      INFO  | +15    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Classes\Util\File\DemulShooter.ahk
12:25:26:710 | RL |     DEBUG  | +16    | CheckFile - Attributes:
					File Size:			786 bytes
					Created:			1/10/2019 - 1:09:08 AM
					Modified:			1/19/2017 - 9:21:08 PM
12:25:26:726 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Classes\Util\File\Emulator.ahk
12:25:26:726 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			1231 bytes
					Created:			1/10/2019 - 1:09:08 AM
					Modified:			1/3/2017 - 9:42:54 PM
12:25:26:757 | RL |      INFO  | +31    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Classes\Util\File\File.ahk
12:25:26:757 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			9522 bytes
					Created:			1/10/2019 - 1:09:08 AM
					Modified:			1/19/2017 - 9:21:12 PM
12:25:26:773 | RL |      INFO  | +15    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Classes\Util\File\FileUtils.ahk
12:25:26:788 | RL |     DEBUG  | +16    | CheckFile - Attributes:
					File Size:			339 bytes
					Created:			1/10/2019 - 1:09:08 AM
					Modified:			1/19/2017 - 9:21:06 PM
12:25:26:804 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Classes\Util\File\Folder.ahk
12:25:26:819 | RL |     DEBUG  | +15    | CheckFile - Attributes:
					File Size:			643 bytes
					Created:			1/10/2019 - 1:09:08 AM
					Modified:			1/3/2017 - 9:42:39 PM
12:25:26:835 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Classes\Util\File\IniFile.ahk
12:25:26:835 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			4364 bytes
					Created:			1/10/2019 - 1:09:08 AM
					Modified:			1/3/2017 - 9:42:32 PM
12:25:26:851 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Classes\Util\File\Process.ahk
12:25:26:866 | RL |     DEBUG  | +15    | CheckFile - Attributes:
					File Size:			9711 bytes
					Created:			1/10/2019 - 1:09:08 AM
					Modified:			1/19/2017 - 9:21:11 PM
12:25:26:882 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Classes\Util\File\PropertiesFile.ahk
12:25:26:898 | RL |     DEBUG  | +15    | CheckFile - Attributes:
					File Size:			4218 bytes
					Created:			1/10/2019 - 1:09:08 AM
					Modified:			1/19/2017 - 9:21:07 PM
12:25:26:913 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Classes\Util\File\RIniFile.ahk
12:25:26:913 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			3898 bytes
					Created:			1/10/2019 - 1:09:09 AM
					Modified:			1/3/2017 - 9:42:59 PM
12:25:26:929 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Classes\Util\File\XMLFile.ahk
12:25:26:944 | RL |     DEBUG  | +15    | CheckFile - Attributes:
					File Size:			331 bytes
					Created:			1/10/2019 - 1:09:09 AM
					Modified:			1/19/2017 - 9:21:06 PM
12:25:26:960 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Classes\Util\Input\KeyUtils.ahk
12:25:26:976 | RL |     DEBUG  | +16    | CheckFile - Attributes:
					File Size:			5426 bytes
					Created:			1/10/2019 - 1:09:09 AM
					Modified:			1/3/2017 - 9:42:52 PM
12:25:26:991 | RL |      INFO  | +15    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Classes\Util\UI\Control.ahk
12:25:26:991 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			4603 bytes
					Created:			1/10/2019 - 1:09:09 AM
					Modified:			1/3/2017 - 9:42:34 PM
12:25:26:007 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Classes\Util\UI\Window.ahk
12:25:27:023 | RL |     DEBUG  | +15    | CheckFile - Attributes:
					File Size:			24655 bytes
					Created:			1/10/2019 - 1:09:09 AM
					Modified:			2/1/2017 - 9:09:59 PM
12:25:27:038 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Classes\Util\UI\WindowTitle.ahk
12:25:27:054 | RL |     DEBUG  | +16    | CheckFile - Attributes:
					File Size:			1171 bytes
					Created:			1/10/2019 - 1:09:09 AM
					Modified:			1/3/2017 - 9:42:36 PM
12:25:27:069 | RL |      INFO  | +15    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Rom Mapping Launch Menu.ahk
12:25:27:069 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			72279 bytes
					Created:			1/10/2019 - 1:09:07 AM
					Modified:			1/3/2017 - 9:42:55 PM
12:25:27:085 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Shader.ahk
12:25:27:101 | RL |     DEBUG  | +16    | CheckFile - Attributes:
					File Size:			4183 bytes
					Created:			1/10/2019 - 1:09:07 AM
					Modified:			1/3/2017 - 9:42:49 PM
12:25:27:116 | RL |      INFO  | +15    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Shader Init.ahk
12:25:27:116 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			412 bytes
					Created:			1/10/2019 - 1:09:07 AM
					Modified:			1/3/2017 - 9:42:46 PM
12:25:27:148 | RL |      INFO  | +31    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Shared.ahk
12:25:27:148 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			173248 bytes
					Created:			1/10/2019 - 1:09:07 AM
					Modified:			1/19/2017 - 9:21:10 PM
12:25:27:163 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Statistics.ahk
12:25:27:179 | RL |     DEBUG  | +16    | CheckFile - Attributes:
					File Size:			27008 bytes
					Created:			1/10/2019 - 1:09:07 AM
					Modified:			1/3/2017 - 9:42:39 PM
12:25:27:194 | RL |      INFO  | +15    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Statistics Init.ahk
12:25:27:194 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			43 bytes
					Created:			1/10/2019 - 1:09:07 AM
					Modified:			1/3/2017 - 9:42:46 PM
12:25:27:210 | RL |      INFO  | +16    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\Virtual Drive.ahk
12:25:27:226 | RL |     DEBUG  | +16    | CheckFile - Attributes:
					File Size:			20294 bytes
					Created:			1/10/2019 - 1:09:08 AM
					Modified:			1/3/2017 - 9:42:46 PM
12:25:27:241 | RL |      INFO  | +15    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\XHotkey.ahk
12:25:27:257 | RL |     DEBUG  | +16    | CheckFile - Attributes:
					File Size:			26615 bytes
					Created:			1/10/2019 - 1:09:08 AM
					Modified:			1/3/2017 - 9:42:43 PM
12:25:27:273 | RL |      INFO  | +15    | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Lib\XHotkey Init.ahk
12:25:27:273 | RL |     DEBUG  | +0     | CheckFile - Attributes:
					File Size:			1073 bytes
					Created:			1/10/2019 - 1:09:08 AM
					Modified:			1/3/2017 - 9:42:34 PM
12:25:27:273 | RL |     DEBUG  | +0     | Main - Received this dbName with no path via CLI: "10yard85"
12:25:27:273 | RL |     DEBUG  | +0     | Main - dbName: 10yard85
12:25:27:288 | RL |      INFO  | +16    | Main - Loading Front End Plugin: "LaunchBox"
12:25:27:288 | RL |      INFO  | +0     | CRC Check - CRC matches, this is an official unedited Library: D:\FrontEnds\RocketLauncher\Plugins\LaunchBox.plugin
12:25:27:304 | RL |     DEBUG  | +16    | CheckFile - Attributes:
					File Size:			14956 bytes
					Created:			1/10/2019 - 4:35:10 PM
					Modified:			1/19/2017 - 9:21:05 PM
12:25:27:304 | RL |     TRACE  | +0     | Process.__New - Creating new process object for: "D:\FrontEnds\LaunchBox\BigBox.exe"
12:25:27:304 | RL |     TRACE  | +0     | File.__New - Creating new file object of: "D:\FrontEnds\LaunchBox\BigBox.exe"
12:25:27:319 | RL |      INFO  | +15    | Main - RocketLauncher received "Arcade" and "10yard85"
12:25:27:319 | RL |      INFO  | +0     | Main - Found a "Games Options.ini" file, loading it into memory.
12:25:27:335 | RL |      INFO  | +16    | Main - 10yard85 is using the default emulator: MAME
12:25:27:335 | RL |      INFO  | +0     | Main - Checking for a [MAME] section in D:\FrontEnds\RocketLauncher\Settings\Arcade\Emulators.ini
12:25:27:335 | RL |      INFO  | +0     | Main - Checking for a [MAME] section in D:\FrontEnds\RocketLauncher\Settings\Global Emulators.ini
12:25:27:351 | RL |      INFO  | +16    | Main - Found [MAME] in D:\FrontEnds\RocketLauncher\Settings\Global Emulators.ini
12:25:27:366 | RL |      INFO  | +15    | CheckFile - Checking if D:\FrontEnds\RocketLauncher\Modules\MAME\MAME.ahk exists
12:25:27:382 | RL |     DEBUG  | +16    | CheckFile - Attributes:
					File Size:			79800 bytes
					Created:			1/10/2019 - 4:35:01 PM
					Modified:			4/28/2020 - 8:41:34 PM
12:25:27:398 | RL |      INFO  | +15    | Main - CRC Check - CRC matches, this is an official unedited module.
12:25:27:398 | RL |      INFO  | +0     | Main - 10yard85 will use module: D:\FrontEnds\RocketLauncher\Modules\MAME\MAME.ahk
12:25:27:507 | RL |      INFO  | +110   | Main - Using standard method with "Rom Extension" SkipChecks or without any SkipChecks.
12:25:27:538 | RL |      INFO  | +31    | CheckFile - Checking if D:\Emulators\MAME .205\mame64.exe exists
12:25:27:554 | RL |     DEBUG  | +16    | CheckFile - Attributes:
					FileDescription         	MAME
					FileVersion             	0, 205, 0, 0
					InternalName            	MAME
					LegalCopyright          	Copyright Nicola Salmoria and the MAME team
					OriginalFilename        	MAME
					ProductName             	MAME
					ProductVersion          	0.205
					CompanyName             	MAME Team
					File Size:			392018047 bytes
					Created:			1/14/2019 - 1:16:02 PM
					Modified:			1/14/2019 - 1:44:34 AM
12:25:27:554 | RL |      INFO  | +0     | Main - INI Keys read
12:25:27:569 | RL |      INFO  | +15    | CheckFile - Checking if D:\FrontEnds\RocketLauncher\Module Extensions\7z.exe exists
12:25:27:585 | RL |     DEBUG  | +16    | CheckFile - Attributes:
					FileDescription         	7-Zip Console
					FileVersion             	15.06 beta
					InternalName            	7z
					LegalCopyright          	Copyright (c) 1999-2015 Igor Pavlov
					OriginalFilename        	7z.exe
					ProductName             	7-Zip
					ProductVersion          	15.06 beta
					CompanyName             	Igor Pavlov
					File Size:			262144 bytes
					Created:			1/10/2019 - 4:34:40 PM
					Modified:			11/9/2015 - 8:49:37 PM
12:25:27:585 | RL |      INFO  | +0     | CheckFile - Checking if D:\FrontEnds\RocketLauncher\Module Extensions\7z.dll exists
12:25:27:601 | RL |     DEBUG  | +16    | CheckFile - Attributes:
					FileDescription         	7z Plugin
					FileVersion             	15.06 beta
					InternalName            	7z
					LegalCopyright          	Copyright (c) 1999-2015 Igor Pavlov
					OriginalFilename        	7z.dll
					ProductName             	7-Zip
					ProductVersion          	15.06 beta
					CompanyName             	Igor Pavlov
					File Size:			1012224 bytes
					Created:			1/10/2019 - 4:34:40 PM
					Modified:			11/9/2015 - 8:49:36 PM
12:25:27:616 | RL |      INFO  | +15    | Main - "10yard85" does not qualify for MultiGame. Only roms with any of these strings in their name are acceptable: \(Disc|\(Disk|\(Cart|\(Tape|\(Cassette|\(Part|\(Side
12:25:27:632 | RL |      INFO  | +16    | CheckPaths - Started
12:25:27:632 | RL |      INFO  | +0     | CheckPaths - Looking for rom: D:\Roms\MAME 0.205\10yard85.zip
12:25:27:632 | RL |      INFO  | +0     | CheckPaths - Found rom: D:\Roms\MAME 0.205\10yard85.zip
12:25:27:632 | RL |     DEBUG  | +0     | CheckPaths - Current romName: 10yard85
12:25:27:632 | RL |     DEBUG  | +0     | CheckPaths - Current romPath: D:\Roms\MAME 0.205
12:25:27:632 | RL |     DEBUG  | +0     | CheckPaths - Current romExtension: .zip
12:25:27:648 | RL |      INFO  | +15    | CheckPaths - Ended
12:25:27:648 | RL |      INFO  | +0     | BuildScript - User Variables:
					;----------------------------------------------------------------------------
					; INJECTED VARIABLES
					;----------------------------------------------------------------------------

					#NoTrayIcon
					#InstallKeybdHook
					MiscUtils.DetectHiddenWindows("On")
					SetTitleMatchMode, 2
					SendMode, Event
					Global RLLog
					Global RLObject
					0 := "12"
					rlPath := "D:\FrontEnds\RocketLauncher"
					pluginPath := "D:\FrontEnds\RocketLauncher\Plugins"
					pluginName := "LaunchBox"
					pluginExt := ".plugin"
					contextOnExit := "1"
					rlMode := ""
					rlTitle := "RocketLauncher"
					rlVersion := "1.2.0.1"
					rlAuthor := "djvj"
					rlURL := "www.rlauncher.com"
					langFile := "D:\FrontEnds\RocketLauncher\Data\Language\Localization.ini"
					primMonitor := "1"
					frontendPID := ""
					frontendPath := "D:\FrontEnds\LaunchBox"
					frontendExe := "BigBox.exe"
					frontendExt := "exe"
					frontendName := "BigBox"
					frontendDrive := "D"
					exitEmulatorKey := "LControl|4joy18"
					restoreFE := "false"
					exitScriptKey := "~8 & ~9"
					toggleCursorKey := "D:H:6&7"
					emuFullPath := "D:\Emulators\MAME .205\mame64.exe"
					emuPath := "D:\Emulators\MAME .205"
					emuName := "MAME"
					emuExt := "exe"
					baseRomPath := ""
					romPath := "D:\Roms\MAME 0.205"
					romPathFromIni := "D:\Roms\MAME 0.205"
					romExtension := ".zip"
					romExtensionOrig := ".zip"
					romExtensions := "zip|7z"
					executable := "mame64.exe"
					systemDbName := "Arcade"
					systemName := "Arcade"
					dbPath := ""
					dbName := "10yard85"
					dbExt := ""
					romFoundByExt := ""
					romName := "10yard85"
					romMapPath := ""
					romMappingEnabled := "false"
					romMappingLaunchMenuEnabled := "false"
					romMappingFirstMatchingExt := "false"
					romMappingShowAllRomsInArchive := "true"
					romMappingNumberOfGamesByScreen := "7"
					romMappingHideParent := "false"
					romMappingMenuWidth := "300"
					romMappingMenuMargin := "50"
					romMappingTextFont := "Bebas Neue"
					romMappingTextOptions := "cFFFFFFFF r4 s40 Bold"
					romMappingDisabledTextColor := "ff888888"
					romMappingTextSizeDifference := "5"
					romMappingTextMargin := "10"
					romMappingTitleTextFont := "Bebas Neue"
					romMappingTitleTextOptions := "cFFFFFFFF r4 s60 Bold"
					romMappingTitle2TextFont := "Bebas Neue"
					romMappingTitle2TextOptions := "cFFFFFFFF r4 s15 Bold"
					romMappingGameInfoTextFont := "Bebas Neue"
					romMappingGameInfoTextOptions := "cFFFFFFFF r4 s15 Regular"
					romMappingGameNameTextFont := "Bebas Neue"
					romMappingGameNameTextOptions := "cFFFFFFFF r4 s40 Regular"
					romMappingBackgroundBrush := "aa000000"
					romMappingColumnBrush := "33000000"
					romMappingButtonBrush1 := "6f000000"
					romMappingButtonBrush2 := "33000000"
					romMappingBackgroundAlign := "Stretch and Lose Aspect"
					romMappingMenuFlagWidth := "40"
					romMappingMenuFlagSeparation := "5"
					romMappingDefaultMenuList := "FullList"
					romMappingSingleFilteredRomAutomaticLaunch := "false"
					altArchiveNameOnly := ""
					altRomNameOnly := ""
					altArchiveAndRomName := ""
					altArchiveAndManyRomNames := ""
					altRomNamesOnly := ""
					romMapScenario := ""
					skipchecks := "false"
					romMatchExt := "true"
					blockInputTime := "0"
					blockInputFile := "D:\FrontEnds\RocketLauncher\Module Extensions\BlockInput.exe"
					errorLevelReporting := "false"
					lockLaunch := "false"
					lockLaunchGame := ""
					screenRotationAngle := "0"
					screenRotationAngleGame := ""
					setResolution := ""
					logFile := ""
					logLabel := ["    INFO"," WARNING","   ERROR","   DEBUG","   TRACE"]
					logLevel := "10"
					logShowDebugConsole := "false"
					logShowCommandWindow := "false"
					logCommandWindow := "false"
					logIncludeModule := "true"
					logIncludeFileProperties := "true"
					logIncludeDLLLogs := "false"
					errorSounds := "true"
					rlDebugConsoleStdout := ""
					sysLang := "English_United_States"
					sysType := "64-bit"
					broadcastWindowTitle := ""
					navUpKey := "Up"
					navDownKey := "Down"
					navLeftKey := "Left"
					navRightKey := "Right"
					navSelectKey := "Enter|A"
					navP2UpKey := "G"
					navP2DownKey := "B"
					navP2LeftKey := "H"
					navP2RightKey := "N"
					navP2SelectKey := "J"
					originalWidth := "1366"
					originalHeight := "768"
					vdEnabled := "true"
					vdFullPath := "C:\Program Files\DAEMON Tools Lite\DTAgent.exe"
					vdUseSCSI := "true"
					vdDriveLetter := "L"
					vdDriveLetterScsi := ""
					vdAddDrive := "true"
					demulShooterPath := ""
					servoStikEnabled := "false"
					servoStikExitMode := "false"
					ledblinkyEnabled := "false"
					ledblinkySystemName := ""
					ledblinkyFullPath := ""
					ledblinkyProfilePath := "D:\FrontEnds\RocketLauncher\Profiles\LEDBlinky"
					ledblinkyRLProfile := "D:\FrontEnds\RocketLauncher\Profiles\LEDBlinky\RocketLauncher"
					winIPACFullPath := ""
					ultraMapEnabled := "false"
					ultraMapFullPath := ""
					emuIdleShutdown := "0"
					launchPasswordHash := "UpUpDownDownLeftRightLeftRight"
					cursorSize := ""
					hideCursor := "true"
					hideEmu := "true"
					hideFE := "true"
					suspendFE := "false"
					fadeIn := "true"
					fadeInDuration := "500"
					fadeInTransitionAnimation := "DefaultAnimateFadeIn"
					fadeInDelay := "4000"
					fadeInExitDelay := "500"
					fadeOutExitDelay := "500"
					fadeOut := "true"
					fadeOutExtraScreen := "false"
					fadeOutDuration := "1000"
					fadeOutTransitionAnimation := "DefaultAnimateFadeOut"
					fadeOutDelay := "1000"
					fadeLyrInterpolation := "7"
					fadeMuteEmulator := "false"
					fadeUseBackgrounds := "true"
					fadeClickThrough := "false"
					fadeSounds := "true"
					fade7zProgressMode := "extraction"
					fadeWidthBaseRes := "1920"
					fadeHeightBaseRes := "1080"
					fadeLyr1Color := "FF000000"
					fadeLyr1AlignImage := "Stretch and Lose Aspect"
					fadeLyr2Pos := "Stretch and Lose Aspect"
					fadeLyr2X := "0"
					fadeLyr2Y := "0"
					fadeLyr2W := ""
					fadeLyr2H := ""
					fadeLyr2Adjust := "1"
					fadeLyr2PicPad := "0"
					fadeLyr2Prefix := "Extra Layer 1 - Console"
					fadeLyr3Pos := "Center"
					fadeLyr3X := "450"
					fadeLyr3Y := "450"
					fadeLyr3W := ""
					fadeLyr3H := ""
					fadeLyr3Adjust := "1"
					fadeLyr3PicPad := "0"
					fadeLyr3Speed := "750"
					fadeLyr3Animation := "DefaultFadeAnimation"
					fadeLyr37zAnimation := "DefaultFadeAnimation"
					fadeLyr3Type := "imageandbar"
					fadeLyr3ImgFollow7zProgress := "true"
					fadeLyr3Repeat := "1"
					fadeLyr3BackImageTransparency := "30"
					fadeLyr3StaticPos := "No Alignment"
					fadeLyr3StaticX := "0"
					fadeLyr3StaticY := "820|1575"
					fadeLyr3StaticW := ""
					fadeLyr3StaticH := ""
					fadeLyr3StaticAdjust := "1"
					fadeLyr3StaticPicPad := "0"
					fadeLyr3StaticPrefix := "Info Bar"
					fadeLyr4Adjust := "1"
					fadeLyr4X := "1750|952"
					fadeLyr4Y := "891|1596"
					fadeLyr4W := "233"
					fadeLyr4H := "233"
					fadeLyr4Pos := "Bottom Right Corner"
					fadeLyr4FPS := "70"
					fadeLyr4PicPad := "0"
					fadeTranspGifColor := "FFFFFF"
					fadeBarWindow := "Image"
					fadeBarWindowX := ""
					fadeBarWindowY := ""
					fadeBarWindowW := "909"
					fadeBarWindowH := ""
					fadeBarWindowR := "30"
					fadeBarWindowM := "80"
					fadeBarWindowHatchStyle := "8"
					fadeBar := "7zOnly"
					fadeProgressDuration := "0"
					fadeBarBack := "false"
					fadeBarBackColor := "FF2E9AE6"
					fadeBarH := "43"
					fadeBarR := "5"
					fadeBarColor := "FF59A5FF"
					fadeBarHatchStyle := "22"
					fadeBarPercentageText := "true"
					fadeBarInfoText := "true"
					fadeBarXOffset := "0"
					fadeBarYOffset := "150"
					fadeRomInfoDescription := "filtered text"
					fadeRomInfoSystemName := "image"
					fadeRomInfoYear := "text with label"
					fadeRomInfoDeveloper := "disabled"
					fadeRomInfoPublisher := "image"
					fadeRomInfoGenre := "disabled"
					fadeRomInfoRating := "image"
					fadeRomInfoOrder := "Description|SystemName|Year|Manufacturer|Genre|Rating"
					fadeRomInfoTextPlacement := "User Defined"
					fadeRomInfoTextMargin := "7"
					fadeRomInfoText1Options := "w1600|787 h90 x165 y870|1575 cFFE1E1E1 r4 s90 Left Regular"
					fadeRomInfoText2Options := "w400 x8 y15 cFF555555 r4 s60 Bold"
					fadeRomInfoText3Options := "w310 x165 y960|1665 cFFE1E1E1 r4 s66 Left Regular"
					fadeRomInfoText4Options := "w1305|492 h66 x460 y960|1665 cFFE1E1E1 r4 s66 Left Regular"
					fadeRomInfoText5Options := "cFF555555 r4 s42 Bold"
					fadeRomInfoText6Options := "h135 x15 y885|1590 cFFCFCFCA r4 s120 Regular"
					fadeRomInfoText7Options := "h135 x15 y885|1590 cFFCFCFCA r4 s120 Regular"
					fadeStats_Number_of_Times_Played := "text with label"
					fadeStats_Last_Time_Played := "text with label"
					fadeStats_Average_Time_Played := "text with label"
					fadeStats_Total_Time_Played := "text with label"
					fadeStats_System_Total_Played_Time := "text with label"
					fadeStats_Total_Global_Played_Time := "text with label"
					fadeStatsInfoOrder := "Number_of_Times_Played|Last_Time_Played|Average_Time_Played|Total_Time_Played|System_Total_Played_Time|Total_Global_Played_Time"
					fadeStatsInfoTextPlacement := "topRight"
					fadeStatsInfoTextMargin := "7"
					fadeStatsInfoText1Options := "cFFB4B4B4 r4 s22 Bold"
					fadeStatsInfoText2Options := "cFFB4B4B4 r4 s22 Bold"
					fadeStatsInfoText3Options := "cFFB4B4B4 r4 s22 Bold"
					fadeStatsInfoText4Options := "cFFB4B4B4 r4 s22 Bold"
					fadeStatsInfoText5Options := "cFFB4B4B4 r4 s22 Bold"
					fadeStatsInfoText6Options := "cFFB4B4B4 r4 s22 Bold"
					fadeText1X := "0"
					fadeText1Y := "60"
					fadeText1Options := "cFFB4B4B4 r4 s30 Right Bold"
					fadeText1 := "Loading Game"
					fadeText2X := "0"
					fadeText2Y := "156"
					fadeText2Options := "cFFB4B4B4 r4 s30 Right Bold"
					fadeText2 := "Extraction Complete, Ready"
					fadeText3 := "Loading Game"
					fadeText4 := "Loading Complete"
					fadeFont := "Bebas Neue"
					fadeSystemAndRomLayersOnly := "false"
					fadeExtractionTime := "disabled"
					fadeExtractionTimeTextX := "0"
					fadeExtractionTimeTextY := "0"
					fadeExtractionTimeTextOptions := "cFF555555 r4 s20 Bold"
					fadeInterruptKey := ""
					detectFadeErrorEnabled := "true"
					fadeImgPath := "D:\FrontEnds\RocketLauncher\Media\Fade"
					RLDataPath := "D:\FrontEnds\RocketLauncher\Data"
					RLMediaPath := "D:\FrontEnds\RocketLauncher\Media"
					RLErrSoundPath := "D:\FrontEnds\RocketLauncher\Media\Sounds\Error"
					modulesPath := "D:\FrontEnds\RocketLauncher\Modules"
					moduleFullName := "D:\FrontEnds\RocketLauncher\Modules\MAME\MAME.ahk"
					moduleName := "MAME"
					modulePath := "D:\FrontEnds\RocketLauncher\Modules\MAME"
					moduleExtension := "ahk"
					moduleExtensionsPath := "D:\FrontEnds\RocketLauncher\Module Extensions"
					libPath := "D:\FrontEnds\RocketLauncher\Lib"
					sevenZEnabled := "false"
					sevenZPath := "D:\FrontEnds\RocketLauncher\Module Extensions\7z.exe"
					sevenZDllPath := "D:\FrontEnds\RocketLauncher\Module Extensions\7z.dll"
					sevenZExtractPath := "D:\temp"
					sevenZExtractPathOrig := ""
					sevenZAttachSystemName := "true"
					sevenZDelTemp := "true"
					sevenZFormats := ".zip|.rar|.7z|.lha|.lzh|.gzip|.tar"
					sevenZFormatsNoP := "zip|rar|7z|lha|lzh|gzip|tar"
					sevenZFormatsRegEx := "\.zip|\.rar|\.7z|\.lha|\.lzh|\.gzip|\.tar"
					sevenZGamesToKeep := ""
					sevenZDeletePerSystem := "false"
					sevenZExtensions := "zip|rar|7z|lha|lzh|gzip|tar"
					7zExtractPath := "D:\temp"
					mgEnabled := "false"
					mgKey := "F7"
					mgBackgroundColor := "FF000000"
					mgSidePadding := "0.2"
					mgWidthBaseRes := "1920"
					mgHeightBaseRes := "1080"
					mgYOffset := "500"
					mgFont := "Arial"
					mgText1Options := "x10p y30p w80p Center cBBFFFFFF r4 s100 BoldItalic"
					mgText1Text := "Please select a game"
					mgText2Options := "w96p cFFFFFFFF r4 s50 Center BoldItalic"
					mgText2Offset := "70"
					mgUseSound := "true"
					mgSoundfreq := "300"
					mgExitEffect := "none"
					mgSelectedEffect := "rotate"
					mgUseGameArt := "true"
					mgCandidate := ""
					mgValidTypes := "\(Disc|\(Disk|\(Cart|\(Tape|\(Cassette|\(Part|\(Side"
					mgOnLaunch := "false"
					pauseEnabled := "true"
					pauseKey := "NumpadSub"
					pauseBackToMenuBarKey := "S"
					pauseZoomInKey := "Z"
					pauseZoomOutKey := "X"
					pauseScreenshotKey := "~PrintScreen"
					pauseHiToTextPath := "D:\FrontEnds\RocketLauncher\Module Extensions\HiToText.exe"
					pauseSaveStateKeyCodes := "{F2 down}{F2 up}{a down}{a up}|{F2 down}{F2 up}{b down}{b up}"
					pauseLoadStateKeyCodes := "{F4 down}{F4 up}{a down}{a up}|{F4 down}{F4 up}{b down}{b up}"
					keyboardEncoder := ""
					keyboardEncoderEnabled := "false"
					keymapperEnabled := "true"
					keymapperAHKMethod := "false"
					keymapper := "joytokey"
					xpadderFullPath := "D:\FrontEnds\RocketLauncher\Utilities\Xpadder\xpadder.exe"
					joyToKeyFullPath := "D:\FrontEnds\RocketLauncher\Utilities\JoyToKey\JoyToKey.exe"
					profilePath := "D:\FrontEnds\RocketLauncher\Profiles"
					keymapperProfilePath := "D:\FrontEnds\RocketLauncher\Profiles\joytokey"
					keymapperFrontEndProfileName := "RocketLauncher"
					keymapperFrontEndProfile := "joytokey"
					keymapperRocketLauncherProfileEnabled := "true"
					joyIDsEnabled := "false"
					joyIDsPreferredControllersGlobal := ""
					joyIDsPreferredControllersSystem := "use_global"
					joyIDsPreferredControllersOnExit := ""
					CustomJoyNamesEnabled := "false"
					CustomJoyNames := ""
					rotateMethod := "false"
					FEProfile := "D:\FrontEnds\RocketLauncher\Profiles\joytokey\RocketLauncher"
					defaultProfile := "D:\FrontEnds\RocketLauncher\Profiles\joytokey\_Default"
					systemProfile := "D:\FrontEnds\RocketLauncher\Profiles\joytokey\Arcade"
					xPadderSystemProfile := "D:\FrontEnds\RocketLauncher\Profiles\joytokey\Arcade\_Default"
					emuProfile := "D:\FrontEnds\RocketLauncher\Profiles\joytokey\Arcade\MAME"
					romProfile := "D:\FrontEnds\RocketLauncher\Profiles\joytokey\Arcade\10yard85"
					RocketLauncherProfile := "D:\FrontEnds\RocketLauncher\Profiles\joytokey\RocketLauncher"
					blankProfile := "D:\FrontEnds\RocketLauncher\Profiles\joytokey\blank"
					ahkFEProfile := "D:\FrontEnds\RocketLauncher\Profiles\AHK\RocketLauncher"
					ahkDefaultProfile := "D:\FrontEnds\RocketLauncher\Profiles\AHK\_Default"
					ahkSystemProfile := "D:\FrontEnds\RocketLauncher\Profiles\AHK\Arcade"
					ahkEmuProfile := "D:\FrontEnds\RocketLauncher\Profiles\AHK\Arcade\MAME"
					ahkRomProfile := "D:\FrontEnds\RocketLauncher\Profiles\AHK\Arcade\10yard85"
					ahkRocketLauncherProfile := "D:\FrontEnds\RocketLauncher\Profiles\AHK\RocketLauncher"
					bezelEnabled := "true"
					bezelICEnabled := "true"
					shaderName := "false"
					shaderColor := ""
					shaderTransparency := ""
					statisticsEnabled := "true"
					pressDuration := "-1"
					emuVolume := "1"
					dxwndIni := "D:\FrontEnds\RocketLauncher\Module Extensions\dxwnd\dxwnd.ini"
					dxwndFullPath := "D:\FrontEnds\RocketLauncher\Module Extensions\dxwnd\dxwnd.exe"
					qResFullPath := "D:\FrontEnds\RocketLauncher\Module Extensions\QRes.exe"
					mon1O := ""
					pacDrivedllFile := "D:\FrontEnds\RocketLauncher\Module Extensions\PacDrive32.dll"
					userFadeAnimIniFile := "D:\FrontEnds\RocketLauncher\Lib\User Fade Animations.ini"
					testFile := ""
					testDuration := ""
					initialErrorMode := "0"

12:25:27:648 | RL |      INFO  | +0     | BuildScript - Loaded XHotkey Init.ahk scripts
12:25:27:648 | RL |      INFO  | +0     | BuildScript - Loaded Keymapper Init.ahk scripts
12:25:27:648 | RL |      INFO  | +0     | BuildScript - Loaded Fade Init.ahk scripts
12:25:27:663 | RL |      INFO  | +16    | BuildScript - Loaded Pause Init.ahk scripts
12:25:27:663 | RL |      INFO  | +0     | BuildScript - Loaded Statistics Init.ahk scripts
12:25:27:663 | RL |     DEBUG  | +0     | BuildScript - Module starts on line: 2
12:25:27:663 | RL |      INFO  | +0     | BuildScript - Validating module
12:25:27:679 | RL |      INFO  | +16    | BuildScript - Validation complete
12:25:27:679 | RL |      INFO  | +0     | BuildScript - Module:
					MEmu := "MAME"
					MEmuV := "v0.166"
					MURL := ["http://www.mame.net/"]
					MAuthor := ["djvj","faahrev","brolly","Tomkun"]
					MVersion := "2.3.10"
					MCRC := "2C606685"
					iCRC := "8566ED91"
					MID := "635746812784197028"
					MSystem := ["AAE","Aamber Pegasus","Acorn Electron","Amstrad CPC","Amstrad GX4000","APF Imagination Machine","Apple II","Apple IIGS","Applied Technology MicroBee","Arcade","Arcade Guns","Arcade Classics","Atari 8-Bit","Atari 2600","Atari 5200","Atari 7800","Atari Classics","Atari Jaguar","Atari Lynx","Bally Astrocade","Bandai Super Vision 8000","Bandai WonderSwan","Bandai WonderSwan Color","Bit Corporation Gamate","Camputers Lynx","Capcom","Capcom Classics","Capcom Play System","Capcom Play System II","Capcom Play System III","Casio PV-1000","Casio PV-2000","Cave","Coleco ADAM","ColecoVision","Commodore 64","Commodore MAX Machine","Creatronic Mega Duck","Data East Classics","EACA EG2000 Colour Genie","Emerson Arcadia 2001","Entex Adventure Vision","Epoch Game Pocket Computer","Epoch Super Cassette Vision","Exidy Sorcerer","Fairchild Channel F","Fujitsu FM-7","Fujitsu FM Towns","Fujitsu FM Towns Marty","Funtech Super Acan","GamePark 32","GCE Vectrex","Hartung Game Master","HBMAME","Interton VC 4000","Irem Classics","JungleTac Sport Vii","Jupiter Ace","Konami Classics","LaserDisc","Magnavox Odyssey 2","MAME","Matra & Hachette Alice","Mattel Aquarius","Mattel Intellivision","MGT Sam Coupe","Midway Classics","Milton Bradley MicroVision","Namco Classics","Namco System 22","NEC PC-8801","NEC PC Engine","NEC PC Engine-CD","NEC SuperGrafx","NEC TurboGrafx-16","NEC TurboGrafx-CD","Nintendo 64","Nintendo 64DD","Nintendo Arcade Systems","Nintendo Classics","Nintendo Entertainment System","Nintendo Famicom","Nintendo Famicom Disk System","Nintendo Game Boy","Nintendo Game Boy Advance","Nintendo Game Boy Color","Nintendo Pokemon Mini","Nintendo Satellaview","Nintendo Super Famicom","Nintendo Super Game Boy","Nintendo Virtual Boy","Othello Multivision","PacMAME","Philips CD-i","Philips VG 5000","Philips Videopac Plus G7400","RCA Studio II","Sega 32X","Sega CD","Sega Classics","Sega Game Gear","Sega Genesis","Sega Master System","Sega Mega Drive","Sega Model 1","Sega Pico","Sega Saturn","Sega SC-3000","Sega SG-1000","Sega ST-V","Sega VMU","Sharp X1","Sinclair ZX81","SNK Classics","SNK Neo Geo","SNK Neo Geo AES","SNK Neo Geo AES","SNK Neo Geo CD","SNK Neo Geo MVS","SNK Neo Geo Pocket","SNK Neo Geo Pocket Color","Sony PlayStation","Sony PocketStation","Sord M5","Soundic Victory MPT-02","Super Nintendo Entertainment System","Taito Classics","Tandy TRS-80 Color Computer","Texas Instruments TI 99-4A","Thomson MO5","Tiger Game.com","Tomy Tutor","VTech CreatiVision","VTech Socrates","Watara Supervision","Williams Classics","Nintendo Game & Watch"]
					;----------------------------------------------------------------------------
					; Notes:
					; This module now includes everything from the legacy MAME and MESS modules, but combined to match the merge of the 2 emulators that occured on version 0.162.
					;
					; Exit fade will only work correctly if you don't have Esc, the default MAME exit key,  as your exit key. If you use Esc, turn off the ExitScreen
					; This module will set your rom paths on the fly via CLI, but you must make sure the RLUI module setting for this module "MAME_BIOS_Path" is correctly set. It defaults to your roms subfolder where MAME.exe is found.
					; This module assumes you have bios zip in your MAME "roms" directory, which might be different than your actual roms directory, for each system you need this module for. All tested systems listed below
					; If MAME has a problem reading the bios zips, try archving them with "no compression"
					; This site can help a ton with details for the various systems supported: http://www.progettoemma.net/mess/index.html
					; You may get a black screen or MAME may close w/o notice if you do not have a bios rom for your system when one is needed.
					; If you use bezel, it is recommended to set the module bezel mode to normal, and go to your MAME.ini file, on your emulator folder, and choose these options: artwork_crop 1, use_backdrops 1, use_overlays 1, use_bezels 0
					;
					; Command Line Options - http://easyemu.mameworld.info/mameguide/mameguide-options.html
					; High Scores DO NOT SAVE when cheats are enabled!
					; HLSL Documentation: http://mamedev.org/source/docs/hlsl.txt.html
					; If you use MAME for AAE, create a vector.ini in mame's ini subfolder and paste these HLSL settings in there: http://www.mameworld.info/ubbthreads/showflat.php?Cat=&Number=309968&page=&view=&sb=5&o=&vc=1
					;
					; Be aware that several systems will require a BIOS zip with their roms inside. They all come bundled in the MAME set so make sure you add your MAME roms folder to the
					; roms path for that system. If you have doubts about their filenames check the mTypeVar module variable content.
					;
					; Following systems will also require some specific files to operate properly:
					; APF Imagination Machine - apfimag (tape games), apfm1000 (cart games)
					; Camputers Lynx - lynx64k, lynx96k, lynx128k
					; Coleco ADAM - adam, adam_ddp, adam_fdc, adam_kb, adam_prn, adam_spi
					; NEC PC Engine-CD - "Super CD-ROM2 System V3.0 (J).pce" [262,656 bytes] (placed in the roms subfolder in the emuPath)
					; NEC TurboGrafx-CD - "Super CD-ROM2 System V3.01 (U).pce" [262,144 bytes] (placed in the roms subfolder in the emuPath)
					; Sega CD - segacd, megacd, megacd2j (megacd2j seems to be more compatible over megacdj)
					; Sony PlayStation - psa, pse, psj, psu
					;
					; Tape Control:
					; MAME tape/cassette emulation is terrible because normally it means you need to manually start and stop the tapes yourself so it's highly suggested that you use another emulator for such systems.
					; Tape control commands are accessible through the UI, press tab and then select Tape Control and you can start/stop the loaded tape from there.
					; The following hotkeys can also be used:
					; F2 - Start Tape
					; Left Shift + F2 - Stop Tape
					; Insert - While held, runs the game with throttling disabled and with the maximum frameskip. Useful to speedup the long tape loading process.
					;
					; Be aware that tape games are normally used on PC systems therefore it's likely that full keyboard emulation is enabled which means that you'll need to disable it in order to use any of the above
					; hotkeys. To disable it press the Scroll Lock key, press it again to enable it back.
					;
					; 7z Support:
					; Make sure you have 7z disabled for all MAME Arcade systems. Their roms are supposed to be archived, if you have 7z enabled then your games will fail to load. It's
					; fine to enable 7z to non-arcade systems.
					;
					; Custom Configuration Files:
					; If you want to use custom configuration files (.cfg files) for some games you will need to store them inside your MAME cfg folder using the following structure:
					; cfg\mame_system_name\database_rom_name\mame_system_name.cfg
					; An example of a game that requires specific settings is ICBM Attack for the Bally Astrocade, in this case special cfg file should be:
					; cfg\astrocde\I.C.B.M. Attack (USA) (Unl)\astrocde.cfg
					;
					; Ini Files:
					; Module will set most settings through command line which will override any settings you might have on your MAME ini files. Everything else will be read from
					; those. MAME supports a hierarchical ini file structure and will load settings from several ini files following a specific order:
					;- mame.ini
					;- <mymame>.ini (i.e. if MAME was renamed mame060.exe, MAME parses mame060.ini here)
					;- debug.ini (if the debugger is enabled)
					;- <parent>.ini (for clones only, may be called recursively)
					;- <gamename>.ini
					;- vertical.ini (for games with vertical monitor orientation)
					;- horizont.ini (for games with horizontal monitor orientation)
					;- vector.ini (for vector games only)
					;- <driver>.ini (based on the source filename of the driver)
					;
					; The settings in the later ini's override those in the earlier ini's.
					;
					; It's highly recommended that you set skipchecks to 'Rom Only" for MAME otherwise RocketLauncher won't be able to launch several games due
					; to the way MAME roms are packaged. This will be even more noticeable for those using merged sets.
					;
					; Bally Astrocade:
					; ICBM requires a soft reset (even on the real hardware) to launch. You can read about it here: http://www.ballyalley.com/ballyalley/articles/Playing_ICBM_Attack_Using_MESS.pdf
					; Other games might require this as well, you can enable this in the module's settings so the machine is reset automatically on launch, otherwise you need to press F3 to start the game.
					; Also ICBM Attack uses different controls then the rest of the games. Make sure you follow the procedure explained above under "Custom Configuration Files" to create such file.
					;
					; GCE Vectrex:
					; Requires a vectrex.lay and a png overlay for each game. These all need to be placed in the MAME\artwork\vectrex folder.
					; You can download all these pngs and the lay file in my ftp folder. You need to use the HyperList XML to match the pngs.
					;
					; Jupiter Ace:
					; Set mame to 48k ram
					;
					; Magnavox Odyssey 2:
					; Euro games should use the videopac bios instead of the odyssey2 one or you'll get some timing issues.
					; Use the systemName ini file in the folder with this module for this, example:
					; [Moto-Crash (France)]
					; Bios=videopac
					;
					; RCA Studio 2:
					; Most of the games require you to press a button to start the game, like 1 or 2 (refer to the game's manual).
					; The game screen will be black until you do.
					;
					; Texas Instruments TI 99/4A:
					; This system requires full keyboard emulation to work properly
					; Split cart dumps are not supported since MESS .145 so you'll have to convert them to RPK format or use an earlier version of MESS (and a different module)
					; You can check how to convert split cart dumps to RPK here:
					; http://www.ninerpedia.org/index.php/MESS_multicart_system
					; For floppy games make sure you have a RPK dump of an extended basic rom on your roms folder. It should be named "extended_basic.rpk"
					; This system requires you to use a MAME build with Direct Input enabled in order to auto start the games. Most games will require commands to be typed to start
					; and it's normally too complex to be able to do it through the -ab switch so SendCommand is used instead which means a Direct Input enabled MAME version is required.
					;
					; Bezels:
					; Module settings control whether RocketLauncher or MAME bezels are shown
					; In the bezel normal mode only RocketLauncher Bezels will be show and the MAME use_bezels option will be forced disbaled
					; In the bezel layout mode, RocketLauncher Bezels will be drawn only when you do not have a layout file on your MAME folders for the current game
					;
					; ServoStik:
					; The module will automatically control any connected ServoStiks found on the system.
					; It does this by reading the xml info from MAME. If that XML info has directional info at 4 or less, 4-way mode will be enabled. All others get 8-way mode.
					;
					; Per game controller types:
					; MAME allows you to change the controller type for each game by using slot devices. Slot devices are highly customizable and vary greatly from system to
					; system so to avoid adding a huge complexity to the module this must be done through the Parameters settings.
					; Slot devices are stored in the MAME ini file you are using, so the best way to find the command line you need to use is to start your game set the slot devices
					; through the MAME UI (Press tab while in MAME) exit and then open the MAME ini file and search for a section named SLOT DEVICES.
					; This is an example for Atari 2600 for a game using wheel controllers on both joy ports:
					; #
					; # SLOT DEVICES
					; #
					; joyport1     wheel
					; joyport2     wheel
					; The suggested method is to set the desired controllers you want to use by default in the Module Global Settings, in this case under the Atari 2600 tab you would
					; set Parameters=-joyport1 joy -joyport2 joy
					; And then for specific games do the same under Module Specific Settings for that system, if a game requires the wheel controller you'd set
					; Parameters=-joyport1 wheel -joyport2 wheel
					;
					; Another option is to set the default values in the MAME ini file and make sure you also set writeconfig to 0.
					; Swapping slot devices wipes out SYSTEM custom configs on the unplugged controllers, so to avoid any customised controls getting erased everytime you change slot devices,
					; ensure you set your controls in the main MAME config file (MAME.ini), not the system one (ex. Atari 2600.ini).
					;
					; Linking/NetPlay:
					; The module will automatically set correct network ports for linked games.
					; Up to 8 players on the same PC are supported. Multiple copies of MAME will be launched.
					; Placement of the screens are automatic but can be controlled in RocketLauncherUI MAME module settings. Windowed mode is required when more than one copy of mame is launched and is set automatically.
					; Each player will use a different cfg and nvram folder in your MAME folder. Player 1 will always use .\cfg and .\nvram.
					; Players 2 through 8 will use .\cfg2, .\cfg3, etc and .\nvram2, .\nvram3, etc
					; These folders and cfg/nvram files will be automatically created for you on launch so you do not need to create them manually.
					; Global inputs is automatically turned on for you but it is your job to setup individual controls for each instance. MAME only supports raw-input in this mode however.
					; Over a LAN/WAN connection only 2 players are supported due to the way the ports are designated, it's impossible to automate port allocation because there is no 1 server where all hosts connect to.
					; Default starting port for the Master is 15111 and consecutively goes up from there upto 15119 for 8 players. You can change the default starting port in the module settings if it conflicts with used ports on your network.
					; There are other network related settings in the module settings to assist with starting IPs and connectivity, so check them out as well.
					;
					; NVRAM Automation for linked games:
					; When launching linked games on the same pc NVRAM settings are automatically set for you so each player will be unique.
					; For instance, in Virtua Racing, Player 1 is red, player 2 is blue, player 3 is yellow, etc.
					; To do this, some other options are also set automatically for you as well, like region, difficulty, countr, course, etc
					; I set these to defaults, but prefer USA region. If you do not like these, you will have to disable NVRAM automation in the module settings in RocketLauncherUI.
					;
					; Additional Link info that may be of some importance:
					; The original Model-1 has a max Bandwidth of 6 MBit/s (TOTX173/TORX173).
					; One Board sends about 20 KByte/s.
					; So bandwidth CLIENTSIDE is like...
					; 2 Boards - 20 KByte/s inbound and 20 KByte/s outbound.
					; 3 Boards - 40 KByte/s inbound and 20 KByte/s outbound.
					; 4 Boards - 60 KByte/s inbound and 20 KByte/s outbound.
					; etc.
					; Some good info on Linking: http://www.mameworld.info/ubbthreads/showflat.php?Cat=&Number=297577&page=0
					; also http://forum.arcadecontrols.com/index.php/topic,130136.msg1331485.html
					;----------------------------------------------------------------------------
					StartModule()
					BezelGUI()

					primaryExe := new Emulator(emuPath . "\" . executable)					; instantiate emulator executable object
					emuPrimaryWindow := new Window(new WindowTitle(,"MAME"))	; instantiate primary emulator window object
					emuOpenWindow := new Window(new WindowTitle(dialogOpen,"ConsoleWindowClass"))
					emuConsoleWindow := new Window(new WindowTitle(,"ConsoleWindowClass"))
					emuDebugWindow := new Window(new WindowTitle(,"MAMEDebugWindow"))
					emuOutputWindow := new Window(new WindowTitle(,"MAMEOutput"))

					; This object controls how the module reacts to different systems. MAME can play a lot of systems, but needs to know what system you want to run, so this module has to adapt.
					mTypeVar := "
						( LTrim
						Aamber Pegasus|pegasus
						Acorn Electron|electron
						Amstrad CPC|cpc664
						Amstrad GX4000|gx4000
						APF Imagination Machine|apfimag
						Apple II|apple2ep
						Apple IIGS|apple2gs
						Applied Technology MicroBee|mbeeic
						Atari 8-Bit|a800
						Atari 2600|a2600
						Atari 5200|a5200
						Atari 7800|a7800
						Atari Jaguar|jaguar
						Atari Lynx|lynx
						Bally Astrocade|astrocde
						Bandai Super Vision 8000|sv8000
						Bandai WonderSwan|wswan
						Bandai WonderSwan Color|wscolor
						Bit Corporation Gamate|gamate
						Camputers Lynx|lynx128k
						Casio PV-1000|pv1000
						Casio PV-2000|pv2000
						Coleco ADAM|adam
						ColecoVision|coleco
						Commodore 64|c64
						Commodore MAX Machine|vic10
						Creatronic Mega Duck|megaduck
						EACA EG2000 Colour Genie|cgenie
						Emerson Arcadia 2001|arcadia
						Entex Adventure Vision|advision
						Epoch Game Pocket Computer|gamepock
						Epoch Super Cassette Vision|scv
						Exidy Sorcerer|sorcerer
						Fairchild Channel F|channelf
						Fujitsu FM-7|fmnew7
						Fujitsu FM Towns|fmtowns
						Fujitsu FM Towns Marty|fmtmarty
						Funtech Super Acan|supracan
						GamePark 32|gp32
						GCE Vectrex|vectrex
						Hartung Game Master|gmaster
						Interton VC 4000|vc4000
						JungleTac Sport Vii|vii
						Jupiter Ace|jupace
						Magnavox Odyssey 2|odyssey2
						Matra & Hachette Alice|alice32
						Mattel Aquarius|aquarius
						Mattel Intellivision|intv
						MGT Sam Coupe|samcoupe
						Milton Bradley MicroVision|microvsn
						NEC PC-8801|pc8801
						NEC PC Engine|pce
						NEC PC Engine-CD|pce
						NEC SuperGrafx|sgx
						NEC TurboGrafx-16|tg16
						NEC TurboGrafx-CD|tg16
						Nintendo 64|n64
						Nintendo 64DD|n64dd
						Nintendo Entertainment System|nes
						Nintendo Famicom|famicom
						Nintendo Famicom Disk System|fds
						Nintendo Game Boy|gameboy
						Nintendo Game Boy Advance|gba
						Nintendo Game Boy Color|gbcolor
						Nintendo Pokemon Mini|pokemini
						Nintendo Satellaview|snes
						Nintendo Super Famicom|snes
						Nintendo Super Game Boy|supergb
						Nintendo Virtual Boy|vboy
						Othello Multivision|omv1000
						Philips CD-i|cdimono1
						Philips Videopac Plus G7400|g7400
						Philips VG 5000|vg5k
						RCA Studio II|studio2
						Sega 32X|32x
						Sega CD|segacd
						Sega Game Gear|gamegear
						Sega Genesis|genesis
						Sega Master System|sms
						Sega Mega Drive|megadriv
						Sega Pico|pico
						Sega Saturn|saturn
						Sega SC-3000|sc3000
						Sega SG-1000|sg1000
						Sega VMU|svmu
						Sharp X1|x1turbo40
						Sinclair ZX81|zx81
						SNK Neo Geo AES|aes
						SNK Neo Geo CD|neocdz
						SNK Neo Geo Pocket|ngp
						SNK Neo Geo Pocket Color|ngpc
						Sony PlayStation|psx
						Sony PocketStation|pockstat
						Sord M5|m5
						Soundic Victory MPT-02|mpt02
						Super Nintendo Entertainment System|snes
						Tandy TRS-80 Color Computer|coco3
						Texas Instruments TI 99-4A|ti99_4a
						Thomson MO5|mo5
						Tiger Game.com|gamecom
						Tomy Tutor|tutor
						VTech CreatiVision|crvision
						VTech Socrates|socrates
						Watara Supervision|svision
						)"
					mType := Object()
					Loop, Parse, mTypeVar, `n, `r
					{
						obj := {}
						Loop, Parse, A_LoopField, |
							If (A_Index = 1)
								obj.System := A_LoopField
							Else	; 2
								obj.mameID := A_LoopField
						mType.Insert(obj["System"], obj)
					}
					RLLog.Debug("Module - Finished building the " . MEmu . " object")
					; For easier use throughout the module
					mameSystem := mType[systemName].System
					mameID := mType[systemName].mameID

					If !mameSystem {
						If (!ArrayUtils.ArrayContains(MSystem,systemName)) {
							RLLog.Warning("Module - """ . systemName . """ is not a known console or computer system. Defaulting to MAME's Arcade mode for the remainder of this " . MEmu . " module.")
						} Else {
							RLLog.Debug("Module - Defaulting to MAME's Arcade mode for the remainder of this " . MEmu . " module.")
						}
						mameSystem := systemName
						mameID := "MAME"
					}

					Fullscreen := moduleIni.Read("Settings", "Fullscreen","true",,1)		; Set fullscreen mode
					legacyMode := moduleIni.Read(romName . "|" . mameSystem . "|Settings", "LegacyMode","false",,1)
					mameBiosPath := moduleIni.Read("Settings", "MAME_BIOS_Path", emuPath . "\roms",,1)
					Videomode := moduleIni.Read("Settings", "Videomode","d3d",,1)	; Choices are gdi,ddraw,d3d. If left blank, MAME uses d3d by default
					pauseMethod := moduleIni.Read("Settings", "PauseMethod",1,,1)	; set the pause method that works better on your machine (preferred methods 1 and 2) 1 = Win7 and Win8 OK - Problems with Win XP, 2 = preferred method for WinXP - Problems in Win7, 3 and 4 = same as 1 and 2, 5 = only use If you have a direct input version of mame, 6 = suspend mame process method, it could crash mame in some computers
					bilinearFilter := moduleIni.Read(mameSystem . "|Settings", "BilinearFilter","false",,1)
					hlsl := moduleIni.Read(romName . "|" . mameSystem . "|Settings", "HLSL","false",,1)
					glsl := moduleIni.Read(romName . "|" . mameSystem . "|Settings", "GLSL","false",,1)
					bezelMode := moduleIni.Read(romName . "|" . mameSystem . "|Settings", "BezelMode","layout",,1)	; "layout" or "normal"
					verticalRotationMode := moduleIni.Read(romName . "|" . mameSystem . "|Settings", "VerticalRotationMode","none",,1)
					cheatMode := moduleIni.Read("Settings", "CheatMode","false",,1)
					cheatModeKey := moduleIni.Read("Settings", "CheatModeKey",,,1)	; user defined key to be held down before launching a mame rom.
					UseSoftwareList := moduleIni.Read(romName . "|" . mameSystem, "UseSoftwareList","false",,1)
					sysStaticParams := moduleIni.Read(mameSystem, "StaticParameters",,,1)
					sysParams := moduleIni.Read(mameSystem, "Parameters",,,1)
					romParams := moduleIni.Read(romName, "Parameters", sysParams,,1)
					mameRomName := moduleIni.Read(romName, "MameRomName",,,1)
					autosave := moduleIni.Read(romName . "|" . mameSystem, "Autosave", "false",,1)
					volume := moduleIni.Read(romName . "|" . mameSystem . "|Settings", "Volume",,,1)
					Artwork_Crop := moduleIni.Read(romName . "|" . mameSystem, "Artwork_Crop", "true",,1)
					Use_Bezels := moduleIni.Read(romName . "|" . mameSystem, "Use_Bezels", "false",,1)
					Use_Overlays := moduleIni.Read(romName . "|" . mameSystem, "Use_Overlays", "true",,1)
					Use_Backdrops := moduleIni.Read(romName . "|" . mameSystem, "Use_Backdrops", "true",,1)
					Use_Cpanels := moduleIni.Read(romName . "|" . mameSystem, "Use_Cpanels", "false",,1)
					Use_Marquees := moduleIni.Read(romName . "|" . mameSystem, "Use_Marquees", "false",,1)
					inipath := moduleIni.Read(mameSystem, "IniPath",,,1)
					hashpath := moduleIni.Read(mameSystem, "HashPath",,,1)
					UseControllerRemap := moduleIni.Read(mameSystem . "|Settings", "UseControllerRemap", "true",,1)
					ControllerRemapPath := moduleIni.Read(mameSystem . "|Settings", "ControllerRemapPath", emuPath . "\ControllerRemap\ControllerRemap.exe",,1)
					CtrlRemapFile := new File(ControllerRemapPath)
					ControllerRemapConfigPath := moduleIni.Read( mameSystem . "|Settings", "ControllerRemapConfigPath", CtrlRemapFile.FilePath . "\ctrlr\",,1)
					MAMECtrlrPath := moduleIni.Read(mameSystem . "|Settings", "MAMECtrlrPath", emuPath . "\ctrlr",,1)

					mameBiosPath := GetFullName(mameBiosPath)

					; Loop, 8
						; car%A_Index%Color := moduleIni.Read(romName, "Car_" . A_Index . "_Color",,,1)

					enableLinkPlay := moduleIni.Read(romName . "|Link/Network", "Enable_Link_Play", "false",,1)
					networkSession := ""
					If (enableLinkPlay != "false") {
						RLLog.Info("Module - Link/Network Multi-Player is an available option for " . romName)
						getWANIP := moduleIni.Read("Link/Network", "Get_WAN_IP","false",,1)
						myIP := If getWANIP = "true" ? GetPublicIP() : "127.0.0.1"	; use local ip by default if user does not want to get the WAN IP as MAME needs this for linked games
						networkPlayers := enableLinkPlay	; Max amount of networkable players
						localLink := 1	; Tell Multiplayer menu to enable menu option for local linking

						enableNVRAMAutomation := moduleIni.Read(romName . "|Link/Network", "Enable_NVRAM_Automation","true",,1)
						maxPlayersPerMonitor := moduleIni.Read(romName . "|Link/Network", "Max_Players_Per_monitor","1|1|1|1|1|1|1|1",,1)
						splitScreen2PlayersMode := moduleIni.Read(romName . "|Link/Network", "SplitScreen_2_Players","Horizontal",,1) ;horizontal or vertical
						splitScreen3PlayersMode := moduleIni.Read(romName . "|Link/Network", "SplitScreen_3_Players","P1top",,1) ; For Player1 screen to be on left: P1left. For Player1 screen to be on top: P1top. For Player1 screen to be on bottom: P1bottom. For Player1 screen to be on right: P1right.
						localPort := moduleIni.Read("Link/Network", "Local_Port","15111",,1)

						defaultServerIP := moduleIni.Read("Link/Network", "Default_Server_IP", myIP,,1)
						defaultServerPort := moduleIni.Read("Link/Network", "Default_Server_Port","15111",,1)
						lastIP := moduleIni.Read("Link/Network", "Last_IP", defaultServerIP,,1)	; also known as the Remote IP in mame. Does not need to be on the ISD
						lastPort := moduleIni.Read("Link/Network", "Last_Port", defaultServerPort,,1)	; also known as the Remote Port in mame. Does not need to be on the ISD

						MultiplayerMenu(lastIP, lastPort, networkType, networkPlayers,,,,,,localLink,"ipAndPort")

						;MultiPlayer Menu Result
						; If !(networkType)
							; MsgBox, % "Single Player Game"
						; Else If (networkType="localLink")
							; MsgBox, % "Local Link selected with the number of players equal to: " . networkPlayers
						; Else If (networkType="server")
							; MsgBox, % "WAN IP Address=" . networkIP . " | LAN IP Address=" . localIP[1,2] . " | Port=" . networkPort . " | networkPlayers=" . networkPlayers . " | networkRequiresSetup=" . networkRequiresSetup
						; Else If (networkType="client")
							; MsgBox, % "NetworkIP=" . networkIP . " | Port Number=" . networkPort . " | networkRequiresSetup=" . networkRequiresSetup

						If networkSession {
							RLLog.Info("Module - Using a Network for " . romName)
							multiPlayerObj := Object()	; initialize object to store the multiplayer options
							If (networkType="localLink") {
								RLLog.Info("Module - Setting remote host to 127.0.0.1 to support local link mode as it is running on this PC.")
								linkEnabledGame := 1
								If networkPlayers > 1
								{	RLLog.Info("Module - Local link mode was selected and " . networkPlayers . " sessions will be launched.")
									fullscreen := "false"	; must turn off fullscreen if running multiple MAMEs on the same machine
									Loop % networkPlayers {
										multiPlayerObj[A_Index,"Player"] := A_Index
										multiPlayerObj[A_Index,"CfgDir"] := " -cfg_directory cfg" . (If A_Index = 1 ? "" : A_Index)
										multiPlayerObj[A_Index,"NvramDir"] := " -nvram_directory nvram" . (If A_Index = 1 ? "" : A_Index)
										If (A_Index = 1) {	; Player 1
											initialLocalPort := localPort	; must be stored for last player
											multiPlayerObj[A_Index,"LocalHost"] := " -comm_localhost 0.0.0.0"
											multiPlayerObj[A_Index,"LocalPort"] := " -comm_localport " . localPort
											localPort++
											multiPlayerObj[A_Index,"RemotePort"] := " -comm_remoteport " . localPort
										} Else {	; Players 2+
											multiPlayerObj[A_Index,"LocalPort"] := " -comm_localport " . localPort
											localPort++
											multiPlayerObj[A_Index,"RemoteHost"] := " -comm_remotehost 127.0.0.1"
											multiPlayerObj[A_Index,"RemotePort"] := " -comm_remoteport " . (If A_Index = networkPlayers ? initialLocalPort : localPort)	; must set remote port to first port on last player
										}

										; msgbox % "Player: " . multiPlayerObj[A_Index]["Player"] . "`nLocalHost: " . multiPlayerObj[A_Index]["LocalHost"] . "`nLocalPort: " . multiPlayerObj[A_Index]["LocalPort"] . "`nRemoteHost: " . multiPlayerObj[A_Index]["RemoteHost"] . "`nRemotePort: " . multiPlayerObj[A_Index]["RemotePort"] . "`nCfgDir: " . multiPlayerObj[A_Index]["CfgDir"] . "`nNvramDir: " . multiPlayerObj[A_Index]["NvramDir"]
									}
								} Else
									RLLog.Info("Module - Local link mode was selected but user only chose 1 player. Launch will be a normal session.")
							} Else If (networkType = "client") {
								RLLog.Info("Module - Remote host is running on another PC, module will use remote link mode.")
								moduleIni.Write(networkIP,"GlobalModuleIni","Link/Network","Last_IP")	; Save last used IP and Port for quicker launching next time
								moduleIni.Write(networkPort,"GlobalModuleIni","Link/Network","Last_Port")
								linkType := "Slave"
								networkPlayers := 1
								multiPlayerObj[1,"Player"] := 1
								multiPlayerObj[1,"CfgDir"] := " -cfg_directory cfg"
								multiPlayerObj[1,"NvramDir"] := " -nvram_directory nvram"
								multiPlayerObj[1,"LocalHost"] := " -comm_localhost 0.0.0.0"		; don't really need to set this but just in case
								multiPlayerObj[1,"LocalPort"] := " -comm_localport " . localPort
								multiPlayerObj[1,"RemoteHost"] := " -comm_remotehost " . networkIP
								multiPlayerObj[1,"RemotePort"] := " -comm_remoteport " . networkPort
							} Else {	; server
								RLLog.Info("Module - This PC is acting as the host, telling mame to listen for incoming connections on port: " . localPort)
								moduleIni.Write(networkIP,"GlobalModuleIni","Link/Network","Last_IP")	; Save last used IP and Port for quicker launching next time
								moduleIni.Write(networkPort,"GlobalModuleIni","Link/Network","Last_Port")
								linkType := "Master"
								networkPlayers := 1
								multiPlayerObj[1,"Player"] := 1
								multiPlayerObj[1,"CfgDir"] := " -cfg_directory cfg"
								multiPlayerObj[1,"NvramDir"] := " -nvram_directory nvram"
								multiPlayerObj[1,"LocalHost"] := " -comm_localhost 0.0.0.0"		; don't really need to set this but just in case
								multiPlayerObj[1,"LocalPort"] := " -comm_localport " . networkPort
								multiPlayerObj[1,"RemoteHost"] := " -comm_remotehost " . networkIP
								multiPlayerObj[1,"RemotePort"] := " -comm_remoteport " . networkPort
							}
							RLLog.Info("Module - Starting a network session using the IP """ . networkIP . """ and PORT """ . networkPort . """")
						} Else {
							RLLog.Info("Module - User chose Single Player mode for this session")
						}
					}

					FadeInStart()

					If inipath
						inipath := AbsoluteFromRelative(EmuPath, inipath)
					If hashpath
						hashpath := AbsoluteFromRelative(EmuPath, hashpath)

					artworkCrop := If (Artwork_Crop = "true") ? " -artwork_crop" : " -noartwork_crop"
					useBezels := If (Use_Bezels = "true") ? " -use_bezels" : " -nouse_bezels"
					useOverlays := If (Use_Overlays = "true") ? " -use_overlays" : " -nouse_overlays"
					useBackdrops := If (Use_Backdrops = "true") ? " -use_backdrops" : " -nouse_backdrops"
					useCpanels := If (Use_Cpanels = "true") ? " -use_cpanels" : " -nouse_cpanels"
					useMarquees := If (Use_Marquees = "true") ? " -use_marquees" : " -nouse_marquees"
					autosave := If autosave = "true"  ? " -autosave" : ""
					volume := If volume != ""  ? " -volume " . volume : ""
					inipath := If inipath != "" ? " -inipath """ . inipath . """" : ""
					hashpath := If hashpath != "" ? " -hashpath """ . hashpath . """" : ""

					If (verticalRotationMode = "none")
						verticalRotationMode := ""

					; Process mame's ListXML for certain features
					If (bezelEnabled = "true" || servoStikEnabled = "auto" || verticalRotationMode || UseControllerRemap = "true") {
						ListXMLObject := Object()
						ListXMLObject := ListXMLInfo(If mameID = "MAME" ? (If mameRomName ? mameRomName : romName) :  mameID) ;For non-Arcade systems we cannot use romName for listxml

						Angle := ListXMLObject["Angle"].Value
						If (bezelEnabled = "true") {
							If (networkPlayers > 1) {
								useBezels := " -nouse_bezels"   ; force disabling MAME built-in bezels
								BezelStart(networkPlayers)
							} Else {
								If (bezelMode = "layout"){
									BezelStart("layout",ListXMLObject["Parent"].Value,Angle,romName)
								} Else { ;bezel mode = normal
									useBezels := " -nouse_bezels"   ; force disabling MAME built-in bezels
									BezelStart(,,Angle)
								}
							}
						}
						If (servoStikEnabled = "auto") {
							ServoStik(If ListXMLObject["Ways"].Value <= 4 ? 4 : 8)	; If "ways" in the xml is set to 4 or less, the servo will go into 4-way mode, else 8-way mode will be enabled
						}
						If (verticalRotationMode && Angle) {
							RLLog.Info("Setting rotation mode to " . verticalRotationMode . " - Game's angle is " . Angle)
							If (verticalRotationMode = "original")
								verticalRotationMode := " -norotate"
							Else If (verticalRotationMode = "right")
								verticalRotationMode := " -ror"
							Else If (verticalRotationMode = "left")
								verticalRotationMode := " -rol"
							Else
								verticalRotationMode := ""
						}
						Else
							verticalRotationMode := ""

						;Controller Remap
						If (UseControllerRemap = "true") {
							RLLog.Info("Controller Remap: Start")
							romProfileName := (mameRomName ? mameRomName : romName)
							romParentName  := ListXMLObject["Parent"].Value

							If ControllerRemapPath
								ControllerRemapPath := AbsoluteFromRelative("", ControllerRemapPath)
							If ControllerRemapConfigPath
								ControllerRemapConfigPath := AbsoluteFromRelative("", ControllerRemapConfigPath)
							If MAMECtrlrPath
								MAMECtrlrPath := AbsoluteFromRelative(emuPath, MAMECtrlrPath)

							ctrlrPath := ""
							RLLog.Info("Controller Remap: ControllerRemapConfigPath: " . ControllerRemapConfigPath)

							;~ ;1- Check for Rom. 2- Check for Rom Parent. 3- Check for System default
							If (FileExist(ControllerRemapConfigPath . "\" .  systemName . "\" . romProfileName . ".cfg")) {
								RLLog.Info("Controller Remap: Rom Config File Found: " . ControllerRemapConfigPath . "\" .  systemName . "\" . romProfileName . ".cfg")
								ctrlrPath := new File(ControllerRemapConfigPath . "\" . systemName . "\" . romProfileName . ".cfg")
							}
							else if (romParentName and FileExist(ControllerRemapConfigPath . "\" . systemName . "\" . romParentName . ".cfg")) {
								RLLog.Info("Controller Remap: Parent Rom Config File Found: " . ControllerRemapConfigPath . "\" . systemName . "\" . romParentName . ".cfg")
								ctrlrPath := new File(ControllerRemapConfigPath  . "\" .  systemName . "\" . romParentName . ".cfg")
							}
							else If (FileExist(ControllerRemapConfigPath . "\" . systemName . "\_Default.cfg")) {
								RLLog.Info("Controller Remap: System Config File Found: " . ControllerRemapConfigPath . "\" . systemName . "\_Default.cfg")
								ctrlrPath := new File(ControllerRemapConfigPath  . "\" . systemName . "\_Default.cfg")
							}
							else If (FileExist(ControllerRemapConfigPath . "\_Default.cfg")) {
								RLLog.Info("Controller Remap: Global Config File Found: " . ControllerRemapConfigPath . "\_Default.cfg")
								ctrlrPath := new File(ControllerRemapConfigPath  . "\_Default.cfg")
							}

							; Is there a controller file?
							if (ctrlrPath) {
								ctrlrFile :=  " -ctrlr RocketLauncher"

								;Replace <system name="default"> with the Right mameID in the RocketLauncher.cfg file
								if(mameID != "MAME") {
									ctrlrPath.Read()
									rocketLauncherCfgFile := new File(MAMECtrlrPath . "\RocketLauncher.cfg")
									rocketLauncherCfgFile.Delete()
									rocketLauncherCfgFile.Append(StringUtils.Replace(ctrlrPath.Text, "<system name=""default"">", "<system name=""" . mameID . """>"))
								}
								else {
									ctrlrPath.Copy(MAMECtrlrPath . "\RocketLauncher.cfg",1)
								}

								RLLog.Info("Controller Remap: Running """ . ControllerRemapPath . """ /remap:""" . MAMECtrlrPath . "\RocketLauncher.cfg""")
								ControllerRemapProcess := new Process(ControllerRemapPath)
								ControllerRemapProcess.Run(" /remap:""" . MAMECtrlrPath . "\RocketLauncher.cfg""","Hide")
							}
							else {
								RLLog.Info("Controller Remap: No Controller config file found.")
							}
							RLLog.Info("Controller Remap: End")
						}
					}

					winstate := If (Fullscreen = "true") ? "Hide UseErrorLevel" : "UseErrorLevel"
					fullscreenParam := If (Fullscreen = "true") ? " -nowindow" : " -window"

					hideEmuObj := Object(emuOpenWindow,0,emuDebugWindow,0,emuOutputWindow,0,emuPrimaryWindow,1)
					7z(romPath, romName, romExtension, sevenZExtractPath)

					; Get MAME version from executable, this is needed since some CLI switches are not available in older MAME versions
					exeAtrib := FileGetVersionInfo_AW(emuPath . "\" . executable, "FileVersion|ProductVersion", "|")
					Loop, Parse, exeAtrib, |%A_Tab%, %A_Space%
						A_Index & 1 ? ( _ := A_LoopField ) : ( %_% := A_LoopField )
					If ProductVersion
						MAMEVersion := StringUtils.Right(ProductVersion, StringUtils.StringLength(ProductVersion) - 2)
					RLLog.Info("Module - Detected MAME Product Version from '" . EmuPath . "\" . executable . "' is " . MAMEVersion)

					If (videomode = "opengl") {
						hlsl := " -nohlsl_enable"
						If (MAMEVersion > 159)
							glsl := If glsl = "true" ? " -gl_glsl" : (If glsl = "ini" ? "" : " -nogl_glsl")
						Else
							glsl := ""
					} Else {
						hlsl := If hlsl = "true" ? " -hlsl_enable" : (If hlsl = "ini" ? "" : " -nohlsl_enable")
						If (MAMEVersion > 159)
							glsl := If videomode = "ini" ? "" : " -nogl_glsl"
						Else
							glsl := ""

						If (videomode = "ini")
							videomode := ""
					}
					videomode := If (Videomode != "" ) ? " -video " . videomode : ""

					param1 := " -cart """ . romPath . "\" . romName . romExtension . """"	; default param1 used for launching most systems.
					If (romExtension = ".txt")	; This can be applied to all systems
						param1 := ""

					If (mameID = "apfimag")	; APF Imagination Machine
						If (romExtension != ".tap")
							mameID := "apfm1000"	; cart games for APF Imagination Machine require a different bios to be loaded

					If (UseSoftwareList != "true")
					{	; Now that we know the system we are loading, determine if we use an ini assocated with that system for custom game configs a user might need. Then load the configs associated to that game.
						If StringUtils.Contains(mameID,"ti99_4a|aes|apple2gs|electron|mbeeic|odyssey2|astrocde|samcoupe|vic10|cpc664|mo5")	; these systems will use an ini to store game specific settings
						{
							If !SystemModuleIni.Exist()
								SystemModuleIni.Append()	; create a blank file if it does not exist

							If (mameID = "ti99_4a")	; Texas Instruments TI 99-4A
							{
								ExpansionCartLocation := moduleIni.Read("Settings", "ExpansionCartLocation", romPathOrig . "\System",,1)
								ExpansionCartLocation := GetFullName(ExpansionCartLocation)
								CommandWaitOffset := moduleIni.Read("Settings", "CommandWaitOffset", 0,,1)

								ExpansionCart := moduleIni.Read(romName, "Expansion_Cart","extended_basic.rpk",,1)	; user can specify a rom specific cart instead of the default basic one
								Command := moduleIni.Read(romName, "Command",,,1)

								; Now set the parameters to send to MAME
								If (romExtension = ".dsk")	; Expansion Disk
								{
									; If using the mainCart , send expansionLocation to MAME. This will require DirectInput to be enabled on the MAME build! Else we are loading a Disk game
									param1 := " -nat -gromport single -cart1"
									param2 := " """ . ExpansionCartLocation . "\" . ExpansionCart . """"
									param3 := " -peb:slot2 32kmem -peb:slot3 speech -peb:slot6 tirs232 -peb:slot8 hfdc"
									param4 := " -flop1"
									param5 := " """ . romPath . "\" . romName . romExtension . """"
									If StringUtils.Contains(romName, "\(Disk")
									{
										TimerUtils.Sleep(50)
										If (romTable.MaxIndex() = 2)
										{
											param4 := " -flop1 " . " """ . romTable[1,1] . """"
											param5 := " -flop2 " . " """ . romTable[2,1] . """"
										}
									}
								} Else If (romExtension = ".rpk")	; Cart Game (RPK Format)
									param1 := " -nat -gromport single -cart1", param2:=" """ . romPath . "\" . romName . romExtension . """", param3:=" -peb:slot3 speech" ;-cart will also work here
								param6 := " -ui_active" ;Enable partial keyboard mode at startup
							} Else If (mameID = "aes")	; SNK Neo Geo AES
							{	biosRegion := moduleIni.Read(romName, "BIOS_Region","asia",,1)
								param1 := " -bios " . biosRegion	; can also be japan, but the asian one has english menus for most games
								param2 := " -cart " . romName
							}Else If (mameID = "apple2gs")	; Apple IIGS
							{	externalOS := moduleIni.Read(romName, "External_OS","false",,1)
								2gsSystemFile := "System6.2mg"	;For games without OS included, always force this name and error out if not found
								multipartTable := CreateRomTable(multipartTable)

								If (externalOS = "true")
								{	CheckFile(romPath . "\" . 2gsSystemFile)
									param1 := " -flop3", param2:=" """ . romPath . "\" . 2gsSystemFile . """", param3:=" -flop4", param4:=" """ . romPath . "\" . romName . romExtension . """"
								} Else {
									param1 := " -flop3", param2:=" """ . romPath . "\" . romName . romExtension . """"
									If (multipartTable.MaxIndex() > 1)
										param3 := " -flop4", param4 := " """ . multipartTable[2,1] . """"
								}
								param5 := " -ui_active" ;Enable partial keyboard mode at startup
							}Else If (mameID = "electron") ; Acorn Electron
							{	AutoBootDelay := moduleIni.Read("Settings", "AutoBootDelay","2",,1)	; Read delay from config.
								AutoBootDelay := " -autoboot_delay " . AutoBootDelay
								If StringUtils.Contains(romExtension,"\.ssd|\.bbc\|\.img|\.dsd|\.adf|\.ads|\.adm|\.adl")
								{
									mediaDeviceType := "flop"
									autoBootMethod	:= " -autoboot_command ""*mount 0\n\n\n\n\nch.""""run""""""\n"""""
								}
								Else If StringUtils.Contains(romExtension,"\.bin|\.rom")
									mediaDeviceType := "cart"
								Else
								{
									mediaDeviceType := "cass"
									autoBootMethod	:= " -autoboot_command ""*tape\nchain""""""""""""\n"""
								}
								param1 := " -" . mediaDeviceType . " """ . romPath . "\" . romName . romExtension . """" . autoBootMethod . AutoBootDelay . ""
							}Else If (mameID = "sc3000") ; Sega SC-3000
							{	AutoBootDelay := moduleIni.Read("Settings", "AutoBootDelay","2",,1)	; Read delay from config.
								AutoBootDelay := " -autoboot_delay " . AutoBootDelay
								If StringUtils.Contains(romExtension,"\.bin|\.sg\|.sc")
									mediaDeviceType := "cart"
								Else	; any other format
									mediaDeviceType := "cass"
								param1 := " -" . mediaDeviceType . " """ . romPath . "\" . romName . romExtension . """ -autoboot_command ""chain""""""""""""\n""" . AutoBootDelay . ""
							}Else If (mameID = "c64") ; Commodore 64
							{	AutoBootDelay := moduleIni.Read("Settings", "AutoBootDelay","2",,1)	; Read delay from config.
								AutoBootDelay := " -autoboot_delay " . AutoBootDelay
								If StringUtils.Contains(romExtension,"\.d64|\.g64|\.g41|\.d77|\.d88|\.1dd|\.dfi|\.imd|\.ipf|\.mfi|\.mfm|\.td0|\.cqm|\.cqi|\.dsk")
									mediaDeviceType := "flop1"
								Else If StringUtils.Contains(romExtension,"\.wav|\.tap")
									mediaDeviceType := "cass1"
								Else If StringUtils.Contains(romExtension,"\.80|\.a0|\.e0|\.crt")
									mediaDeviceType := "cart1"
								Else If StringUtils.Contains(romExtension,"\.p00|\.prg|\.t64")
									mediaDeviceType := "quik1"
								param1 := " -" . mediaDeviceType . " """ . romPath . "\" . romName . romExtension . """ -autoboot_command ""chain""""""""""""\n""" . AutoBootDelay . ""
							}Else If mameID = mbeeic ; Applied Technology MicroBee
							{	microbeeModel := moduleIni.Read(romName, "MicroBee_Model","mbeeic",,1)
								If !StringUtils.Contains(microbeeModel,"mbee|mbeeic|mbeepc|mbeepc85|mbee56")
									ScriptError("This is not a known MicroBee model value: " . microbeeModel)
								Else If (microbeeModel != "mbeeic")
									mameID := microbeeModel
								If StringUtils.Contains(romExtension,"\.mwb|\.com|\.bee")
									mediaDeviceType := "quik1"
								Else If StringUtils.Contains(romExtension,"\.wav|\.tap")
									mediaDeviceType := "cass"
								Else If StringUtils.Contains(romExtension,"\.rom")
									mediaDeviceType := "cart"
								Else If StringUtils.Contains(romExtension,"\.dsk")
									mediaDeviceType := "flop1"
								Else	; .bin format
									mediaDeviceType := "quik2"
								param1 := " -" . mediaDeviceType . " """ . romPath . "\" . romName . romExtension . """"
							}Else If (mameID = "odyssey2")	; Magnavox Odyssey 2
							{
								VoiceModule := moduleIni.Read(romname, "VoiceModule","false","",1)
								If (VoiceModule = "true")
									param1 := " -cart1 voice -cart2 """ . romPath . "\" . romName . romExtension . """"
								param2 := " -ui_active" ;Enable partial keyboard mode at startup

								If romName not contains (USA
									mameID := "videopac"
							}Else If (mameID = "astrocde") ; Bally Astrocade
							{
								BlueRAMBasicRom := moduleIni.Read("Settings", "BlueRAMBasicRom","Blue RAM Basic v1.1 (USA).bin",,1)	; Blue RAM Basic rom
								RequiresReset := moduleIni.Read(romname, "RequiresReset","false",,1)	; Check if game requires a reset

								BlueRAMBasicRomPath := new File(romPath . "\" . BlueRAMBasicRom)
								If (romExtension = ".script") {
									; Will require blue ram basic
									If !BlueRAMBasicRomPath.Exist() {
										; Blue RAM Basic games might be in their own sub-folders since they have several files, so let's try to find the Blue RAM cart in the parent folder as well
										StringUtils.SplitPath(romPath,,romBasePath)	; grab path one level up
										BlueRAMBasicRomPath.__Delete()
										BlueRAMBasicRomPath := new File(romBasePath . "\" . BlueRAMBasicRom)
										BlueRAMBasicRomPath.CheckFile("Couldn't find " . BlueRAMBasicRom . " on any of these paths:" . romBasePath . "|" . romPath)
									}

									ScriptFile := new File(romPath . "\" . romName . romExtension)
									param1 := " -cart """ . BlueRAMBasicRomPath.FileFullPath . """"

									; Replace rompath variable in script
									ScriptFile.Read()
									ScriptFile.Text := StringUtils.Replace(ScriptFile.Text, "{romPath}", romPath, "all")

									; Create cmd file to send to MESS
									RomCMDFile := new File(romPath . "\" . romName . ".cmd")
									RomCMDFile.Delete()
									RomCMDFile.Append(ScriptFile.Text)
									param2 := " -exp blue_ram_16k -debug -debugscript """ . RomCMDFile.FileFullPath . """"

									closeDebugWindow := "true"
								}
							}Else If (mameID = "samcoupe")	; MGT Sam Coupe
							{	AutoBootDelay := moduleIni.Read("Settings", "AutoBootDelay","2",,1)	; Read delay from config.
								AutoBootDelay := " -autoboot_delay " . AutoBootDelay

								If StringUtils.Contains(romExtension,"\.mgt|\.dsk|\.d77|\.d88|\.1dd|\.dfi|\.imd|\.ipf|\.mfi|\.mfm|\.td0|\.cqm|\.cqi")
									mediaDeviceType := "flop1"
									param1 := " -" . mediaDeviceType . " """ . romPath . "\" . romName . romExtension . """ -autoboot_command ""\nBOOT\n""" . AutoBootDelay . ""
							}Else If (mameID = "vic10")	; Commodore MAX Machine
							{   AutoBootDelay := moduleIni.Read("Settings", "AutoBootDelay","2",,1)	; Read delay from config.
								AutoBootDelay := " -autoboot_delay " . AutoBootDelay

								If StringUtils.Contains(romExtension,"\.e0|\.80")
									param1 := " -cart """ . romPath . "\" . romName . romExtension . """"
								Else If StringUtils.Contains(romExtension,"\.wav|\.tap|\.fd")
									param1 := " -cass """ . romPath . "\" . romName . romExtension . """"
								Else If StringUtils.Contains(romExtension,"\.t64|\.prg|\.p00")
								{
									mediaDeviceType := "quik"
									param1 := " -" . mediaDeviceType . " """ . romPath . "\" . romName . romExtension . """ -autoboot_command ""RUN""" . AutoBootDelay . ""
								}
							}Else If (mameID = "mo5")	; Thomson MO5
							{   AutoBootDelay := moduleIni.Read("Settings", "AutoBootDelay","2","",1)	; Read delay from config.
								AutoBootDelay := " -autoboot_delay " . AutoBootDelay

								If StringUtils.Contains(romExtension,"\.bin|\.m5|\.rom")
									param1 := " -cart """ . romPath . "\" . romName . romExtension . """"
								Else If StringUtils.Contains(romExtension,"\.wav|\.k5|\.k7")
									param1 := " -cass """ . romPath . "\" . romName . romExtension . """ -autoboot_command ""RUN \""\""\n""" . AutoBootDelay . ""
								Else If StringUtils.Contains(romExtension,"\.fd|\.dsk|\.d77|\.d88")
									param1 := " -flop1 """ . romPath . "\" . romName . romExtension . """ -autoboot_command ""DOS\nLOAD\n""" . AutoBootDelay . ""
							}Else If (mameID = "cpc664")	; Amstrad CPC
							{	LaunchProgram := moduleIni.Read(romName, "LaunchProgram","disk",,1)	; Read command from config.
								LaunchProgram := " -autoboot_command " . """RUN \""" . LaunchProgram . "\n"""
								AutoBootDelay := moduleIni.Read("Settings", "AutoBootDelay","2",,1)	; Read delay from config.
								AutoBootDelay := " -autoboot_delay " . AutoBootDelay

								If StringUtils.Contains(romExtension,"\.d77|\.d88|\.1dd|\.dfi|\.imd|\.ipf|\.mfi|\.mfm|\.td0|\.cqm|\.cqi|\.dsk")
									mediaDeviceType := "flop1"
									param1 := " -" . mediaDeviceType . " """ . romPath . "\" . romName . romExtension . """" . LaunchProgram . AutoBootDelay
							}

							;Use a different bios if needed (This must be done after the above if conditions since the mameID will change)
							iniBios := moduleIni.Read(romName, "Bios",mameID,,1) ; for all games, we use the default bios. Some games might require different bios like Odyssey2's Jopac games use the videopac bios instead, which should be defined in the ini
							If (iniBios != "")
								mameID := iniBios	; need to change the bios name for some games
						}

						; These systems don't use an ini, but do require parameters to be changed from the default method of launching MAME
						If (mameID = "neocdz" || mameID = "cdimono1" || mameID = "segacd" || mameID = "saturn" || mameID = "psx" || (mameID = "tg16" && mameSystem = "NEC TurboGrafx-CD") || (mameID = "pce" && mameSystem = "NEC PC Engine-CD"))	; SNK Neo Geo CD, Philips CD-i, Sega CD, Sega Saturn, Sony PlayStation, NEC PC Engine-CD or NEC TurboGrafx-CD
						{	If !StringUtils.Contains(romExtension,"\.chd|\.cue")
								ScriptError("MAME only supports " . mameSystem . " games in chd and cue format. It does not support:`n" . romExtension)
							If (mameSystem = "NEC TurboGrafx-CD") {		; NEC TurboGrafx-CD needs an additional bios mounted as a cart to run
								tgcdBios := moduleIni.Read("Settings", "TGCDSystemCard", emuPath . "\roms\Super CD-ROM2 System V3.01 (U).pce",,1)
								tgcdBios := GetFullName(tgcdBios)
								tgcdBios := CheckFile(tgcdBios)
								param2 := " -cart " . """" . tgcdBios . """"
							} Else If (mameSystem = "NEC PC Engine-CD") {		; NEC PC Engine-CD needs an additional bios mounted as a cart to run
								pcecdBios := moduleIni.Read("Settings", "PCECDSystemCard", emuPath . "\roms\Super CD-ROM2 System V3.0 (J).pce",,1)
								pcecdBios := GetFullName(pcecdBios)
								pcecdBios := CheckFile(pcecdBios)
								param2 := " -cart " . """" . pcecdBios . """"
							} Else If (mameID = "psx") {		; Sony PlayStation
								mameID := "psu"		; changing mameID sent to MAME to use the USA bios
								; SelectMemCard()	; future function to swap around memcards
								; Usage: mc1 "J:\MAME\software\psu\card1.mc"
							} If (mameSystem = "Sega CD") {	;
								If StringUtils.InStr(romName,"(Jap")	; Mega CD Japanese v2
									mameID := "megacd2j"
								Else If StringUtils.InStr(romName,"(Euro")	; Mega CD European (PAL)
									mameID := "megacd"
							}
							param1 := " -cdrm """ . romPath . "\" . romName . romExtension . """"
						}Else If (mameID = "gamecom")	; Tiger Game.com
						{	If (romExtension != ".txt")
								param1 := " -cart1 """ . romPath . "\" . romName . romExtension . """"
						}Else If (mameID = "genesis")	; Sega Genesis
						{	If (StringUtils.InStr(romName, "(Europe") || StringUtils.InStr(romName, "(PAL"))	; if rom is from europe, tell MAME to boot a Mega Drive instead
								mameID := "megadriv"
						}Else If (mameID = "megadriv")	; Sega Mega Drive
						{	If (StringUtils.InStr(romName, "(USA") || StringUtils.InStr(romName, "(NTSC"))	; if rom is from America, tell MAME to boot a Genesis instead
								mameID := "genesis"
						}Else If (mameID = "vii") ; JungleTac Sport Vii
						{   If (romName = "Built-In Games (China)")	;  Has some built-in games, gotta launch just BIOS for it.
								param1 := ""
						}Else If (mameID = "alice32") ; Matra & Hachette Alice
						{   If (romExtension != ".txt")
								param1 := " -cass1 """ . romPath . "\" . romName . romExtension . """"
						}Else If (mameID = "cgenie") ; EACA EG2000 Colour Genie
						{   If (romExtension != ".txt")
								param1 := " -cass1 """ . romPath . "\" . romName . romExtension . """"
						}Else If (mameID = "pockstat")	; Sony PocketStation
						{	If (romExtension != ".gme")
								param1 := " -cart1 """ . romPath . "\" . romName . romExtension . """"
						}Else If (mameID = "coco3")	; Tandy TRS-80 Color Computer
						{   If (romExtension != ".txt")
								param1 := " -cart """ . romPath . "\" . romName . romExtension . """"
						}Else If (mameID = "zx81")		; Sinclair ZX81
						{   If (romExtension != ".txt")
								param1 := " -cass1 """ . romPath . "\" . romName . romExtension . """"
						}Else If (mameID = "lynx128k")	; Camputers Lynx
						{   If (romExtension != ".txt")
								param1 := " -cass1 """ . romPath . "\" . romName . romExtension . """"
						}Else If (mameID = "vg5k")		; Philips VG 5000
						{   If (romExtension != ".txt")
								param1 := " -cass1 """ . romPath . "\" . romName . romExtension . """"
						}Else If (mameID = "sorcerer")	; Exidy Sorcerer
						{	If (romExtension = ".snp")	; Snapshot file
								param1 := " -dump """ . romPath . "\" . romName . romExtension . """"
							Else If (romExtension = ".bin")
								param1 := " -quik """ . romPath . "\" . romName . romExtension . """"
						}Else If (messID = "jupace") 	; jupiter ace
						{	If (romExtension = ".ace")
								param1 := " -dump """ . romPath . "\" . romName . romExtension . """"
						}Else If (mameID = "a800" || mameID = "fds")	; Atari 8-Bit, Nintendo Famicom Disk System
						{	If (romExtension != ".txt")
								param1 := " -flop1 """ . romPath . "\" . romName . romExtension . """"
						}Else If (mameID = "vectrex")	; GCE Vectrex
						{	If (romName = "Mine Storm (World)")		; MAME dumps an error if you try to launch Mine Storm using a rom instead of just booting vectrex w/o a game in it (Mine Storm is built into vectrex)
								param1 := ""
						}Else If (mameID = "apfm1000")	; APF Imagination Machine/APF M1000
						{	If (romName = "Rocket Patrol (USA)")	; Rocket Patrol is built into the APF M1000 ROM.
								param1 := ""
						}Else If (mameID = "adam")		; Coleco ADAM
							param1 := (If romExtension = ".ddp" ? " -cass1" : (If romExtension = ".dsk" ? " -flop1" : " -cart1")) . " """ . romPath . "\" . romName . romExtension . """"	;  Decide if tape, disk, or cart game
						Else If (mameID = "pegasus")	; Aamber Pegasus
						{   If (romExtension != ".txt")
								param1 := " -cart1 """ . romPath . "\" . romName . romExtension . """"
						}Else If (mameID = "gp32")	; GamePark 32
						{   If (romExtension != ".txt")
								param1 := " -memc """ . romPath . "\" . romName . romExtension . """"
						}Else If (mameID = "svmu")	; Sega VMU
						{
							param1 := " -quik """ . romPath . "\" . romName . romExtension . """"
						}Else If (mameID = "x1turbo40")	; Sharp X1
						{   If StringUtils.Contains(romExtension,"\.bin|\.rom")
								param1 := " -cart """ . romPath . "\" . romName . romExtension . """"
							Else If StringUtils.Contains(romExtension,"\.wav|\.tap")
								param1 := " -cass """ . romPath . "\" . romName . romExtension . """"
							Else
								param1 := " -flop1 """ . romPath . "\" . romName . romExtension . """"
						}Else If (mameID = "pc8801")	; NEC PC-8801
						{   If (romExtension = ".d88")
								param1 := " -flop1 """ . romPath . "\" . romName . romExtension . """"
						}Else If (mameID = "fmnew7")	; Fujitsu FM-7
						{   If StringUtils.Contains(romExtension,"\.fdi|\.td0|\.imd|\.cqm|\.dsk|\.d77|\.d88|\.1dd")
								param1 := " -flop1 """ . romPath . "\" . romName . romExtension . """"
							Else If StringUtils.Contains(romExtension,"\.wav|\.t77")
								param1 := " -cass """ . romPath . "\" . romName . romExtension . """"
						}Else If (mameID = "apple2ep")	; Apple II
						{	If StringUtils.Contains(romExtension,"\.dsk|\.do|\.po|\.rti|\.edd|\.d77|\.d88|\.1dd|\.dfi|\.imd|\.i pf|\.mfi|\.mfm|\.td0|\.cqm|\.cqi")
								param1 := " -flop1 """ . romPath . "\" . romName . romExtension . """"
							Else If StringUtils.Contains(romExtension,"\.wav")
								param1 := " -cass """ . romPath . "\" . romName . romExtension . """"
						}Else If (mameID = "n64dd")		; Nintendo 64DD
						{
							N64RomFile := new FIle(romPath . "\" . romName . ".n64")
							If N64RomFile.Exist()
								param1 := " -cart """ . N64RomFile.FileFullPath . """ -quik """ . romPath . "\" . romName . romExtension . """"
							Else
								param1 := " -quik """ . romPath . "\" . romName . romExtension . """"
						}Else If StringUtils.Contains(mameID,"studio2|mpt02")		; RCA Studio 2
						{
							If (romExtension != ".txt")
								param1 := " -cart1 """ . romPath . "\" . romName . romExtension . """"
							Else {
								If StringUtils.Contains(romName,"Doodle")
									button2 := "A 1"	; Press 1 on P1 controller
								If StringUtils.Contains(romName,"Patterns")
									button2 := "A 2"	; Press 2 on P1 controller
								If StringUtils.Contains(romName,"Bowling")
									button2 := "A 3"	; Press 3 on P1 controller
								If StringUtils.Contains(romName,"Freeway")
									button2 := "A 4"	; Press 4 on P1 controller
								If StringUtils.Contains(romName,"Addition")
									button2 := "A 5"	; Press 5 on P1 controller
							}

							; Generate a lua script to press the Clear button so games will start
							ScriptFileName := GeneratePressButtonScript("Clear",button2)
							bootscript := " -script """ . ScriptFileName . """ -autoboot_delay 1"
						}Else If (mameID = "fmtowns" || mameID = "fmtmarty")	; Fujitsu FM Towns
						{
							If StringUtils.Contains(romExtension,"\.chd|\.cue")
								mediaDeviceType := "cdrm"
							Else
								mediaDeviceType := "flop1"

							param1 := " -" . mediaDeviceType . " """ . romPath . "\" . romName . romExtension . """"
						}
					} Else {	; Use Software List
						hashname := mameID
						param1 := " """ . romName . """" ; param1 used for launching from software lists

						If (mameID = "aes")	; SNK Neo Geo AES
						{	hashname := "neogeo"
							biosRegion := moduleIni.Read(romName, "BIOS_Region","asia",,1)
							param2 := " -bios " . biosRegion	; can also be japan, but the asian one has english menus for most games
						}
						CheckFile(emuPath . "\hash\" . hashname . ".xml","Could not find a software list for the system " . mameID) ;Check if software list for selected system exists
					}

					If (mameID = "vectrex") {	; GCE Vectrex
						VectrexArtFile := new File(emuPath . "\artwork\Vectrex\" . romName . ".png")
						param2 := " -view "  . (If VectrexArtFile.Exist() ? ("""" . romName . """") : "standard")	; need overlays extracted in the artwork\vectres folder. PNGs must match romName
					}

					sysStaticParams := If sysStaticParams != ""  ? A_Space . sysStaticParams : "" ; tacking on a space in case user forgot to add one
					romParams := If romParams != ""  ? A_Space . romParams : "" ; tacking on a space in case user forgot to add one

					mameRomPaths := StringUtils.Replace(romPathFromIni,"|",`"`;`",1)	; replace all instances of | to ; in the Rom_Path from RL's Emulators.ini so MAME knows where to find your roms
					mameRomPaths := " -rompath """ .  (If mameRomName ? romPath : mameRomPaths) . (If mameBiosPath ? ";" . mameBiosPath : "") . """"	; If using an alt rom, only supply mame with the path to that rom so it doesn't try to use the original rom. If a bios path was supplied, add it into the rom paths sent to MAME

					If StringUtils.InStr(romParams,"-rompath")
						ScriptError("""-rompath"" is defined as a parameter for " . romName . ". The MAME module fills this automatically so please remove this from Params in the module's settings.")
					If StringUtils.InStr(sysStaticParams,"-rompath")
						ScriptError("""-rompath"" is defined as a parameter for " . mameSystem . ". The MAME module fills this automatically so please remove this from Params in the module's settings.")

					; use a custom rom name, not the one from the db
					If mameRomName {
						MameRomOriginalFile := new File(romPath . "\" . romName . romExtension)
						MameRomCustomFile := new File(romPath . "\" . mameRomName . romExtension)
						errLvl := MameRomOriginalFile.Move(MameRomCustomFile.FileFullPath)	; rename rom to match what mame needs
						originalRomName := romName	; store romName from database so we know what to rename it back to later
						romName := mameRomName
						If errLvl
							ScriptError("There was a problem renaming " . romName . "  to " . mameRomName . " in " . romPath . ". Please check you have write permission to this folder/file and you don't already have a file named """ . mameRomName . """ in your rom folder.",8)
						Else	; if rename was successful, set var so we know to move it back later
							fileRenamed := 1
					}

					; use a custom cfg file if it exists and append it to param1
					CustomCFGPath := new Folder(emuPath . "\cfg\" . mameID . "\" . dbName)
					If CustomCFGPath.Exist()
						param1 := " -cfg_directory """ . CustomCFGPath.FileFullPath . """" . param1

					If (bilinearFilter = "true")
						bilinearEnabled := " -filter"
					Else
						bilinearEnabled := " -nofilter"

					If (cheatMode = "true") {
						CheatZipFile := new File(emuPath . "\cheat.zip")
						Cheat7zFile := new File(emuPath . "\cheat.7z")
						If (!CheatZipFile.Exist() && !Cheat7zFile.Exist())
							RLLog.Warning("Module - You have cheats enabled for " . MEmu . " but could not locate a ""cheat.zip"" or ""cheat.7z"" in " . emuPath)
						Else {
							RLLog.Info("Module - Cheat file found in " . emuPath)
							If cheatModeKey	; if user wants to use a key to enable CheatMode
								cheatEnabled := If XHotkeyAllKeysPressed(cheatModeKey) ? " -cheat" : ""	; only enables cheatMode when key is held down on launch
							Else	; no cheat mode key defined
								cheatEnabled := " -cheat"
						}
					}

					If (RequiresReset = "true")
					{	; Generate a lua script to send a system soft reset
						ScriptFileName := GenerateSoftResetScript()
						bootscript := " -script """ . ScriptFileName . """ -autoboot_delay 1"
					}

					HideAppStart(hideEmuObj,hideEmu)



					If (legacyMode = "true")
					{	RLLog.Info("Module - Running MAME in legacy Mode")
						errLvl := primaryExe.Run(" " . (If mameID = "MAME" ? romName : mameID . param1 . param2 . param3 . param4 . param5 . param6) . fullscreenParam . cheatEnabled . volume . mameRomPaths . sysStaticParams . romParams, winstate,,,,1)	; wrap quotes around exe
					} Else {
						RLLog.Info("Module - Running MAME in non-legacy mode")
						; If (networkPlayers = 1 || !linkEnabledGame) {
						If !networkSession {
							RLLog.Info("Module - SinglePlayer session")
							errLvl := primaryExe.Run(" " . (If mameID = "MAME" ? romName :  mameID . param1 . param2 . param3 . param4 . param5 . param6 ) . ctrlrFile . mameRomPaths . sysStaticParams . romParams . fullscreenParam . hlsl . glsl . cheatEnabled . volume . inipath . hashpath . verticalRotationMode . videomode . artworkCrop . useBezels . useOverlays . useBackdrops . useCpanels . useMarquees . autosave . bootscript . bilinearEnabled . " -skip_gameinfo", winstate,,,,1)	; wrap quotes around exe
						} Else { ; multiplayer game run
							RLLog.Info("Module - Network/MultiPlayer session")
							BuildNVRAMObject()	; build nvram object
							;screen positions
							screenPos := []
							screenPos := SplitScreenPos(networkPlayers,splitScreen2PlayersMode,splitScreen3PlayersMode,maxPlayersPerMonitor)
							If (networkType="localLink")
								globalInputs := " -global_inputs"		; tell mame to accept inputs when its window is not focused
							Loop % networkPlayers
							{
								currentPlayer := A_Index
								; Update NVRAM setting(s)
								If (enableNVRAMAutomation = "true") {
									If nvramSettings[romName]["Settings"]["Credit"]["Position"].MaxIndex() {	; If nvram settings exist for this game
										NVRamFile%currentPlayer% := new File(emuPath . "\nvram" . (If currentPlayer = 1 ? "" : currentPlayer) . "\" . romName . "\" . nvramSettings[romName]["Settings"]["NVRAM"]["File"][1])
										If NVRamFile%currentPlayer%.Exist() {
											RLLog.Info("Module - Checking nvram file(s) for required changes")
											If (networkType = "localLink") {	; only local link is supported for now
												; Parse through each setting of each player and lookup the position to write new setting to the nvram file
												for playerOptionLabel, selectedPlayerOption in nvramSettings[romName]["Player"][currentPlayer] ;looping on each player selected options
													for index, setting in nvramSettings[romName]["Settings"][playerOptionLabel]["Position"] ;Looping through hex values of the current option
														HexCompareWrite(NVRamFile%currentPlayer%.FileFullPath,nvramSettings[romName]["Settings"][playerOptionLabel]["Position"][index],nvramSettings[romName]["Settings"][playerOptionLabel]["Option"][selectedPlayerOption][index])
												for index, playerCRC in nvramSettings[romName]["CRC"]["Player"][currentPlayer] ;looping on each player selected options
													HexCompareWrite(NVRamFile%currentPlayer%.FileFullPath,nvramSettings[romName]["Settings"]["CRC"]["Position"][index],nvramSettings[romName]["CRC"]["Player"][currentPlayer][index])
											} Else If (networkType = "Server") {
												RLLog.Info("Module - Converting this nvram to ""Master"" in: " . NVRamFile%currentPlayer%.FileFullPath)
												; RLLog.Info("Module - NVRAM automation for ""Server"" not supported at this time")	; only idea to get this to work is to duplicate nvram edit code from local link here but only set player 1
												HexCompareWrite(NVRamFile%currentPlayer%.FileFullPath,nvramSettings[romName]["Settings"]["Link"]["Position"][1],nvramSettings[romName]["Settings"]["Link"]["Option"]["Master"][1])
											} Else If (networkType = "Client") {
												RLLog.Info("Module - Converting this nvram to ""Slave"" in: " . NVRamFile%currentPlayer%.FileFullPath)
												; RLLog.Info("Module - NVRAM automation for ""Client"" not supported at this time")	; only idea to get this to work is to duplicate nvram edit code from local link here but only set player 2
												HexCompareWrite(NVRamFile%currentPlayer%.FileFullPath,nvramSettings[romName]["Settings"]["Link"]["Position"][1],nvramSettings[romName]["Settings"]["Link"]["Option"]["Slave"][1])
											}
										} Else
											RLLog.Info("Module - Did not find an NVRAM file to update for player " . currentPlayer . " (Ignore this if this is the first time you are launching this rom): " . NVRamFile%currentPlayer%.FileFullPath)
									} Else
										RLLog.Info("Module - This rom does not contain an entry in the NVRAM object")
								}
								;;Run Line for each of the multiplayer MAME instances using the nvramPath and cfgPath variables to the extra mames
								MameMultiPlayer%currentPlayer%Exe := new Process(emuPath . "\" . executable)	; instantiate a new process for each player
								errLvl := MameMultiPlayer%currentPlayer%Exe.Run(" " . (If mameID = "MAME" ? romName : mameID . param1 . param2 . param3 . param4 . param5 . param6) . ctrlrFile . mameRomPaths . multiPlayerObj[currentPlayer]["CfgDir"] . multiPlayerObj[currentPlayer]["NvramDir"] . globalInputs . multiPlayerObj[currentPlayer]["LocalHost"] . multiPlayerObj[currentPlayer]["LocalPort"] . multiPlayerObj[currentPlayer]["RemoteHost"] . multiPlayerObj[currentPlayer]["RemotePort"] . sysStaticParams . romParams . fullscreenParam . hlsl . glsl . cheatEnabled . volume . inipath . hashpath . verticalRotationMode . videomode . artworkCrop . useBezels . useOverlays . useBackdrops . useCpanels . useMarquees . autosave . bootscript . bilinearEnabled . " -skip_gameinfo", winstate,,,,1)	; wrap quotes around exe
								MameMultiPlayer%currentPlayer%Exe.Process("Exist")	; get PID
								MameMultiPlayer%currentPlayer%Window := new Window(new WindowTitle(,,,,MameMultiPlayer%currentPlayer%Exe.PID))
								MameMultiPlayer%currentPlayer%Window.ExcludeTitle := "MAMEOutput"	; ignore the mame debug window
								MameMultiPlayer%currentPlayer%Window.Wait()
							}

							Loop % networkPlayers
							{
								MameMultiPlayer%A_Index%Window.Get("ID")
								MameMultiPlayer%A_Index%Window.RemoveTitlebar()
								MameMultiPlayer%A_Index%Window.ToggleMenu()
								MameMultiPlayer%A_Index%Window.RemoveBorder()
								MameMultiPlayer%A_Index%Window.Move(screenPos[A_Index].X, screenPos[A_Index].Y, screenPos[A_Index].W, screenPos[A_Index].H)
								TimerUtils.Sleep(50)
							}
						}
					}

					If errLvl {
						If (errLvl = 1)
							Error := "Failed Validity"
						Else If(errLvl = 2)
							Error := "Missing Files"
						Else If(errLvl = 3)
							Error := "Fatal Error"
						Else If(errLvl = 4)
							Error := "Device Error"
						Else If(errLvl = 5)
							Error := "Game Does Not Exist"
						Else If(errLvl = 6)
							Error := "Invalid Config"
						Else If StringUtils.Contains(errLvl,"7|8|9")
							Error := "Identification Error"
						Else
							Error := "MAME Error"
						RLLog.Error("MAME Error - " . Error)
					}

					emuPrimaryWindow.Wait()
					emuPrimaryWindow.WaitActive()

					If (mameID = "ti99_4a")	; Texas Instruments TI 99-4A
					{
						KeyUtils.SendCommand("X",1000)	; To bypass the first screen
						If (Command)
							KeyUtils.SendCommand(Command,,,,,,CommandWaitOffset)	; Send command affect it with an offset if needed
					}

					; Close the debugger window if exists
					If (closeDebugWindow = "true") {
						emuDebugWindow.Wait(2)
						emuDebugWindow.Close()
					}

					BezelDraw()
					HideAppEnd(hideEmuObj,hideEmu)

					If (networkPlayers = 1 || !linkEnabledGame) {
						emuPrimaryWindow.Show()	; Show the emulator
					} Else {
						Loop % networkPlayers
							MameMultiPlayer%A_Index%Window.Show()		; Show the emulator
						MameMultiPlayer1Window.Activate()		; Activate first player window so that first player can use keyboard instead of last player
					}

					FadeInExit()
					primaryExe.Process("WaitClose")
					7zCleanUp()
					BezelExit()

					If fileRenamed {	; Rename file back to alternate name for next launch
						errLvl := MameRomCustomFile.Move(MameRomOriginalFile.FileFullPath)	; Put original name back
						If errLvl	; If rename was successful, set var so we know to move it back later
							ScriptError("There was a problem renaming " . MameRomCustomFile.FileName . " back to " . MameRomOriginalFile.FileName)
					}

					FadeOutExit()
					ExitModule()


					ListXMLInfo(rom){	; Returns MAME info about parent rom, orientation angle, resolution
						Global emuFullPath,emuPath,RLLog
						ListXMLObject := Object()
						listXMLVarLog := ""
						ComSpecProcess := new Process(ComSpec)	; instantiate cmd.exe process
						ComSpecProcess.RunDirect(comspec . " /c " . """" . emuFullPath . """" . " -listxml " . rom . " > tempBezel.txt", emuPath, "Hide", 1)	; Run from emu's folder
						TempBezelFile := new File(emuPath . "\tempBezel.txt")
						TempBezelFile.Read()
						StringUtils.RegExMatch(TempBezelFile.Text, "s)<(machine|game).*name=" . """" . rom . """" . ".*" . "cloneof=" . """" . "[^""""]*", parent)
						StringUtils.RegExMatch(parent,"cloneof=" . """" . ".*", parent)
						StringUtils.RegExMatch(parent,"""" . ".*", parent)
						parent := StringUtils.TrimLeft(parent, 1)
						StringUtils.RegExMatch(TempBezelFile.Text, "s)<display.*rotate=" . """" . "[0-9]+" . """", angle)
						StringUtils.RegExMatch(angle,"[0-9]+", angle, "-6")
						StringUtils.RegExMatch(TempBezelFile.Text, "s)<display.*width=" . """" . "[0-9]+" . """", width)
						StringUtils.RegExMatch(width,"[0-9]+", width, "-6")
						StringUtils.RegExMatch(TempBezelFile.Text, "s)<display.*height=" . """" . "[0-9]+" . """", Height)
						StringUtils.RegExMatch(Height,"[0-9]+", Height, "-6")
						StringUtils.RegExMatch(TempBezelFile.Text, "s)<control.*ways=" . """" . "[0-9]+" . """", Ways)
						StringUtils.RegExMatch(Ways,"[0-9]+", Ways, "-6")
						logVars := "Parent|Angle|Height|Width|Ways"
						Loop, Parse, logVars, |
						{
							currentobj := {}
							currentobj.Label := A_Loopfield
							currentobj.Value := %A_Loopfield%
							ListXMLObject.Insert(currentobj["Label"], currentobj)
							listXMLLog .= "`r`n`t`t`t`t`t" . currentobj["Label"] . " = " . currentobj["Value"]
						}
						RLLog.Info("Module - MAME ListXML values: " . listXMLLog)
						If (ListXMLObject["Height"].Value > ListXMLObject["Width"].Value) {
							ListXMLObject["Angle"].Value := true
							RLLog.Info("Module - This game's height is greater than its width, forcing vertical mode")
						}
						TempBezelFile.Delete()
						Return ListXMLObject
					}

					GenerateSoftResetScript(){	; Generates a lua script to send a soft reset to MAME
						Global emuPath

						SoftScriptFile := new File(emuPath . "\soft_reset.lua")
						ScriptFileName := emuPath . "\soft_reset.lua"
						SoftScriptFile.Delete()

						AppendTxt :="
						(
						-- This script will reset the machine
						local function reset_machine()
						  if resetcounter == nil then
							manager:machine():soft_reset();
							resetcounter = 1;
						  end
						end
						if resetcounter == nil then
						  emu.wait(1);
						  reset_machine();
						end
						)"
						SoftScriptFile.Append(AppendTxt)
						Return SoftScriptFile.FileFullPath
					}

					GeneratePressButtonScript(button1,button2=""){	; Generates a lua script to send a soft reset to MAME
						Global emuPath

						PressScriptFile := new File(emuPath . "\press_button.lua")
						PressScriptFile.Delete()
						If (button2) {
							button2str := "`n`t`temu.wait(1);`n`t`tioport[""" . button2 . """]:write(1);`n`t`temu.wait(1);`n`t`tioport[""" . button2 . """]:write(0);"
						}

						AppendTxt :="
						(
						local function press_button()
						  if resetcounter == nil then
							ioport[""" . button1 . """]:write(1);
							emu.wait(1);
							ioport[""" . button1 . """]:write(0);
							resetcounter = 1;" . button2str . "
						  end
						end
						if resetcounter == nil then
						  emu.wait(1);
						  press_button();
						end
						)"
						PressScriptFile.Append(AppendTxt)
						Return PressScriptFile.FileFullPath
					}

					BuildNVRAMObject() {
						Global nvramSettings,RLLog
						RLLog.Info("BuildNVRAMObject - Started")

						nvramSettings := {}

						nvramSettings["vr"] := {}
						nvramSettings["vr"]["Settings"] := {"BiosCounter":{"Position":["248"], "Option":{0:["00"], 1:["01"], 2:["02"], 3:["03"]}}, "Cabinet":{"Position":["52"], "Option":{"Special":["00"], "Standard":["01"], "Upright":["02"], "2PLink":["03"]}}, "Color":{"Position":["68"], "Option":{"Red":["00"], "Blue":["01"], "Yellow":["02"], "Green":["03"], "Black":["04"], "Pink":["05"], "SkyBlue":["06"], "Orange":["07"]}}, "Country":{"Position":["54"], "Option":{"Japan":["00"], "USA":["01"], "Export":["02"]}}, "Course":{"Position":["66"], "Option":{"Vote":["00"], "Beginner":["01"], "Middle":["02"], "Expert":["03"]}}, "CRC":{"Position":["16","18"]}, "Credit":{"Position":["32","40"], "Option":{"1":["00","00"], "Freeplay":["1A","01"]}}, "Difficulty":{"Position":["64"], "Option":{"Easy":["00"], "Normal":["01"], "Hard":["02"], "Hardest":["03"]}}, "Link":{"Position":["24"], "Option":{"None":["00"], "Master":["01"], "Slave":["02"], "Live":["03"]}}, "Monitor":{"Position":["22"], "Option":{"Standard":["00"], "Wide":["01"]}}, "NVRAM":{"File":["nvram"]}, "Race":{"Position":["70"], "Option":{"Normal":["00"], "Grandprix":["01"]}}, "StartCoin":{"Position":["42"], "Option":{1:["01"], 2:["02"], 3:["03"], 4:["04"], 5:["05"]}}}

						nvramSettings["vr"]["Player"] := {}
						nvramSettings["vr"]["Player"].Insert(1, {"BiosCounter":"3", "Cabinet":"Standard", "Color":"Red", "Country":"USA", "Course":"Vote", "Credit":"Freeplay", "Difficulty":"Normal", "Link":"Master", "Monitor":"Wide", "Race":"Normal", "StartCoin":"1"})
						nvramSettings["vr"]["Player"].Insert(2, {"BiosCounter":"3", "Cabinet":"Standard", "Color":"Blue", "Country":"USA", "Course":"Vote", "Credit":"Freeplay", "Difficulty":"Normal", "Link":"Slave", "Monitor":"Wide", "Race":"Normal", "StartCoin":"1"})
						nvramSettings["vr"]["Player"].Insert(3, {"BiosCounter":"3", "Cabinet":"Standard", "Color":"Yellow", "Country":"USA", "Course":"Vote", "Credit":"Freeplay", "Difficulty":"Normal", "Link":"Slave", "Monitor":"Wide", "Race":"Normal", "StartCoin":"1"})
						nvramSettings["vr"]["Player"].Insert(4, {"BiosCounter":"3", "Cabinet":"Standard", "Color":"Green", "Country":"USA", "Course":"Vote", "Credit":"Freeplay", "Difficulty":"Normal", "Link":"Slave", "Monitor":"Wide", "Race":"Normal", "StartCoin":"1"})
						nvramSettings["vr"]["Player"].Insert(5, {"BiosCounter":"3", "Cabinet":"Standard", "Color":"Black", "Country":"USA", "Course":"Vote", "Credit":"Freeplay", "Difficulty":"Normal", "Link":"Slave", "Monitor":"Wide", "Race":"Normal", "StartCoin":"1"})
						nvramSettings["vr"]["Player"].Insert(6, {"BiosCounter":"3", "Cabinet":"Standard", "Color":"Pink", "Country":"USA", "Course":"Vote", "Credit":"Freeplay", "Difficulty":"Normal", "Link":"Slave", "Monitor":"Wide", "Race":"Normal", "StartCoin":"1"})
						nvramSettings["vr"]["Player"].Insert(7, {"BiosCounter":"3", "Cabinet":"Standard", "Color":"SkyBlue", "Country":"USA", "Course":"Vote", "Credit":"Freeplay", "Difficulty":"Normal", "Link":"Slave", "Monitor":"Wide", "Race":"Normal", "StartCoin":"1"})
						nvramSettings["vr"]["Player"].Insert(8, {"BiosCounter":"3", "Cabinet":"Standard", "Color":"Orange", "Country":"USA", "Course":"Vote", "Credit":"Freeplay", "Difficulty":"Normal", "Link":"Slave", "Monitor":"Wide", "Race":"Normal", "StartCoin":"1"})
						nvramSettings["vr"]["CRC"] := {"Player":{1:["06","21"], 2:["3C","C7"], 3:["0E","5F"], 4:["FF","D8"], 5:["4B","7F"], 6:["BA","F8"], 7:["88","60"], 8:["79","E7"]}}

						nvramSettings["vformula"] := {}
						nvramSettings["vformula"]["Settings"] := {"BiosCounter":{"Position":["248"], "Option":{0:["00"], 1:["01"], 2:["02"], 3:["03"]}}, "Color":{"Position":["68"], "Option":{"Red":["00"], "Blue":["01"], "Yellow":["02"], "Green":["03"], "Black":["04"], "Pink":["05"], "SkyBlue":["06"], "Orange":["07"]}}, "Country":{"Position":["54"], "Option":{"Japan":["00"], "USA":["01"], "Export":["02"]}}, "Course":{"Position":["66"], "Option":{"Vote":["00"], "Beginner":["01"], "Middle":["02"], "Expert":["03"]}}, "CRC":{"Position":["16","18"]}, "Credit":{"Position":["32","40"], "Option":{"1":["00","00"], "Freeplay":["1A","01"]}}, "Difficulty":{"Position":["64"], "Option":{"Easy":["00"], "Normal":["01"], "Hard":["02"], "Hardest":["03"]}}, "Link":{"Position":["24"], "Option":{"None":["00"], "Master":["01"], "Slave":["02"], "Live":["03"]}}, "NVRAM":{"File":["nvram"]}, "Race":{"Position":["70"], "Option":{"Normal":["00"], "Grandprix":["01"]}}, "Sound":{"Position":["22"], "Option":{"On":["00"], "Off":["01"]}}, "StartCoin":{"Position":["42"], "Option":{1:["01"], 2:["02"], 3:["03"], 4:["04"], 5:["05"]}}}

						nvramSettings["vformula"]["Player"] := {}
						nvramSettings["vformula"]["Player"].Insert(1, {"BiosCounter":"1", "Color":"Red", "Country":"USA", "Course":"Vote", "Credit":"Freeplay", "Difficulty":"Normal", "Link":"Master", "Race":"Normal", "Sound":"On", "StartCoin":"1"})
						nvramSettings["vformula"]["Player"].Insert(2, {"BiosCounter":"1", "Color":"Blue", "Country":"USA", "Course":"Vote", "Credit":"Freeplay", "Difficulty":"Normal", "Link":"Slave", "Race":"Normal", "Sound":"On", "StartCoin":"1"})
						nvramSettings["vformula"]["Player"].Insert(3, {"BiosCounter":"1", "Color":"Yellow", "Country":"USA", "Course":"Vote", "Credit":"Freeplay", "Difficulty":"Normal", "Link":"Slave", "Race":"Normal", "Sound":"On", "StartCoin":"1"})
						nvramSettings["vformula"]["Player"].Insert(4, {"BiosCounter":"1", "Color":"Green", "Country":"USA", "Course":"Vote", "Credit":"Freeplay", "Difficulty":"Normal", "Link":"Slave", "Race":"Normal", "Sound":"On", "StartCoin":"1"})
						nvramSettings["vformula"]["Player"].Insert(5, {"BiosCounter":"1", "Color":"Black", "Country":"USA", "Course":"Vote", "Credit":"Freeplay", "Difficulty":"Normal", "Link":"Slave", "Race":"Normal", "Sound":"On", "StartCoin":"1"})
						nvramSettings["vformula"]["Player"].Insert(6, {"BiosCounter":"1", "Color":"Pink", "Country":"USA", "Course":"Vote", "Credit":"Freeplay", "Difficulty":"Normal", "Link":"Slave", "Race":"Normal", "Sound":"On", "StartCoin":"1"})
						nvramSettings["vformula"]["Player"].Insert(7, {"BiosCounter":"1", "Color":"SkyBlue", "Country":"USA", "Course":"Vote", "Credit":"Freeplay", "Difficulty":"Normal", "Link":"Slave", "Race":"Normal", "Sound":"On", "StartCoin":"1"})
						nvramSettings["vformula"]["Player"].Insert(8, {"BiosCounter":"1", "Color":"Orange", "Country":"USA", "Course":"Vote", "Credit":"Freeplay", "Difficulty":"Normal", "Link":"Slave", "Race":"Normal", "Sound":"On", "StartCoin":"1"})
						nvramSettings["vformula"]["CRC"] := {"Player":{1:["F2","EB"], 2:["C8","0D"], 3:["FA","95"], 4:["0B","12"], 5:["BF","B5"], 6:["4E","32"], 7:["7C","AA"], 8:["8D","2D"]}}

						RLLog.Info("BuildNVRAMObject - Ended")
					}

					BezelLabel:
						emuConsoleWindow.Set("Transparent",0)
					Return

					HaltEmu:
						If (pauseMethod = 1)
						{	disableSuspendEmu := "true"
							disableRestoreEmu := "true"
							emuPrimaryWindow.PostMessage("0x211",1)
						} Else If (pauseMethod = 2)
						{	disableSuspendEmu := "true"
							emuPrimaryWindow.PostMessage("0x211",1)
						} Else If (pauseMethod = 3)
						{	disableSuspendEmu := "true"
							disableRestoreEmu := "true"
							emuPrimaryWindow.PostMessage(0x0400+6,1)
						} Else If (pauseMethod = 4)
						{	disableSuspendEmu := "true"
							emuPrimaryWindow.PostMessage(0x0400+6,1)
						} Else If (pauseMethod = 5)
						{	disableSuspendEmu := "true"
							KeyUtils.Send("{P down}")
							TimerUtils.Sleep(1000)
							KeyUtils.Send("{P up} ")
						}
					Return
					RestoreEmu:
						If (pauseMethod = 1)
							emuPrimaryWindow.PostMessage("0x212",1)
						Else If (pauseMethod = 2)
							emuPrimaryWindow.PostMessage("0x212",1)
						Else If (pauseMethod = 3)
							emuPrimaryWindow.PostMessage(0x0400+6,0)
						Else If (pauseMethod = 4)
							emuPrimaryWindow.PostMessage(0x0400+6,0)
						Else If (pauseMethod = 5) {
							disableSuspendEmu := "true"
							KeyUtils.Send("{P down}")
							TimerUtils.Sleep(1000)
							KeyUtils.Send("{P up} ")
						}
						emuPrimaryWindow.Activate()
					Return

					CloseProcess:
						FadeOutStart()
						If (networkSession && networkPlayers > 1) {
							Loop % networkPlayers {
								MameMultiPlayer%A_Index%Window.Close()
								MameMultiPlayer%A_Index%Window.WaitClose()
							}
						} Else
							emuPrimaryWindow.Close()
					Return

12:25:27:679 | RL |      INFO  | +0     | BuildScript - Loaded Pause scripts
12:25:27:694 | RL |      INFO  | +15    | BuildScript - Loaded Multi-Player scripts
12:25:27:694 | RL |      INFO  | +0     | BuildScript - Loaded Statistics.ahk script
12:25:27:694 | RL |      INFO  | +0     | BuildScript - "D:\FrontEnds\RocketLauncher\Lib\User Functions\Global.ahk" not found
12:25:27:694 | RL |      INFO  | +0     | BuildScript - "D:\FrontEnds\RocketLauncher\Lib\User Functions\Arcade.ahk" not found
12:25:27:694 | RL |      INFO  | +0     | BuildScript - "D:\FrontEnds\RocketLauncher\Lib\User Functions\Emulators\MAME.ahk" not found
12:25:27:710 | RL |      INFO  | +16    | BuildScript - "D:\FrontEnds\RocketLauncher\Lib\User Functions\Arcade\Emulators\MAME.ahk" not found
12:25:27:710 | RL |      INFO  | +0     | BuildScript - "D:\FrontEnds\RocketLauncher\Lib\User Functions\Arcade\10yard85.ahk" not found
12:25:27:710 | RL |      INFO  | +0     | BuildScript - Finished injecting functions into module
12:25:27:710 | RL |      INFO  | +0     | Main - Module is built
12:25:27:710 | RL |      INFO  | +0     | CheckFile - Checking if D:\FrontEnds\RocketLauncher\AutoHotkey.dll exists
12:25:27:726 | RL |     DEBUG  | +16    | CheckFile - Attributes:
					FileDescription         	AutoHotkey_H ANSI 32-bit
					FileVersion             	1.1.13.00
					InternalName            	AutoHotkey_H
					LegalCopyright          	Copyright (C) 2003-2013
					OriginalFilename        	AutoHotkey.exe
					ProductName             	AutoHotkey_H
					ProductVersion          	1.1.13.00
					File Size:			802304 bytes
					Created:			1/10/2019 - 1:08:46 AM
					Modified:			1/3/2017 - 9:42:44 PM
12:25:27:741 | RL |      INFO  | +15    | Main - Hiding taskbar
12:25:27:741 | RL |     TRACE  | +0     | Window.__New - Created: "ahk_class Shell_TrayWnd"
12:25:27:741 | RL |     TRACE  | +0     | Window.__New - Created: "ahk_class Button"
12:25:27:741 | RL |     TRACE  | +0     | Window.Hide - Hiding window "ahk_class Shell_TrayWnd"
12:25:27:866 | RL |     TRACE  | +125   | Window.Hide - Hiding window "ahk_class Button"
12:25:27:866 | RL |      INFO  | +0     | Main - Starting timer to watch if Front End gets displaced and restore it if it does.
12:25:27:866 | RL |      INFO  | +0     | Main - Running module
12:25:28:304 | MD |      INFO  | +N/A   | Module initialized
12:25:28:304 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Started
12:25:28:304 | MD |     DEBUG  | +0     | XHotkeyTableCreation - KeyGroup ~LControl not in TableKeyGroups
12:25:28:335 | MD |     DEBUG  | +31    | XHotkeyTableCreation - Post loop 1 check
12:25:28:335 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Post loop 2 check
12:25:28:335 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Using standard Hotkey method for key(s): "~LControl" to call label: "CloseProcess"
12:25:28:335 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Ended
12:25:28:335 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Started
12:25:28:335 | MD |     DEBUG  | +0     | XHotkeyTableCreation - KeyGroup ~4joy18 not in TableKeyGroups ~LControl,
12:25:28:366 | MD |     DEBUG  | +31    | XHotkeyTableCreation - Post loop 1 check
12:25:28:366 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Post loop 2 check
12:25:28:366 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Using standard Hotkey method for key(s): "~4joy18" to call label: "CloseProcess"
12:25:28:366 | MD |     DEBUG  | +0     | XHotkeyTableCreation - Ended
12:25:28:366 | MD |      INFO  | +0     | CheckFile - Checking if D:\FrontEnds\RocketLauncher\Utilities\JoyToKey\JoyToKey.exe exists
12:25:59:124 | RL |     ERROR  | +31250 | ExitScript - User pressed Exit_Script_Key to force RocketLauncher shutdown
12:25:59:124 | RL |      INFO  | +0     | ExitScript - Started
12:25:59:139 | RL |     DEBUG  | +16    | Registry.Read - Reading from Registry : RootKey=HKEY_LOCAL_MACHINE, SubKey=System\CurrentControlSet\Control\Windows, ValueName=ErrorMode,RegistryVersion=32
12:25:59:155 | RL |     DEBUG  | +15    | Registry.Read - Registry Read finished, returning 0
12:25:59:155 | RL |     TRACE  | +0     | StringUtils.Contains - "true" contains "true|kill" at position 1
12:25:59:155 | RL |      INFO  | +0     | ExitScript - Restoring taskbar
12:25:59:155 | RL |     TRACE  | +0     | Window.Show - Unhiding window "ahk_class Shell_TrayWnd"
12:25:59:280 | RL |     TRACE  | +125   | Window.Show - Unhiding window "ahk_class Button"
12:25:59:327 | RL |      INFO  | +47    | SystemCursor - Restoring mouse cursor
12:25:59:389 | RL |      INFO  | +63    | ExitScript - Restored cursor
12:25:59:389 | RL |      INFO  | +0     | ExitScript - Ended
 

Spawk

Banned
These are the reasons why I personally would only ever use wired gamepads. And it's ok to me, there was no such thing as wireless back when I was playing any of these systems.

Still, I would be curious if JTK could help your situation at all. It kind of relies on the joypad being recognized as such in windows to work as well. That would remove any direct bindings in RL though so the game could launch without error. Will "pause" work at that point if you turned on the gamepad though? I am really not sure. Please share your results if you try.
 

pofo14

Member
These are the reasons why I personally would only ever use wired gamepads. And it's ok to me, there was no such thing as wireless back when I was playing any of these systems.

Still, I would be curious if JTK could help your situation at all. It kind of relies on the joypad being recognized as such in windows to work as well. That would remove any direct bindings in RL though so the game could launch without error. Will "pause" work at that point if you turned on the gamepad though? I am really not sure. Please share your results if you try.

I didn't try with the XBOX 360 controller yet - but I did a quick test with a retro-bit NES USB Gamepad, and it worked. I mapped a virtual button to be the combo of pressing Select+Start together. Then mapped that virtual button to my key that opens Pause. Below is the JoyToKey profile for NES.

Code:
[General]
FileVersion=64
NumberOfJoysticks=2
NumberOfButtons=32
DisplayMode=2
UseDiagonalInput=0
UsePOV8Way=0
Threshold=20
Threshold2=20
KeySendMode=0
SoundFile=
RepeatSameKeyInSequence=0
ImageFile=

[ButtonAlias]
Button01=64, 65, -1

[Joystick 1]
Button01=1, 6D:00:00:00, 0.000, 0, 0
 

pofo14

Member
USB game pad so wired yeah? not the same thing.


Sent from my iPhone using Tapatalk

With this approach it doesn't matter if it is wired or not. I set it up with the Wireless 360 controller as well. That JoyToKey profile has the viritual button 14 setup for a combo press of the Back and Start button - and sends in the key press for Pause. The other mappings are for the Dpad and buttons to navigate in pause.

Since there is no Joystiack mapping in Rocket Launcher it loads with the controller on or off.

Code:
[General]
FileVersion=64
NumberOfJoysticks=2
NumberOfButtons=32
DisplayMode=2
UseDiagonalInput=0
UsePOV8Way=0
RepeatSameKeyInSequence=0
Threshold=20
Threshold2=20
KeySendMode=0
SoundFile=
ImageFile=

[ButtonAlias]
Button14=62, 63, -1

[Joystick 2]
Button14=1, 6D:00:00:00, 0.000, 0, 0
POV1-1=1, 26:00:00:00, 0.000, 0, 0
POV1-3=1, 27:00:00:00, 0.000, 0, 0
POV1-5=1, 28:00:00:00, 0.000, 0, 0
POV1-7=1, 25:00:00:00, 0.000, 0, 0
Button01=1, 41:00:00:00, 0.000, 0, 0
Button02=1, 53:00:00:00, 0.000, 0, 0
 

Spawk

Banned
That would remove any direct bindings in RL though so the game could launch without error.

Yes, I was aware it would load.

Will "pause" work at that point if you turned on the gamepad though? I am really not sure.

Just wasn't sure the gamepad would be "recognized" turning it on after the game/RL was already loaded. Generally programs want joysticks on before you start them. Wired is no problem as they are always recognized as such when the program starts. So I had this vision that you would have to have a wireless joypad on before you actually start a game (RL).
 
Top