Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MEmu := "DuckStation"
- MEmuV := "v0.1-4790"
- MURL := ["https://github.com/stenzek/duckstation"]
- MAuthor := ["djvj"]
- MVersion := "1.0.0"
- MCRC := "D9619D1A"
- iCRC := "75C436E7"
- mId := "637841085025562464"
- MSystem := ["Sony PlayStation","Gun Games","Lightgun Games","Shooting Games"]
- ;----------------------------------------------------------------------------
- ; Notes:
- ; Supports both gui and nogui executables
- ;----------------------------------------------------------------------------
- StartModule()
- BezelGUI()
- FadeInStart()
- primaryExe := new Process(emuPath . "\" . executable) ; instantiate emulator executable object
- If StringUtils.Contains(executable,"qt") {
- emuWinTitle := romName
- emuWinClass := "Qt610QWindowIcon"
- } Else {
- emuWinTitle := MEmu
- emuWinClass := "SDL_app"
- }
- emuPrimaryWindow := new Window(new WindowTitle(emuWinTitle, emuWinClass))
- Fullscreen := moduleIni.Read("Settings", "Fullscreen","true",,1)
- Fastboot := moduleIni.Read("Settings", "Fastboot","false",,1) ; When enabled, skips the bios screen
- BezelStart()
- hideEmuObj := Object(emuPrimaryWindow,1)
- 7z(romPath, romName, romExtension, sevenZExtractPath)
- fastboot := If (Fastboot = "true") ? " -fastboot" : ""
- fullscreen := If (Fullscreen = "true") ? " -fullscreen" : ""
- params := " -batch -- "
- HideAppStart(hideEmuObj,hideEmu)
- primaryExe.Run(fullscreen . fastboot . params . """" . romPath . "\" . romName . romExtension . """")
- emuPrimaryWindow.Wait()
- emuPrimaryWindow.WaitActive()
- BezelDraw()
- HideAppEnd(hideEmuObj,hideEmu)
- FadeInExit()
- primaryExe.Process("WaitClose")
- 7zCleanUp()
- FadeOutExit()
- ExitModule()
- CloseProcess:
- FadeOutStart()
- BezelExit()
- emuPrimaryWindow.Close()
- Return
Add Comment
Please, Sign In to add comment