Thanks Thanks:  0

Thread: Mednafen Launching Issue After Initial Launch

Results 1 to 1 of 1
  1. Collapse Details
    Mednafen Launching Issue After Initial Launch 
    #1
    Junior Member
    MainSecondary
    Join Date
    Apr 2015
    Posts
    16
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site
    Hey guys, I'm having a problem with Mednafen and my Turbo Grafx/PC Engine systems...Launching any game works the first time, but if I attempt to exit, and relaunch another Turbo Grafx game, the emulator launches and I can hear it, but it fails to become the focused application and I am left looking at the Hyperspin menu. The odd thing is that this is only happening on my arcade cabinet computer..... it behaves correctly on my laptop. Can anyone suggest some troubleshooting steps I should be doing to fix this or point me in the right direction? Why would the first launch work perfect but subsequent launches fail to bring the app into focus? I can't post my log file the moment but figured I'd ask anyway.

    I'm running the latest Rocket Launcher with the latest module for Mednafen.


    EDIT: Attached log file. In this example I launched Bonk's Adventure first, which works fine, exited, then launched Bonk's Revenge which, as described, fails to appear on top of Hyperspin. Hoping there's a clue in here to solve the problem....

    Code:
    09:19:18:939 | RL |      INFO  | +N/A   | Main - RocketLauncher v1.2.0.1 (www.rlauncher.com)
    09:19:19:049 | RL |      INFO  | +109   | Main - System Specs:
    					RocketLauncher Dir: X:\Hyperspin\RocketLauncher
    					RocketLauncher is: 32-bit
    					OS: Microsoft Windows 8.1 Pro
    					SKU: Professional
    					Total Memory: 8120.32 MB
    					Free Memory: 7098.81 MB
    					Used Memory: 1021.516 MB
    					SystemType: 64-bit
    					Physical Processors: 1
    					Logical Processors: 4
    					GPU 1 Name: NVIDIA GeForce GTX 260
    					GPU 1 RAM: 896.00 MB
    					GPU 1 Driver Version: 9.18.13.4195
    					Sound 1 Device: High Definition Audio Device
    					Sound 1 Status: Enabled
    					Sound 2 Device: NVIDIA Virtual Audio Device (Wave Extensible) (WDM)
    					Sound 2 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): 2560x1440 (2560x1440 work) [32bit] [59hz] [Landscape]  (Primary)
    					Current AHK Desktop Width: 2560
    					Current AHK Desktop Height: 1440
    					Monitor #1 DPI: 100
    					ErrorMode: 0
    					AutoHotkey Path: C:\Program Files\AutoHotkey\AutoHotkey.exe
    					AHK Version: 1.1.13.00
    					Unicode: No
    09:19:19:049 | RL |      INFO  | +0     | CheckFile - Checking if X:\Hyperspin\RocketLauncher\RocketLauncher.exe exists
    09:19:19:049 | RL |      INFO  | +0     | Main - Using HyperSpin normal mode for version 1.5.1.0 found at: X:\Hyperspin\HyperSpin.exe
    09:19:19:049 | RL |      INFO  | +0     | Main - Raw CLI received: "NEC TurboGrafx-16 Bonk's Revenge (USA)"
    09:19:19:049 | RL |      INFO  | +0     | Main - Loading Front End Plugin: "HyperSpin"
    09:19:19:049 | RL |      INFO  | +0     | Process.Process - "Exist" "HyperSpin.exe" 
    09:19:19:049 | RL |      INFO  | +0     | Main - Detected HyperSpin.exe is currently running
    09:19:19:049 | RL |      INFO  | +0     | Main - HyperSpin.exe coordinates are x0 y0 w2560 h1440
    09:19:19:049 | RL |      INFO  | +0     | Main - RocketLauncher received "NEC TurboGrafx-16" and "Bonk's Revenge (USA)"
    09:19:19:064 | RL |      INFO  | +16    | Main - Did not find a "X:\Hyperspin\RocketLauncher\Settings\NEC TurboGrafx-16\Game Options.ini" file, skipping any game-specific options.
    09:19:19:064 | RL |      INFO  | +0     | Main - Bonk's Revenge (USA) is using the default emulator: Mednafen PCEngine
    09:19:19:064 | RL |      INFO  | +0     | Main - Checking for a [Mednafen PCEngine] section in X:\Hyperspin\RocketLauncher\Settings\NEC TurboGrafx-16\Emulators.ini
    09:19:19:064 | RL |      INFO  | +0     | Main - Checking for a [Mednafen PCEngine] section in X:\Hyperspin\RocketLauncher\Settings\Global Emulators.ini
    09:19:19:064 | RL |      INFO  | +0     | Main - Found [Mednafen PCEngine] in X:\Hyperspin\RocketLauncher\Settings\Global Emulators.ini
    09:19:19:064 | RL |      INFO  | +0     | CheckFile - Checking if X:\Hyperspin\RocketLauncher\Modules\Mednafen\Mednafen.ahk exists
    09:19:19:064 | RL |      INFO  | +0     | Main - CRC Check - CRC matches, this is an official unedited module.
    09:19:19:064 | RL |      INFO  | +0     | Main - Bonk's Revenge (USA) will use module: X:\Hyperspin\RocketLauncher\Modules\Mednafen\Mednafen.ahk
    09:19:19:096 | RL |      INFO  | +31    | Main - Using standard method with "Rom Extension" SkipChecks or without any SkipChecks.
    09:19:19:096 | RL |      INFO  | +0     | CheckFile - Checking if X:\Hyperspin\Emulators\NEC TurboGrafx-16\mednafen.exe exists
    09:19:19:096 | RL |      INFO  | +0     | Main - INI Keys read
    09:19:19:096 | RL |      INFO  | +0     | CheckFile - Checking if X:\Hyperspin\RocketLauncher\Module Extensions\7z.exe exists
    09:19:19:096 | RL |      INFO  | +0     | CheckFile - Checking if X:\Hyperspin\RocketLauncher\Module Extensions\7z.dll exists
    09:19:19:096 | RL |      INFO  | +0     | Main - "Bonk's Revenge (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
    09:19:19:096 | RL |      INFO  | +0     | CheckPaths - Started
    09:19:19:096 | RL |      INFO  | +0     | CheckPaths - Looking for rom: X:\Hyperspin\Roms\NEC TurboGrafx-16\Bonk's Revenge (USA).zip
    09:19:19:096 | RL |      INFO  | +0     | CheckPaths - Looking for rom by name in subfolder: X:\Hyperspin\Roms\NEC TurboGrafx-16\Bonk's Revenge (USA)\Bonk's Revenge (USA).zip
    09:19:19:096 | RL |      INFO  | +0     | CheckPaths - Rom not found
    09:19:19:096 | RL |      INFO  | +0     | CheckPaths - Looking for rom: X:\Hyperspin\Roms\NEC TurboGrafx-16\Bonk's Revenge (USA).cue
    09:19:19:096 | RL |      INFO  | +0     | CheckPaths - Looking for rom by name in subfolder: X:\Hyperspin\Roms\NEC TurboGrafx-16\Bonk's Revenge (USA)\Bonk's Revenge (USA).cue
    09:19:19:096 | RL |      INFO  | +0     | CheckPaths - Rom not found
    09:19:19:096 | RL |      INFO  | +0     | CheckPaths - Looking for rom: X:\Hyperspin\Roms\NEC TurboGrafx-16\Bonk's Revenge (USA).pce
    09:19:19:096 | RL |      INFO  | +0     | CheckPaths - Found rom: X:\Hyperspin\Roms\NEC TurboGrafx-16\Bonk's Revenge (USA).pce
    09:19:19:096 | RL |      INFO  | +0     | CheckPaths - Ended
    09:19:19:096 | RL |      INFO  | +0     | BuildScript - User Variables:
    					;----------------------------------------------------------------------------
    					; INJECTED VARIABLES
    					;----------------------------------------------------------------------------
    					
    					#NoTrayIcon
    					#InstallKeybdHook
    					MiscUtils.DetectHiddenWindows("On")
    					SetTitleMatchMode, 2
    					SendMode, Event
    					Global RLLog
    					Global RLObject
    					0 := "2"
    					rlPath := "X:\Hyperspin\RocketLauncher"
    					pluginPath := "X:\Hyperspin\RocketLauncher\Plugins"
    					pluginName := "HyperSpin"
    					pluginExt := ".plugin"
    					contextOnExit := ""
    					rlMode := ""
    					rlTitle := "RocketLauncher"
    					rlVersion := "1.2.0.1"
    					rlAuthor := "djvj"
    					rlURL := "www.rlauncher.com"
    					langFile := "X:\Hyperspin\RocketLauncher\Data\Language\Localization.ini"
    					primMonitor := "1"
    					frontendPID := "1880"
    					frontendPath := "X:\Hyperspin"
    					frontendExe := "HyperSpin.exe"
    					frontendExt := "exe"
    					frontendName := "HyperSpin"
    					frontendDrive := "X"
    					exitEmulatorKey := "H1000:Esc|h"
    					restoreFE := "false"
    					exitScriptKey := "vkBCsc033&vkBEsc034"
    					toggleCursorKey := "~e & ~t"
    					emuFullPath := "X:\Hyperspin\Emulators\NEC TurboGrafx-16\mednafen.exe"
    					emuPath := "X:\Hyperspin\Emulators\NEC TurboGrafx-16"
    					emuName := "Mednafen PCEngine"
    					emuExt := "exe"
    					baseRomPath := ""
    					romPath := "X:\Hyperspin\Roms\NEC TurboGrafx-16"
    					romPathFromIni := "X:\Hyperspin\Roms\NEC TurboGrafx-16"
    					romExtension := ".pce"
    					romExtensionOrig := ".pce"
    					romExtensions := "zip|cue|pce"
    					executable := "mednafen.exe"
    					systemDbName := "NEC TurboGrafx-16"
    					systemName := "NEC TurboGrafx-16"
    					dbPath := ""
    					dbName := "Bonk's Revenge (USA)"
    					dbExt := ""
    					romFoundByExt := ""
    					romName := "Bonk's Revenge (USA)"
    					romMapPath := ""
    					romMappingEnabled := "false"
    					romMappingLaunchMenuEnabled := "false"
    					romMappingFirstMatchingExt := "false"
    					romMappingShowAllRomsInArchive := "true"
    					romMappingNumberOfGamesByScreen := "7"
    					romMappingHideParent := "false"
    					romMappingMenuWidth := "400"
    					romMappingMenuMargin := "65"
    					romMappingTextFont := "Bebas Neue"
    					romMappingTextOptions := "cFFFFFFFF r4 s60 Bold"
    					romMappingDisabledTextColor := "ff888888"
    					romMappingTextSizeDifference := "7"
    					romMappingTextMargin := "15"
    					romMappingTitleTextFont := "Bebas Neue"
    					romMappingTitleTextOptions := "cFFFFFFFF r4 s90 Bold"
    					romMappingTitle2TextFont := "Bebas Neue"
    					romMappingTitle2TextOptions := "cFFFFFFFF r4 s22 Bold"
    					romMappingGameInfoTextFont := "Bebas Neue"
    					romMappingGameInfoTextOptions := "cFFFFFFFF r4 s22 Regular"
    					romMappingGameNameTextFont := "Bebas Neue"
    					romMappingGameNameTextOptions := "cFFFFFFFF r4 s40 Regular"
    					romMappingBackgroundBrush := "aa000000"
    					romMappingColumnBrush := "33000000"
    					romMappingButtonBrush1 := "6f000000"
    					romMappingButtonBrush2 := "33000000"
    					romMappingBackgroundAlign := "Stretch and Lose Aspect"
    					romMappingMenuFlagWidth := "55"
    					romMappingMenuFlagSeparation := "7"
    					romMappingDefaultMenuList := "FullList"
    					romMappingSingleFilteredRomAutomaticLaunch := "false"
    					altArchiveNameOnly := ""
    					altRomNameOnly := ""
    					altArchiveAndRomName := ""
    					altArchiveAndManyRomNames := ""
    					altRomNamesOnly := ""
    					romMapScenario := ""
    					skipchecks := "false"
    					romMatchExt := "false"
    					blockInputTime := "0"
    					blockInputFile := "X:\Hyperspin\RocketLauncher\Module Extensions\BlockInput.exe"
    					errorLevelReporting := "false"
    					lockLaunch := "false"
    					lockLaunchGame := ""
    					screenRotationAngle := "0"
    					screenRotationAngleGame := ""
    					setResolution := ""
    					logFile := ""
    					logLabel := ["    INFO"," WARNING","   ERROR","   DEBUG","   TRACE"]
    					logLevel := "3"
    					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 := "1joy3|vk0Dsc01C"
    					navP2UpKey := "R"
    					navP2DownKey := "F"
    					navP2LeftKey := "D"
    					navP2RightKey := "G"
    					navP2SelectKey := "2"
    					originalWidth := "2560"
    					originalHeight := "1440"
    					vdEnabled := "false"
    					vdFullPath := "C:\Program Files\DAEMON Tools Lite\DTLite.exe"
    					vdUseSCSI := "false"
    					vdDriveLetter := "E"
    					vdDriveLetterScsi := ""
    					vdAddDrive := "true"
    					demulShooterPath := ""
    					servoStikEnabled := "false"
    					servoStikExitMode := "false"
    					ledblinkyEnabled := "false"
    					ledblinkySystemName := ""
    					ledblinkyFullPath := ""
    					ledblinkyProfilePath := "X:\Hyperspin\RocketLauncher\Profiles\LEDBlinky"
    					ledblinkyRLProfile := "X:\Hyperspin\RocketLauncher\Profiles\LEDBlinky\RocketLauncher"
    					winIPACFullPath := ""
    					ultraMapEnabled := "false"
    					ultraMapFullPath := ""
    					emuIdleShutdown := "0"
    					launchPasswordHash := "UpUpDownDownLeftRightLeftRight"
    					cursorSize := ""
    					hideCursor := "true"
    					hideEmu := "false"
    					hideFE := "false"
    					suspendFE := "false"
    					fadeIn := "true"
    					fadeInDuration := "500"
    					fadeInTransitionAnimation := "DefaultAnimateFadeIn"
    					fadeInDelay := "0"
    					fadeInExitDelay := "0"
    					fadeOutExitDelay := "0"
    					fadeOut := "false"
    					fadeOutExtraScreen := "false"
    					fadeOutDuration := "500"
    					fadeOutTransitionAnimation := "DefaultAnimateFadeOut"
    					fadeOutDelay := "0"
    					fadeLyrInterpolation := "7"
    					fadeMuteEmulator := "false"
    					fadeUseBackgrounds := "false"
    					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 := "870|1575"
    					fadeLyr3StaticW := ""
    					fadeLyr3StaticH := ""
    					fadeLyr3StaticAdjust := "1"
    					fadeLyr3StaticPicPad := "0"
    					fadeLyr3StaticPrefix := "Info Bar"
    					fadeLyr4Adjust := "1"
    					fadeLyr4X := "1792|952"
    					fadeLyr4Y := "891|1596"
    					fadeLyr4W := "128"
    					fadeLyr4H := ""
    					fadeLyr4Pos := "No Alignment"
    					fadeLyr4FPS := "50"
    					fadeLyr4PicPad := "0"
    					fadeTranspGifColor := "FFFFFF"
    					fadeBarWindow := "Image"
    					fadeBarWindowX := ""
    					fadeBarWindowY := ""
    					fadeBarWindowW := "900"
    					fadeBarWindowH := ""
    					fadeBarWindowR := "30"
    					fadeBarWindowM := "30"
    					fadeBarWindowHatchStyle := "8"
    					fadeBar := "7zOnly"
    					fadeProgressDuration := "0"
    					fadeBarBack := "true"
    					fadeBarBackColor := "FF555555"
    					fadeBarH := "30"
    					fadeBarR := "10"
    					fadeBarColor := "DD00BFFF"
    					fadeBarHatchStyle := "8"
    					fadeBarPercentageText := "true"
    					fadeBarInfoText := "true"
    					fadeBarXOffset := "0"
    					fadeBarYOffset := "150"
    					fadeRomInfoDescription := "filtered text"
    					fadeRomInfoSystemName := "image"
    					fadeRomInfoYear := "text with label"
    					fadeRomInfoDeveloper := "text with label"
    					fadeRomInfoPublisher := "text with label"
    					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 := "0"
    					fadeText1Options := "cFFB4B4B4 r4 s30 Right Bold"
    					fadeText1 := "Loading Game"
    					fadeText2X := "0"
    					fadeText2Y := "0"
    					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 := "X:\Hyperspin\RocketLauncher\Media\Fade"
    					RLDataPath := "X:\Hyperspin\RocketLauncher\Data"
    					RLMediaPath := "X:\Hyperspin\RocketLauncher\Media"
    					RLErrSoundPath := "X:\Hyperspin\RocketLauncher\Media\Sounds\Error"
    					modulesPath := "X:\Hyperspin\RocketLauncher\Modules"
    					moduleFullName := "X:\Hyperspin\RocketLauncher\Modules\Mednafen\Mednafen.ahk"
    					moduleName := "Mednafen"
    					modulePath := "X:\Hyperspin\RocketLauncher\Modules\Mednafen"
    					moduleExtension := "ahk"
    					moduleExtensionsPath := "X:\Hyperspin\RocketLauncher\Module Extensions"
    					libPath := "X:\Hyperspin\RocketLauncher\Lib"
    					sevenZEnabled := "false"
    					sevenZPath := "X:\Hyperspin\RocketLauncher\Module Extensions\7z.exe"
    					sevenZDllPath := "X:\Hyperspin\RocketLauncher\Module Extensions\7z.dll"
    					sevenZExtractPath := "X:\Hyperspin\Tmp"
    					sevenZExtractPathOrig := ""
    					sevenZAttachSystemName := "false"
    					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 := "3"
    					sevenZDeletePerSystem := "false"
    					sevenZExtensions := "zip|rar|7z|lha|lzh|gzip|tar"
    					7zExtractPath := "X:\Hyperspin\Tmp"
    					mgEnabled := "false"
    					mgKey := "~NumpadSub"
    					mgBackgroundColor := "FF000000"
    					mgSidePadding := "0.2"
    					mgWidthBaseRes := "1920"
    					mgHeightBaseRes := "1080"
    					mgYOffset := "500|800"
    					mgFont := "Arial"
    					mgText1Options := "x10p y250|500 w80p Center cBBFFFFFF r4 s100 BoldItalic"
    					mgText1Text := "Please select a game"
    					mgText2Options := "w96p cFFFFFFFF r4 s50 Center BoldItalic"
    					mgText2Offset := "100"
    					mgUseSound := "true"
    					mgSoundfreq := "300"
    					mgExitEffect := "none"
    					mgSelectedEffect := "rotate"
    					mgUseGameArt := "false"
    					mgCandidate := ""
    					mgValidTypes := "\(Disc|\(Disk|\(Cart|\(Tape|\(Cassette|\(Part|\(Side"
    					mgOnLaunch := "false"
    					pauseEnabled := "false"
    					pauseKey := "H2000:1joy7|H1100:P|H1100:5"
    					pauseBackToMenuBarKey := "X|1joy4"
    					pauseZoomInKey := "C"
    					pauseZoomOutKey := "V"
    					pauseScreenshotKey := "~PrintScreen"
    					pauseHiToTextPath := "X:\Hyperspin\RocketLauncher\Module Extensions\HiToText.exe"
    					pauseSaveStateKeyCodes := ""
    					pauseLoadStateKeyCodes := ""
    					keyboardEncoder := ""
    					keyboardEncoderEnabled := "false"
    					keymapperEnabled := "true"
    					keymapperAHKMethod := "Internal"
    					keymapper := "xpadder"
    					xpadderFullPath := "X:\Hyperspin\Utilities\Xpadder\Xpadder.exe"
    					joyToKeyFullPath := "X:\Hyperspin\Utilities\JoyToKey\JoyToKey.exe"
    					profilePath := "X:\Hyperspin\RocketLauncher\Profiles"
    					keymapperProfilePath := "X:\Hyperspin\RocketLauncher\Profiles\xpadder"
    					keymapperFrontEndProfileName := "HyperSpin"
    					keymapperFrontEndProfile := "xpadder"
    					keymapperRocketLauncherProfileEnabled := "true"
    					joyIDsEnabled := "true"
    					joyIDsPreferredControllersGlobal := "Mayflash PS3 Game Controller Adapter|4 axis 16 button joystick"
    					joyIDsPreferredControllersSystem := "use_global"
    					joyIDsPreferredControllersOnExit := ""
    					CustomJoyNamesEnabled := "false"
    					CustomJoyNames := ""
    					rotateMethod := "false"
    					FEProfile := "X:\Hyperspin\RocketLauncher\Profiles\xpadder\HyperSpin"
    					defaultProfile := "X:\Hyperspin\RocketLauncher\Profiles\xpadder\_Default"
    					systemProfile := "X:\Hyperspin\RocketLauncher\Profiles\xpadder\NEC TurboGrafx-16"
    					xPadderSystemProfile := "X:\Hyperspin\RocketLauncher\Profiles\xpadder\NEC TurboGrafx-16\_Default"
    					emuProfile := "X:\Hyperspin\RocketLauncher\Profiles\xpadder\NEC TurboGrafx-16\Mednafen PCEngine"
    					romProfile := "X:\Hyperspin\RocketLauncher\Profiles\xpadder\NEC TurboGrafx-16\Bonk's Revenge (USA)"
    					RocketLauncherProfile := "X:\Hyperspin\RocketLauncher\Profiles\xpadder\RocketLauncher"
    					blankProfile := "X:\Hyperspin\RocketLauncher\Profiles\xpadder\_Default\blank"
    					ahkFEProfile := "X:\Hyperspin\RocketLauncher\Profiles\AHK\HyperSpin"
    					ahkDefaultProfile := "X:\Hyperspin\RocketLauncher\Profiles\AHK\_Default"
    					ahkSystemProfile := "X:\Hyperspin\RocketLauncher\Profiles\AHK\NEC TurboGrafx-16"
    					ahkEmuProfile := "X:\Hyperspin\RocketLauncher\Profiles\AHK\NEC TurboGrafx-16\Mednafen PCEngine"
    					ahkRomProfile := "X:\Hyperspin\RocketLauncher\Profiles\AHK\NEC TurboGrafx-16\Bonk's Revenge (USA)"
    					ahkRocketLauncherProfile := "X:\Hyperspin\RocketLauncher\Profiles\AHK\RocketLauncher"
    					bezelEnabled := "false"
    					bezelICEnabled := "false"
    					shaderName := "false"
    					shaderColor := ""
    					shaderTransparency := ""
    					statisticsEnabled := "true"
    					pressDuration := "-1"
    					emuVolume := "1"
    					dxwndIni := "X:\Hyperspin\RocketLauncher\Module Extensions\dxwnd\dxwnd.ini"
    					dxwndFullPath := "X:\Hyperspin\RocketLauncher\Module Extensions\dxwnd\dxwnd.exe"
    					qResFullPath := "X:\Hyperspin\RocketLauncher\Module Extensions\QRes.exe"
    					mon1O := ""
    					pacDrivedllFile := "X:\Hyperspin\RocketLauncher\Module Extensions\PacDrive32.dll"
    					userFadeAnimIniFile := "X:\Hyperspin\RocketLauncher\Lib\User Fade Animations.ini"
    					testFile := ""
    					testDuration := ""
    					initialErrorMode := "0"
    
    09:19:19:096 | RL |      INFO  | +0     | BuildScript - Loaded XHotkey Init.ahk scripts
    09:19:19:096 | RL |      INFO  | +0     | BuildScript - Loaded Keymapper Init.ahk scripts
    09:19:19:096 | RL |      INFO  | +0     | BuildScript - Loaded Fade Init.ahk scripts
    09:19:19:096 | RL |      INFO  | +0     | BuildScript - Loaded Statistics Init.ahk scripts
    09:19:19:096 | RL |      INFO  | +0     | BuildScript - Validating module
    09:19:19:096 | RL |      INFO  | +0     | BuildScript - Validation complete
    09:19:19:096 | RL |      INFO  | +0     | BuildScript - Module:
    					MEmu := "Mednafen"
    					MEmuV := "v0.9.39.2"
    					MURL := ["http://mednafen.sourceforge.net/"]
    					MAuthor := ["djvj"]
    					MVersion := "2.1.8"
    					MCRC := "488A4354"
    					iCRC := "C757F6D3"
    					MID := "635038268903923913"
    					MSystem := ["Atari Lynx","Bandai Wonderswan","Bandai Wonderswan Color","NEC PC Engine","NEC PC Engine-CD","NEC PC-FX","NEC SuperGrafx","NEC TurboGrafx-16","NEC TurboGrafx-CD","Nintendo BS-X Satellaview","Nintendo Entertainment System","Nintendo Famicom","Nintendo Famicom Disk System","Nintendo Game Boy","Nintendo Game Boy Advance","Nintendo Game Boy Color","Nintendo Sufami Turbo","Nintendo Super Famicom","Nintendo Virtual Boy","Sega Game Gear","Sega Genesis","Sega Master System","Sega Mega Drive","Sega Saturn","ss","SNK Neo Geo Pocket","SNK Neo Geo Pocket Color","Sony PlayStation","Super Nintendo Entertainment System"]
    					;----------------------------------------------------------------------------
    					; Notes:
    					; Below are some basic params you can change, there are many other params
    					; located in the mednafen documentation that you can add If needed. You can check the docs here:
    					; https://mednafen.github.io/documentation/
    					;
    					; Some people experience screen flickering and mednafen will not stay in 
    					; fullscreen, you can changed vDriver below to -vdriver sdl and it will
    					; possibly fix the issue.
    					;
    					; There is no error checking If mednafen fails, so If you try to launch
    					; your game and nothing happens, then check the stdout.txt in your mednafen
    					; installation directory to see what went wrong.
    					;
    					; To remap your keys, start a game then press alt + shift + 1 to enter
    					; the key configuration for player 1. Similarly press alt + shift + 2 for player 2.
    					; To reconfigure hotkeys such as the exit key press F2 and then the hotkey whose mapping you wish to change.
    					; You can also edit the mednafen.cfg to change these keys directly there.
    					;
    					; Windows Aero:
    					; Since v0.9.33, the emu disables aero when launching mednafen in an effort to improve performance. This can also cause flashing among other issues namely bezel support not working.
    					; http://forum.fobby.net/index.php?t=msg&goto=3411&
    					; You can disable Desktop Composition by editing mednafen.cfg and adding this line to it:
    					; video.disable_composition 0
    					
    					; Atari Lynx:
    					; Create a folder called "firmware" in your mednafen folder and place lynxboot.img in there
    					; If games are not rotating and the CLI command is being sent to the emu, your roms have bad headers
    					;
    					; Nintendo Virtual Boy:
    					; For Virtual Boy you might not be able to get in game and get stuck
    					; on the intro screen, so open your cfg file and change these settings
    					; to allow you to play. There are some extra options here to.
    					; vb.anaglyph.lcolor 0xFF0000
    					; vb.anaglyph.preset disabled
    					; vb.anaglyph.rcolor 0x000000
    					; vb.default_color 0xFFFFFF
    					; vb.disable_parallax 0
    					; vb.input.builtin.gamepad.a keyboard 109
    					; vb.input.builtin.gamepad.b keyboard 110
    					; vb.input.builtin.gamepad.down-l keyboard 100
    					; vb.input.builtin.gamepad.down-r keyboard 107
    					; vb.input.builtin.gamepad.left-l keyboard 115
    					; vb.input.builtin.gamepad.left-r keyboard 106
    					; vb.input.builtin.gamepad.lt keyboard 103
    					; vb.input.builtin.gamepad.rapid_a keyboard 46
    					; vb.input.builtin.gamepad.rapid_b keyboard 44
    					; vb.input.builtin.gamepad.right-l keyboard 102
    					; vb.input.builtin.gamepad.right-r keyboard 108
    					; vb.input.builtin.gamepad.rt keyboard 104
    					; vb.input.builtin.gamepad.select keyboard 118
    					; vb.input.builtin.gamepad.start keyboard 13
    					; vb.input.builtin.gamepad.up-l keyboard 101
    					; vb.input.builtin.gamepad.up-r keyboard 105
    					
    					; Sony PlayStation Info:
    					; Create a folder called "firmware" in your mednafen folder and place all your bios files (ex. scph5501.bin) in there. Set the options in RLUI so mednafen can find them if needed
    					; This module only supports Virtual Drive when mounting with a cue extension for psx.
    					; Set your rom extension to cue
    					; Multi-Disc games REQUIRES Virtual Drive, do not attempt to swap discs any other way as it is not supported by this module.
    					;
    					; Sega Saturn Info:
    					; Create a folder called "firmware" in your mednafen folder and place all your bios files (ex. scph5501.bin) in there. Set the options in RLUI so mednafen can find them if needed
    					; King Of Fighters '95 and Ultraman - Hikari no Kyojin Densetsu are supported, in order to run them you'll need to place the cart dumps alongside with the CD images of the games and name them after the romName with the extension .rom. If you leave the roms in the default mednafen locations they should work as well, refer to the mednafen docs to know how to name them.
    					;
    					; Virtual Drive Support:
    					; Virtual Drive (aka Physical CD) support was removed in version 0.9.38 so if you are using a Mednafen version more recent than that make sure you disable Virtual Drive for the systems that use it otherwise they won't work.
    					;----------------------------------------------------------------------------
    					StartModule()
    					BezelGUI()
    					FadeInStart()
    					 
    					primaryExe := new Emulator(emuPath . "\" . executable)				; instantiate emulator executable object
    					emuPrimaryWindow := new Window(new WindowTitle(,"SDL_app"))		; instantiate primary emulator window object
    					
    					; The next 2 objects control how the module reacts to different systems. Mednafen can play a lot of systems, but changes itself slightly so this module has to adapt 
    					mType1 := Object("Atari Lynx","lynx","Bandai Wonderswan","wswan","Bandai Wonderswan Color","wswan","NEC PC Engine","pce","NEC PC-FX","pcfx","NEC SuperGrafx","pce","NEC TurboGrafx-16","pce","Nintendo BS-X Satellaview","bsx","Nintendo Entertainment System","nes","Nintendo Famicom","nes","Nintendo Famicom Disk System","nes","Nintendo Game Boy","gb","Nintendo Game Boy Advance","gba","Nintendo Game Boy Color","gb","Nintendo Sufami Turbo","nst","Nintendo Super Famicom","snes","Nintendo Virtual Boy","vb","Samsung Gam Boy","sms","Sega Game Gear","gg","Sega Genesis","md","Sega Mega Drive","md","Sega Master System","sms","SNK Neo Geo Pocket","ngp","SNK Neo Geo Pocket Color","ngp","Super Nintendo Entertainment System","snes")
    					mType2 := Object("NEC PC Engine-CD","pce","NEC TurboGrafx-CD","pce","Sega Saturn","ss","Sony PlayStation","psx")	; these systems change Mednafen's window name, so it needs to be separate from the rest
    					
    					ident1 := mType1[systemName]	; search 1st array for the systemName identifier mednafen uses
    					ident2 := mType2[systemName]	; search 2nd array for the systemName identifier mednafen uses
    					ident := If (!ident1 && !ident2) ? ("") : (ident1 . ident2)
    					If !ident
    						ScriptError("Your systemName is: " . systemName . "`nIt is not one of the known supported systems for this Mednafen module: " . moduleName)
    					
    					; Settings used for all systems
    					Fullscreen := moduleIni.Read("Settings", "Fullscreen","true",,1)
    					Stretch := moduleIni.Read("Settings", "Stretch","aspect",,1)			; 0, aspect, or full
    					vDriver := moduleIni.Read("Settings", "vDriver","opengl",,1)				; opengl or sdl
    					xRes := moduleIni.Read("Settings", "xRes",0,,1)
    					yRes := moduleIni.Read("Settings", "yRes",0,,1)
    					Params := moduleIni.Read(romName . "|Settings", "Params",,,1)
    					
    					stretch := " -" . ident . ".stretch " . Stretch
    					vDriver := If vDriver ? (" -vdriver " . vDriver) : ""
    					xRes := If xRes ? (" -" . ident . ".xres " . xRes) : ""
    					yRes := If yRes ? (" -" . ident . ".yres " yRes) : ""
    					Params := If Params ? (" " . Params) : ""
    					
    					;Defining screen orientation
    					resolutionsIni := new IniFile(A_ScriptDir . "\Settings\" systemName . "\resolutions.ini")
    					gameRes := resolutionsIni.ReadCheck(dbname,"Resolution",,,1)  
    					res := StringUtils.Split(gameRes,x)		; res[1]=Width, res[2]=Height 
    					
    					If (ident = "lynx" or ident = "wswan")
    						rotateScreen := If ((moduleIni.Read(romName, "RotateScreen",,,1) = "true") or (res[2]>res[1])) ? " -" . ident . ".rotateinput 1" : ""
    					
    					If (ident = "lynx") {	; this needs to be before BezelStart so we can tell it if we need to rotate the screen or not
    						lynxbootImgFile := new File(emuPath . "\firmware\lynxboot.img")
    						lynxbootImgFile.CheckFile("Cannot find the Atari Lynx bios file required to use this system:`n" . lynxbootImgFile.FileFullPath)
    					}
    					
    					BezelStart(,,(If rotateScreen ? 1:""))
    					
    					emuFullscreen := If Fullscreen = "true" ? " -fs 1" : " -fs 0"	; This needs to stay after BezelStart
    					
    					If (ident1 = "pce")
    						sgfxMode := If (systemName = "NEC SuperGrafx" && romExtension != sgx) ? " -pce.forcesgx 1"  : ""
    					
    					If (ident2 = "pce")
    					{	PCE_CD_Bios := moduleIni.Read("Bios", "PCE_CD_Bios","syscard3.pce",,1)		; Bios, placed in the firmware subfolder of the emu, required for these systems: NEC PC Engine-CD & NEC TurboGrafx-CD
    						pceCDBiosFile := new File(emuPath . "\firmware\" . PCE_CD_Bios)
    						pceCDBiosFile.CheckFile("Cannot find the PCE_CD_Bios  file you have defined in the module:`n" . pceCDBiosFile.FileFullPath)
    						pceCDBios := If PCE_CD_Bios ? (" -pce.cdbios ""firmware\"  . PCE_CD_Bios  . """") : ""
    					}
    					If (ident = "pcfx")
    					{	PCFX_Bios := moduleIni.Read("Bios", "PCFX_Bios","pcfxbios.bin",,1)			; Bios, placed in the firmware subfolder of the emu, required for NEC PC-FX
    						pcfxBiosFile := new File(emuPath . "\firmware\" . PCFX_Bios)
    						pcfxBiosFile.CheckFile("Cannot find the PCFX_Bios  file you have defined in the module:`n" . pcfxBiosFile.FileFullPath)
    						pcfxBios := If PCFX_Bios ? (" -pcfx.bios ""firmware\"  . PCFX_Bios  . """") : ""
    					}
    					
    					If (ident = "psx")	; only need these for Sony PlayStation, must check If these files exist, otherwise mednafan doesn't launch and RocketLauncher gets stuck
    					{	NA_Bios := moduleIni.Read("Bios", "NA_Bios","PSX - SCPH1001.bin",,1)		; Sony PlayStation only - this is the bios you want to use for North American games - place this in a "firmware" subfolder where Mednafen is
    						EU_Bios := moduleIni.Read("Bios", "EU_Bios","PSX - SCPH5502.bin",,1)		; Sony PlayStation only - this is the bios you want to use for European games - place this in a "firmware" subfolder where Mednafen is
    						JP_Bios := moduleIni.Read("Bios", "JP_Bios","PSX - SCPH5500.bin",,1)		; Sony PlayStation only - this is the bios you want to use for Japanese games - place this in a "firmware" subfolder where Mednafen is
    						naBiosFile := new File(emuPath . "\firmware\" . NA_Bios)
    						euBiosFile := new File(emuPath . "\firmware\" . EU_Bios)
    						jpBiosFile := new File(emuPath . "\firmware\" . JP_Bios)
    						naBiosFile.CheckFile("Cannot find the PSX NA_Bios file you have defined in the module:`n" . naBiosFile.FileFullPath)
    						euBiosFile.CheckFile("Cannot find the PSX EU_Bios file you have defined in the module:`n" . euBiosFile.FileFullPath)
    						jpBiosFile.CheckFile("Cannot find the PSX JP_Bios file you have defined in the module:`n" . jpBiosFile.FileFullPath)
    						naBios := If NA_Bios ? " -psx.bios_na ""firmware\" . NA_Bios . """" : ""
    						euBios := If EU_Bios ? " -psx.bios_eu ""firmware\" .  EU_Bios . """" : ""
    						jpBios := If JP_Bios ? " -psx.bios_jp ""firmware\"  . JP_Bios . """" : ""
    					}
    					
    					If (ident = "ss")	; only need these for Sega Saturn, must check If these files exist, otherwise mednafan doesn't launch and RocketLauncher gets stuck
    					{	NA_Bios := moduleIni.Read("Bios", "Saturn_NA_Bios","mpr-17933.bin",,1)	; Sega Saturn only - this is the bios you want to use for North American games - place this in a "firmware" subfolder where Mednafen is
    						EU_Bios := moduleIni.Read("Bios", "Saturn_EU_Bios","sega_101.bin",,1)	; Sega Saturn only - this is the bios you want to use for European games - place this in a "firmware" subfolder where Mednafen is
    						JP_Bios := moduleIni.Read("Bios", "Saturn_JP_Bios","sega_101.bin",,1)	; Sega Saturn only - this is the bios you want to use for Japanese games - place this in a "firmware" subfolder where Mednafen is
    						naBiosFile := new File(emuPath . "\firmware\" . NA_Bios)
    						; euBiosFile := new File(emuPath . "\firmware\" . EU_Bios)
    						jpBiosFile := new File(emuPath . "\firmware\" . JP_Bios)
    						naBiosFile.CheckFile("Cannot find the Saturn NA_Bios file you have defined in the module:`n" . naBiosFile.FileFullPath)
    						; euBiosFile.CheckFile("Cannot find the Saturn EU_Bios file you have defined in the module:`n" . euBiosFile.FileFullPath)
    						jpBiosFile.CheckFile("Cannot find the Saturn JP_Bios file you have defined in the module:`n" . jpBiosFile.FileFullPath)
    						naBios := If NA_Bios ? " -ss.bios_na_eu ""firmware\" . NA_Bios . """" : ""
    						; euBios := If EU_Bios ? " -ss.bios_eu ""firmware\" . EU_Bios . """" : ""		; mednafen doesn't support PAL yet so this setting will use the NA bios CLI until it does
    						euBios := ""
    						jpBios := If JP_Bios ? " -ss.bios_jp ""firmware\" . JP_Bios . """" : ""
    						
    						AutoDetectRegion := moduleIni.Read("Settings", "AutoDetectRegion","true",,1)
    						ExpansionCart := moduleIni.Read(romName, "ExpansionCart","auto",,1)
    						Region := moduleIni.Read(romName, "Region","",,1)
    					
    						If (!Region)
    							Region := If (AutoDetectRegion = "true") ? "auto" : "none"
    					
    						; Setup Expansion Carts
    						DataCartridgeFile := new File(romPath . "\" . romName . ".rom")
    						If DataCartridgeFile.Exist() {		; Only 2 known games need this, Ultraman - Hikari no Kyojin Densetsu (Japan) and King of Fighters '95, The (Europe).
    							RLLog.Info("Module - This game requires a data cart in order to play. Trying to mount the cart: """ . DataCartridgeFile.FileFullPath . """")
    							If !DataCartridgeFile.Exist()
    								ScriptError("Could not locate the Data Cart for this game. Please make sure one exists inside the archive of this game or in the folder this game resides and it is called: """ . romName . ".rom""")
    							If (StringUtils.Contains(romName, "King of Fighters"))
    								SysParams := "-ss.cart.kof95_path """ .  DataCartridgeFile.FileFullPath . """"
    							Else If (StringUtils.Contains(romName, "Ultraman"))
    								SysParams := "-ss.cart.ultraman_path """ .  DataCartridgeFile.FileFullPath . """"
    						} Else If (ExpansionCart) {
    							SysParams := "-ss.cart " . ExpansionCart
    						}
    					
    						; Configuring Region
    						If (Region = "auto")
    							SysParams := SysParams . " -ss.region_autodetect 1"
    						Else If (Region = "none")
    							SysParams := SysParams . " -ss.region_autodetect 0"
    						Else
    							SysParams := SysParams . " -ss.region_default " . Region
    					
    						SysParams := If SysParams ? (" " . SysParams) : ""
    					}
    					
    					If bezelPath ; defining xscale and yscale relative to the bezel windowed mode
    					{
    						If res[1] {
    							baseWidth := res[1]
    							baseHeight := res[2]
    						} Else {
    								baseWidthArray := [] 
    								baseWidthArray["lynx", "width"] := 160 , baseWidthArray["lynx", "height"] := 102
    								baseWidthArray["wswan", "width"] := 224 , baseWidthArray["wswan", "height"] := 144
    								baseWidthArray["pce", "width"] := 288 , baseWidthArray["pce", "height"] := 231
    								baseWidthArray["pcfx", "width"] := 341 , baseWidthArray["pcfx", "height"] := 480
    								baseWidthArray["nes", "width"] := 298 , baseWidthArray["nes", "height"] := 240
    								baseWidthArray["gb", "width"] := 160 , baseWidthArray["gb", "height"] := 144
    								baseWidthArray["gba", "width"] := 240 , baseWidthArray["gba", "height"] := 160
    								baseWidthArray["snes", "width"] := 256 , baseWidthArray["snes", "height"] := 224
    								baseWidthArray["vb", "width"] := 384 , baseWidthArray["vb", "height"] := 224
    								baseWidthArray["gg", "width"] := 160 , baseWidthArray["gg", "height"] := 144
    								baseWidthArray["md", "width"] := 320 , baseWidthArray["md", "height"] := 480
    								baseWidthArray["sms", "width"] := 256 , baseWidthArray["sms", "height"] := 240
    								baseWidthArray["ngp", "width"] := 160 , baseWidthArray["ngp", "height"] := 152
    								baseWidthArray["psx", "width"] := 320 , baseWidthArray["psx", "height"] := 240
    								baseWidthArray["ss", "width"] := 301 , baseWidthArray["ss", "height"] := 240
    								baseWidth := (If rotateScreen ? baseWidthArray[ident,"height"]:baseWidthArray[ident,"width"])
    								baseHeight := (If rotateScreen ? baseWidthArray[ident,"width"]:baseWidthArray[ident,"height"])
    							}
    						bezelXres := moduleIni.Read(romName . "|Settings", "Bezel_X_Res",baseWidth,,1)	; Controls width of the emu's window, relative to the bezel's window
    						bezelYres := moduleIni.Read(romName . "|Settings", "Bezel_Y_Res",baseHeight,,1)	; Controls height of the emu's window, relative to the bezel's window
    						xscale := round(bezelScreenWidth / bezelXres,2)
    						yscale := round(bezelScreenHeight / bezelYres,2)
    						xscale := " -" . ident . ".xscale " . xscale
    						yscale := " -" . ident . ".yscale " . yscale
    					}
    					
    					;----------------------------------------------------------------------------
    					
    					hideEmuObj := Object(emuPrimaryWindow,1)
    					7z(romPath, romName, romExtension, sevenZExtractPath)
    					
    					; Mount the CD using Virtual Drive
    					If ((romExtension = ".cue" || romExtension = ".ccd" || romExtension = ".iso") && vdEnabled = "true" && (ident = "psx" || ident = "pce")) {	; only Sony PlayStation tested
    						RLLog.Info("Module - Mounting rom in Virtual Drive")
    						VirtualDrive("get")
    						VirtualDrive("mount",romPath . "\" . romName . romExtension)
    						usedVD := 1
    					}
    					
    					HideAppStart(hideEmuObj,hideEmu)
    					primaryExe.Run(" " . emuFullscreen . stretch . vDriver . (If Fullscreen = "true" ? xRes . " " . yRes : xscale . " " . yscale) . sgfxMode . naBios . euBios . jpBios . pceCDBios . pcfxBios . rotateScreen . SysParams . Params . (If usedVD ? " -physcd " . vdDriveLetter . ":" : " """ . romPath . "\" . romName . romExtension . """"))
    					
    					; WinWait, % (If ident2 ? ("Mednafen") : (romName)) . " ahk_class SDL_app"
    					; WinWaitActive, % (If ident2 ? ("Mednafen") : (romName)) . " ahk_class SDL_app"
    					emuPrimaryWindow.Wait()
    					emuPrimaryWindow.WaitActive()
    					BezelDraw()
    					HideAppEnd(hideEmuObj,hideEmu)
    					FadeInExit()
    					
    					errorLvl := primaryExe.Process("Exist")
    					If errorLvl != 0
    						primaryExe.Process("WaitClose")
    					
    					If usedVD
    						VirtualDrive("unmount")
    					
    					7zCleanUp()
    					BezelExit()
    					FadeOutExit()
    					ExitModule()
    					
    					MultiGame:
    						If usedVD {
    							KeyUtils.SetKeyDelay(50)
    							KeyUtils.Send("{F8 down}{F8 up}")	; eject disc in mednafen - MIGHT WANT TO TRY DOING A CONTROLSEND
    							VirtualDrive("unmount")
    							TimerUtils.Sleep(500)	; Required to prevent your Virtual Drive from bugging
    							VirtualDrive("mount",selectedRom)
    							emuPrimaryWindow.Activate()
    							KeyUtils.Send("{F8 down}{F8 up}")	; eject disc in mednafen
    						}
    					Return
    					RestoreEmu:
    						If (fullscreen = "true")
    							emuPrimaryWindow.Maximize()	; mednafen will not restore unless this command is used
    						emuPrimaryWindow.Activate()
    					Return
    					
    					CloseProcess:
    						FadeOutStart()
    						emuPrimaryWindow.Close()
    						; WinClose, % (If ident2 ? ("Mednafen") : (romName)) . " ahk_class SDL_app"
    					Return
    
    09:19:19:111 | RL |      INFO  | +16    | BuildScript - Loaded Multi-Player scripts
    09:19:19:111 | RL |      INFO  | +0     | BuildScript - Loaded Statistics.ahk script
    09:19:19:111 | RL |      INFO  | +0     | BuildScript - "X:\Hyperspin\RocketLauncher\Lib\User Functions\Global.ahk" not found
    09:19:19:111 | RL |      INFO  | +0     | BuildScript - "X:\Hyperspin\RocketLauncher\Lib\User Functions\NEC TurboGrafx-16.ahk" not found
    09:19:19:111 | RL |      INFO  | +0     | BuildScript - "X:\Hyperspin\RocketLauncher\Lib\User Functions\Emulators\Mednafen PCEngine.ahk" not found
    09:19:19:127 | RL |      INFO  | +15    | BuildScript - "X:\Hyperspin\RocketLauncher\Lib\User Functions\NEC TurboGrafx-16\Emulators\Mednafen PCEngine.ahk" not found
    09:19:19:127 | RL |      INFO  | +0     | BuildScript - "X:\Hyperspin\RocketLauncher\Lib\User Functions\NEC TurboGrafx-16\Bonk's Revenge (USA).ahk" not found
    09:19:19:127 | RL |      INFO  | +0     | BuildScript - Finished injecting functions into module
    09:19:19:127 | RL |      INFO  | +0     | Main - Module is built
    09:19:19:127 | RL |      INFO  | +0     | CheckFile - Checking if X:\Hyperspin\RocketLauncher\AutoHotkey.dll exists
    09:19:19:127 | RL |      INFO  | +0     | Main - Hiding taskbar
    09:19:19:127 | RL |      INFO  | +0     | Main - Loading Internal AHK Keymapping
    09:19:19:127 | RL |      INFO  | +0     | GetAHKProfile - Started
    09:19:19:127 | RL |      INFO  | +0     | GetAHKProfile - Ended and found: X:\Hyperspin\RocketLauncher\Profiles\AHK\NEC TurboGrafx-16.ahk
    09:19:19:127 | RL |      INFO  | +0     | Main - Attaching AHK remaps to module using: X:\Hyperspin\RocketLauncher\Profiles\AHK\NEC TurboGrafx-16.ahk
    09:19:19:127 | RL |      INFO  | +0     | Main - Finished building Internal AHK remaps
    09:19:19:127 | RL |      INFO  | +0     | Main - Running module
    Last edited by vicviper99 ; 02-12-2019 at 09:29 PM.
     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •