Advertisement
Guest User

Untitled

a guest
Jun 28th, 2018
452
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. MEmu := "Cxbx-Reloaded"
  2. MEmuV := "61fc3c5f (Mar 18 2018)"
  3. MURL := ["https://github.com/Cxbx-Reloaded/Cxbx-Reloaded"]
  4. MAuthor := ["agent47"]
  5. MVersion := "1.0"
  6. MCRC := ""
  7. iCRC := ""
  8. MID := ""
  9. MSystem := ["Microsoft Xbox"]
  10. ;----------------------------------------------------------------------------
  11. ; Notes: Must set Match Extension to true
  12. ;
  13. ;----------------------------------------------------------------------------
  14. StartModule()
  15. FadeInStart()
  16.  
  17. primaryExe := new Emulator(emuPath . "\" . executable)
  18.  
  19. fullscreen := moduleIni.Read("Settings","Fullscreen","true",,1)
  20.  
  21. emuPrimaryWindow := new Window(new WindowTitle(,"WndMain"))
  22. emuRenderWindow := new Window(new WindowTitle(,"CxbxRender"))
  23.  
  24. If (fullscreen = "true") {
  25. Registry.Write("REG_DWORD","HKCU","Software\Cxbx-Reloaded\XBVideo","Fullscreen",1)
  26. emuGameWindow := emuRenderWindow
  27. hideEmuObject := Object(emuPrimaryWindow,0,emuGameWindow,1)
  28. }
  29. Else {
  30. Registry.Write("REG_DWORD","HKCU","Software\Cxbx-Reloaded\XBVideo","Fullscreen",0)
  31. emuGameWindow := emuPrimaryWindow
  32. hideEmuObject := Object(emuGameWindow,1)
  33. }
  34.  
  35. 7z(romPath, romName, romExtension, sevenZExtractPath)
  36.  
  37. HideAppStart(hideEmuObj,hideEmu)
  38.  
  39. primaryExe.Run("""" . romPath . "\" . romName . romExtension . """")
  40.  
  41. emuGameWindow.Wait()
  42. emuGameWindow.WaitActive()
  43.  
  44. HideAppEnd(hideEmuObj,hideEmu)
  45. FadeInExit()
  46. primaryExe.Process("WaitClose")
  47. 7zCleanUp()
  48. FadeOutExit()
  49. ExitModule()
  50.  
  51.  
  52. CloseProcess:
  53. FadeOutStart()
  54. If (fullscreen = "true")
  55. emuPrimaryWindow.Close()
  56. emuGameWindow.Close()
  57. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement