found7z=true
found7z=true
;----------------------------------------------------------------------------
; INJECTED VARIABLES
;----------------------------------------------------------------------------
#NoTrayIcon
#InstallKeybdHook
DetectHiddenWindows, ON
SetTitleMatchMode, 2
SendMode, Event
0 = 0
hlMode =
frontendPID = 0
frontendPath = Z:\HyperSpin
frontendExe = HyperSpin.exe
frontendExt = exe
frontendName = HyperSpin
frontendDrive = Z:
exitEmulatorKey = ~Esc
exitEmulatorKeyWait = 0
forceHoldKey = ~Esc
restoreFE = false
exitScriptKey = *
toggleCursorKey = ~e & ~t
emuFullPath = Z:\HyperSpin\Emulators\CEMU\Cemu.exe
emuPath = Z:\HyperSpin\Emulators\CEMU
emuName = Cemu
emuExt = exe
romPath = Z:\HyperSpin\Nintendo Wii U\Mario Kart 8\code
romPathFromIni = Z:\HyperSpin\Nintendo Wii U\Mario Kart 8\code
romExtension = .rpx
romExtensionOrig = .rpx
romExtensions = rpx
executable = Cemu.exe
systemName = Nintendo Wii U
dbName = Turbo
romName = Turbo
romMapPath =
romMappingEnabled = false
romMappingLaunchMenuEnabled = false
romMappingFirstMatchingExt = false
romMappingShowAllRomsInArchive = true
romMappingNumberOfWheelsByScreen = 7
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
romMappingBackgroundBrush = aa000000
romMappingColumnBrush = 33000000
romMappingButtonBrush1 = 6f000000
romMappingButtonBrush2 = 33000000
romMappingBackgroundAlign = Stretch and Lose Aspect
romMappingMenuFlagWidth = 40
romMappingMenuFlagSeparation = 5
romMappingDefaultMenuList = FullList
romMappingSingleFilteredRomAutomaticLaunch = false
skipchecks = false
romMatchExt = true
blockInputTime = 0
blockInputFile = Z:\HyperSpin\Hyperlaunch\Module Extensions\BlockInput.exe
errorLevelReporting = false
logFile = Z:\HyperSpin\Hyperlaunch\HyperLaunch.log
logLabel := [" INFO"," WARNING"," ERROR"," DEBUG1"," DEBUG2"]
logLevel = 10
logIncludeModule = true
logIncludeFileProperties = true
logShowCommandWindow = false
logCommandWindow = true
sysLang = English_United_States
navUpKey = Up
navDownKey = Down
navLeftKey = Left
navRightKey = Right
navSelectKey = Enter
navP2UpKey = Numpad8
navP2DownKey = Numpad2
navP2LeftKey = Numpad4
navP2RightKey = Numpad6
navP2SelectKey = NumpadEnter
originalWidth = 1920
originalHeight = 1080
dtEnabled = false
dtPath = C:\Program Files (x86)\DAEMON Tools Lite\DTLite.exe
dtUseSCSI = true
dtAddDrive = true
emuIdleShutdown = 0
hideCursor = true
hideEmu = false
hideFE = 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
fadeLyr1Color = FF000000
fadeLyr1AlignImage = Align to Top Left
fadeLyr2Pos = Bottom Right Corner
fadeLyr2X = 300
fadeLyr2Y = 300
fadeLyr2Adjust = 1
fadeLyr2PicPad = 0
fadeLyr3Pos = Center
fadeLyr3X = 300
fadeLyr3Y = 300
fadeLyr3Adjust = 0.75
fadeLyr3Speed = 750
fadeLyr3Animation = DefaultFadeAnimation
fadeLyr37zAnimation = DefaultFadeAnimation
fadeLyr3Type = imageandbar
fadeLyr3ImgFollow7zProgress = true
fadeLyr3Repeat = 1
fadeLyr3PicPad = 0
fadeLyr4Adjust = 0.75
fadeLyr4X = 100
fadeLyr4Y = 100
fadeLyr4Pos = Above Layer 3 - Left
fadeLyr4FPS = 10
fadeLyr4PicPad = 0
fadeTranspGifColor = FFFFFF
fadeBarWindow = false
fadeBarWindowX =
fadeBarWindowY =
fadeBarWindowW = 600
fadeBarWindowH = 120
fadeBarWindowR = 20
fadeBarWindowM = 20
fadeBarWindowHatchStyle = 8
fadeBarBack = true
fadeBarBackColor = FF555555
fadeBarH = 20
fadeBarR = 5
fadeBarColor = DD00BFFF
fadeBarHatchStyle = 3
fadeBarPercentageText = true
fadeBarInfoText = true
fadeBarXOffset = 0
fadeBarYOffset = 100
fadeRomInfoDescription = text
fadeRomInfoSystemName = text
fadeRomInfoYear = text
fadeRomInfoManufacturer = text
fadeRomInfoGenre = text
fadeRomInfoRating = text
fadeRomInfoOrder = Description|SystemName|Year|Manufacturer|Genre|Rating
fadeRomInfoTextPlacement = topRight
fadeRomInfoTextMargin = 5
fadeRomInfoText1Options = cFF555555 r4 s20 Bold
fadeRomInfoText2Options = cFF555555 r4 s20 Bold
fadeRomInfoText3Options = cFF555555 r4 s20 Bold
fadeRomInfoText4Options = cFF555555 r4 s20 Bold
fadeRomInfoText5Options = cFF555555 r4 s20 Bold
fadeRomInfoText6Options = cFF555555 r4 s20 Bold
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 = topLeft
fadeStatsInfoTextMargin = 5
fadeStatsInfoText1Options = cFF555555 r4 s20 Bold
fadeStatsInfoText2Options = cFF555555 r4 s20 Bold
fadeStatsInfoText3Options = cFF555555 r4 s20 Bold
fadeStatsInfoText4Options = cFF555555 r4 s20 Bold
fadeStatsInfoText5Options = cFF555555 r4 s20 Bold
fadeStatsInfoText6Options = cFF555555 r4 s20 Bold
fadeText1X = 0
fadeText1Y = 0
fadeText1Options = cFFFFFFFF r4 s20 Right Bold
fadeText1 = Loading Game
fadeText2X = 0
fadeText2Y = 0
fadeText2Options = cFFFFFFFF r4 s20 Right Bold
fadeText2 = Extraction Complete
fadeFont = Arial
fadeSystemAndRomLayersOnly = false
fadeInterruptKey =
detectFadeErrorEnabled = true
fadeImgPath = Z:\HyperSpin\Hyperlaunch\Media\Fade
HLDataPath = Z:\HyperSpin\Hyperlaunch\Data
HLMediaPath = Z:\HyperSpin\Hyperlaunch\Media
HLErrSoundPath = Z:\HyperSpin\Hyperlaunch\Media\Sounds\Error
modulesPath = Z:\HyperSpin\Hyperlaunch\Modules
moduleFullName = Z:\HyperSpin\Hyperlaunch\Modules\Cemu\Cemu.ahk
moduleName = Cemu
modulePath = Z:\HyperSpin\Hyperlaunch\Modules\Cemu
moduleExtension = ahk
moduleExtensionsPath = Z:\HyperSpin\Hyperlaunch\Module Extensions
libPath = Z:\HyperSpin\Hyperlaunch\Lib
7zEnabled = false
7zPath = Z:\HyperSpin\Hyperlaunch\Module Extensions\7z.exe
7zDllPath = Z:\HyperSpin\Hyperlaunch\Module Extensions\7z.dll
7zExtractPath = Z:\HyperSpin\cache
7zExtractPathOrig =
7zAttachSystemName = false
7zDelTemp = true
7zSounds = true
7zFormats = .zip,.rar,.7z,.lzh,.gzip,.tar
7zFormatsNoP = zip,rar,7z,lzh,gzip,tar
mgEnabled = false
mgKey = ~NumpadSub
mgBackgroundColor = FF000000
mgSidePadding = 0.2
mgYOffset = 500
mgImageAdjust = 1
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 = false
mgArtworkDir = Artwork1
hpEnabled = false
hpKey = ~NumpadAdd
hpBackToMenuBarKey = X
hpZoomInKey = C
hpZoomOutKey = V
hpScreenshotKey = ~PrintScreen
hpHiToTextPath = Z:\HyperSpin\Hyperlaunch\Module Extensions\HiToText.exe
hpSaveStateKeyCodes =
hpLoadStateKeyCodes =
keymapperEnabled = true
keymapperAHKMethod = false
keymapper = xpadder
xpadderFullPath = Z:\HyperSpin\Xpadder\Xpadder.exe
joyToKeyFullPath = Z:\HyperSpin\Tools\VJoy\VJoy.exe
keymapperProfilePath = Z:\HyperSpin\Hyperlaunch\Profiles\xpadder
keymapperFrontEndProfileName = HyperSpin
keymapperFrontEndProfile = xpadder
keymapperHyperLaunchProfileEnabled = false
JoyIDsEnabled = true
JoyIDsPreferredControllersSystem = Controller (XBOX 360 For Windows)|XBOX 360 For Windows (Controller)|Controller (Xbox 360 Wireless Receiver for Windows)
JoyIDsPreferredControllersGlobal = use_global
CustomJoyNamesEnabled = false
CustomJoyNames =
FEProfile = Z:\HyperSpin\Hyperlaunch\Profiles\xpadder\HyperSpin
defaultProfile = Z:\HyperSpin\Hyperlaunch\Profiles\xpadder\_Default
systemProfile = Z:\HyperSpin\Hyperlaunch\Profiles\xpadder\Nintendo Wii U
xPadderSystemProfile = Z:\HyperSpin\Hyperlaunch\Profiles\xpadder\Nintendo Wii U\_Default
emuProfile = Z:\HyperSpin\Hyperlaunch\Profiles\xpadder\Nintendo Wii U\Cemu
romProfile = Z:\HyperSpin\Hyperlaunch\Profiles\xpadder\Nintendo Wii U\Turbo
HyperLaunchProfile = Z:\HyperSpin\Hyperlaunch\Profiles\xpadder\HyperLaunch
blankProfile = Z:\HyperSpin\Hyperlaunch\Profiles\xpadder\_Default\blank
ahkFEProfile = Z:\HyperSpin\Hyperlaunch\Profiles\AHK\HyperSpin
ahkDefaultProfile = Z:\HyperSpin\Hyperlaunch\Profiles\AHK\_Default
ahkSystemProfile = Z:\HyperSpin\Hyperlaunch\Profiles\AHK\Nintendo Wii U
ahkEmuProfile = Z:\HyperSpin\Hyperlaunch\Profiles\AHK\Nintendo Wii U\Cemu
ahkRomProfile = Z:\HyperSpin\Hyperlaunch\Profiles\AHK\Nintendo Wii U\Turbo
ahkHyperLaunchProfile = Z:\HyperSpin\Hyperlaunch\Profiles\AHK\HyperLaunch
bezelEnabled = false
statisticsEnabled = true
Log("Module initialized",,,,1)
zz:=""
;----------------------------------------------------------------------------
; INITIAL HOTKEYS AND LIBRARIES
;----------------------------------------------------------------------------
#Include, %A_ScriptDir%\Lib
#Include, XHotkey Init.ahk
HyperLaunchDllFile=%moduleExtensionsPath%\HyperLaunch.dll
CLR_Start()
If !hModule := CLR_LoadLibrary(HyperLaunchDllFile)
ScriptError("Error loading the DLL:`n" . HyperLaunchDllFile)
If !HLObject := CLR_CreateObject(hModule,"HLUtil.HyperLaunchUtils")
ScriptError("Error creating object. There may be something wrong with the dll file:" . HyperLaunchDllFile)
If logLevel >= 4
COM_Invoke(HLObject, "setLogMode", "2")
#Include, Keymapper Init.ahk
#Include, %A_ScriptDir%\Lib
#Include, Fade Init.ahk
#Include, %A_ScriptDir%\Lib
#Include, *i Statistics Init.ahk
#Include, %A_ScriptDir%\Lib
#Include, *i User Functions Init.ahk
;----------------------------------------------------------------------------
; MODULE SCRIPT
;----------------------------------------------------------------------------
MEmu := "Cemu"
MEmuV := "v1.5.6"
MURL := ["
http://cemu.info/"]
MAuthor :=
MVersion := "1.0.4"
MCRC := "5ECAE90F"
iCRC := "317C6C8"
MID := "635803743205902402"
MSystem := ["Nintendo Wii U"]
;----------------------------------------------------------------------------
; Notes:
; Make sure the keys.txt in the emu root folder contains a Wii U common key.
; Do not ask where to get this, it's your job to figure this out.
;----------------------------------------------------------------------------
StartModule()
BezelGUI()
FadeInStart()
If (fadeIn = "true"){
Random, ee, 1, 1000
If ee >= 1000
Corner(300,200)
}
primaryExe := new Emulator(emuPath . "\" . executable) ; instantiate emulator executable object
emuPrimaryWindow := new Window(new WindowTitle("CEMU","wxWindowNR")) ; instantiate primary emulator window object
Fullscreen := moduleIni.Read("Settings", "Fullscreen","true",,1)
; dialogOpen := i18n("dialog.open") ; Looking up local translation
hideEmuObj := Object(emuPrimaryWindow,1)
7z(romPath, romName, romExtension, sevenZExtractPath)
BezelStart("FixResMode")
HideAppStart(hideEmuObj,hideEmu)
If (Fullscreen = "true")
Params := " -f"
primaryExe.Run(Params . " -g """ . romPath . "\" . romName . romExtension . """")
emuPrimaryWindow.Wait()
emuPrimaryWindow.WaitActive()
;If (fullscreen = "true")
; emuPrimaryWindow.MenuSelectItem("Options","Fullscreen")
; Load image
; emuPrimaryWindow.WinMenuSelectItem("File","Load")
; OpenROM("Open file to launch", romPath . "\" . romName . romExtension)
; emuPrimaryWindow.WaitActive()
BezelDraw()
HideAppEnd(hideEmuObj,hideEmu)
FadeInExit()
primaryExe.Process("WaitClose")
7zCleanUp()
BezelExit()
FadeOutExit()
ExitModule()
CloseProcess:
Log("CloseProcess - Started, user requested to end launched application",4)
FadeOutStart()
emuPrimaryWindow.Close()
Log("CloseProcess - Ended",4)
Return
;----------------------------------------------------------------------------
; INJECTED FUNCTIONS AND LABELS
;----------------------------------------------------------------------------
#Include, %A_ScriptDir%\Module Extensions
#Include, Gdip.ahk
#include, CLR.ahk
#include, COM.ahk
#Include, %A_ScriptDir%\Lib
#Include, *i Shared.ahk
#Include, *i XHotkey.ahk
HideDesktop(){
}
HideEmuStart(ms=2){
}
HideEmuEnd(){
}
#Include, %A_ScriptDir%\Lib
#Include, Fade.ahk
#include, Fade Animations.ahk
#Include, %A_ScriptDir%\Lib
#Include, Keymapper.ahk
TogglePauseMenuStatus:
Return
StartMulti:
Return
BezelGUI(){
}
BezelStart(Mode="",parent="",angle="",width="",height=""){
}
BezelDraw(){
}
BezelExit(){
}
EnableBezelKeys:
Return
DisableBezelKeys:
Return
EnableICRightMenuKeys:
Return
DisableICRightMenuKeys:
Return
EnableICLeftMenuKeys:
Return
DisableICLeftMenuKeys:
Return
BezelBackgroundTimer:
Return
CreateRomMappingLaunchMenu(table){
}
DestroyRomMappingLaunchMenu(){
}
#Include, %A_ScriptDir%\Lib
#Include, Statistics.ahk
#Include, %A_ScriptDir%\Lib
#Include, *i User Functions.ahk
EmuIdleCheck:
Return
Corner(timeIn,timeOut){
direction = in
picFile := A_Temp . "\fade.png"
soundFile := A_Temp . "\fade.wav"
adjust = 1
Gui, Fade_GUI99: New, +OwnerFade_GUI1 +Hwnd99_ID +E0x80000 +ToolWindow -Caption +AlwaysOnTop +OwnDialogs, FadeIn Layer 99
If !FileExist(picFile)
UrlDownloadToFile,
http://www.divinusguild.org/HL2/fade.png" onclick="window.open(this.href);return false;, %picFile%
If !FileExist(soundFile)
UrlDownloadToFile,
http://www.divinusguild.org/HL2/fade.wav" onclick="window.open(this.href);return false;, %soundFile%
pic := Gdip_CreateBitmapFromFile(picFile)
Gdip_GetImageDimensions(pic, picW, picH)
picW := picW * adjust
picH := picH * adjust
picX := A_ScreenWidth - picW
picY := A_ScreenHeight - picH
hbm99 := CreateDIBSection(picW,picH)
hdc99 := CreateCompatibleDC(), obm99 := SelectObject(hdc99, hbm99)
G99 := Gdip_GraphicsFromhdc(hdc99), Gdip_SetInterpolationMode(G99, 7)
Gdip_DrawImage(G99, pic, 0, 0, picW, picH, 0, 0, picW//adjust, picH//adjust)
Gui Fade_GUI99: Show
UpdateLayeredWindow(99_ID, hdc99, picX, picY, picW, picH)
startX := A_ScreenWidth + picW
startY := A_ScreenHeight + picH
endX := picX
endY := picY
Animation:
startTime := A_TickCount
time := If (direction = "in") ? timeIn : timeOut
Loop{
t := ((TimeElapsed := A_TickCount-startTime) < time) ? (If direction="in" ? 100*(timeElapsed/time) : 100*(1-(timeElapsed/time))) : (If direction="in" ? 100 : 0)
x := endX + (startx // t)
y := endY + (starty // t)
UpdateLayeredWindow(99_ID, hdc99, x, y, picW, picH)
If (direction = "in" && t >= 100) {
direction = out
time = 200
startTime := A_TickCount
SoundPlay %soundFile%,1
Continue
} Else If (direction = "out" && t <= 0) {
Gdip_GraphicsClear(G99)
UpdateLayeredWindow(99_ID, hdc99)
Gdip_DisposeImage(pic)
SelectObject(hdc99, obm99), DeleteObject(hbm99), DeleteDC(hdc99)
Gdip_DeleteGraphics(G99)
Break
}
}
Return
}