About This File
MEmu := "Cxbx-Reloaded"
MEmuV := "nightly"
MURL := ["https://github.com/Cxbx-Reloaded/Cxbx-Reloaded"]
MAuthor := ["teeedubb"]
MVersion := "1.0"
MSystem := ["Xbox"]
;----------------------------------------------------------------------------
; Notes:
;Based on djvj's cxbx module
;
;----------------------------------------------------------------------------
StartModule()
FadeInStart()
settingsFile := modulePath . "\" . moduleName . ".ini"
Fullscreen := IniReadCheck(settingsFile, "settings", "Fullscreen","true",,1)
7z(romPath, romName, romExtension, 7zExtractPath)
; Setting Fullscreen setting in registry if it doesn't match what user wants above
currentFullScreen := ReadReg("Fullscreen")
If ( Fullscreen != "true" And currentFullScreen = 1 )
WriteReg("Fullscreen", 0)
Else If ( Fullscreen = "true" And currentFullScreen = 0 )
WriteReg("Fullscreen", 1)
Run(executable . " """ . romPath . "\default.xbe""", emuPath)
WinWait("Cxbx-Reloaded ahk_class WndMain")
WinWaitActive("Cxbx-Reloaded ahk_class WndMain")
FadeInExit()
Process("WaitClose", executable)
7zCleanUp()
FadeOutExit()
ExitModule()
ReadReg(var1) {
RegRead, regValue, HKEY_CURRENT_USER, Software\Cxbx-Reloaded\XBVideo, %var1%
Return %regValue%
}
WriteReg(var1, var2) {
RegWrite, REG_DWORD, HKEY_CURRENT_USER, Software\Cxbx-Reloaded\XBVideo, %var1%, %var2%
}
CloseProcess:
FadeOutStart()
WinClose("Cxbx-Reloaded ahk_class WndMain")
Return
MEmu := "Xemu"
MEmuV := "v0.6.0"
MURL := ["https://xemu.app/"]
MAuthor := ["emual"]
MVersion := "1.0.0"
MCRC := ""
iCRC := ""
MID := ""
MSystem := ["Xbox"]
;----------------------------------------------------------------------------
; Notes:
; The module is able to launch ISO games.
;
;----------------------------------------------------------------------------
StartModule()
BezelGUI()
FadeInStart()
primaryExe := new Emulator(emuPath . "\" . executable) ; instantiate emulator executable object
primaryWindowClassName := "SDL_app"
emuPrimaryWindow := new Window(new WindowTitle("xemu",primaryWindowClassName)) ; instantiate primary emulator window object
Fullscreen := moduleIni.Read("Settings", "Fullscreen","true",,1)
hideEmuObj := Object(emuPrimaryWindow,1)
7z(romPath, romName, romExtension, sevenZExtractPath)
BezelStart("FixResMode")
HideAppStart(hideEmuObj,hideEmu)
If (Fullscreen = "true")
primaryExe.Run(" -full-screen -dvd_path """ . romPath . "\" . romName . romExtension . """")
Else
primaryExe.Run(" -dvd_path """ . romPath . "\" . romName . romExtension . """")
emuPrimaryWindow.Wait()
emuPrimaryWindow.WaitActive()
BezelDraw()
HideAppEnd(hideEmuObj,hideEmu)
FadeInExit()
primaryExe.Process("WaitClose")
7zCleanUp()
BezelExit()
FadeOutExit()
ExitModule()
CloseProcess:
FadeOutStart()
emuPrimaryWindow.Close()
Return