Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MEmu := "Cxbx-Reloaded"
- MEmuV := "61fc3c5f (Mar 18 2018)"
- MURL := ["https://github.com/Cxbx-Reloaded/Cxbx-Reloaded"]
- MAuthor := ["agent47"]
- MVersion := "1.0"
- MCRC := ""
- iCRC := ""
- MID := ""
- MSystem := ["Microsoft Xbox"]
- ;----------------------------------------------------------------------------
- ; Notes: Must set Match Extension to true
- ;
- ;----------------------------------------------------------------------------
- StartModule()
- FadeInStart()
- primaryExe := new Emulator(emuPath . "\" . executable)
- fullscreen := moduleIni.Read("Settings","Fullscreen","true",,1)
- emuPrimaryWindow := new Window(new WindowTitle(,"WndMain"))
- emuRenderWindow := new Window(new WindowTitle(,"CxbxRender"))
- If (fullscreen = "true") {
- Registry.Write("REG_DWORD","HKCU","Software\Cxbx-Reloaded\XBVideo","Fullscreen",1)
- emuGameWindow := emuRenderWindow
- hideEmuObject := Object(emuPrimaryWindow,0,emuGameWindow,1)
- }
- Else {
- Registry.Write("REG_DWORD","HKCU","Software\Cxbx-Reloaded\XBVideo","Fullscreen",0)
- emuGameWindow := emuPrimaryWindow
- hideEmuObject := Object(emuGameWindow,1)
- }
- 7z(romPath, romName, romExtension, sevenZExtractPath)
- HideAppStart(hideEmuObj,hideEmu)
- primaryExe.Run("""" . romPath . "\" . romName . romExtension . """")
- emuGameWindow.Wait()
- emuGameWindow.WaitActive()
- HideAppEnd(hideEmuObj,hideEmu)
- FadeInExit()
- primaryExe.Process("WaitClose")
- 7zCleanUp()
- FadeOutExit()
- ExitModule()
- CloseProcess:
- FadeOutStart()
- If (fullscreen = "true")
- emuPrimaryWindow.Close()
- emuGameWindow.Close()
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement