Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MEmu = EDuke32
- MEmuV = v5.307
- MURL = http://eduke32.com/
- MAuthor = 10cold,djvj
- MVersion = 0.2
- MCRC =
- iCRC =
- MID =
- MSystem = "Duke Nukem"
- ;----------------------------------------------------------------------------
- ; Notes:
- ; For this module to work, you need to place Duke3d.grp inside EDuke32 folder
- ; Each rom shall be packed with .7z file containing a dummy .txt file named
- ; according rom name.
- ; For each rom, create an entries with the launching commands on EDuke32.ini file
- ;----------------------------------------------------------------------------
- StartModule()
- BezelGUI()
- FadeInStart()
- settingsFile := modulePath . "\" . moduleName . ".ini"
- eduke32cfg := CheckFile(emuPath . "\eduke32.cfg")
- fullscreen := IniReadCheck(settingsFile, "Settings", "Fullscreen", "true",,1)
- gprRomFiles := IniReadCheck(settingsFile, "" romName "", "gprRomFiles",,,1)
- conRomFiles := IniReadCheck(settingsFile, "" romName "", "conRomFiles",,,1)
- defRomFiles := IniReadCheck(settingsFile, "" romName "", "defRomFiles",,,1)
- AditionalCommands := IniReadCheck(settingsFile, "" romName "", "AditionalCommands",,,1)
- hideEmuObj := Object("Duke Nukem ahk_class SDL_app",1) ; Hide_Emu will hide these windows. 0 = will never unhide, 1 = will unhide later
- 7z(romPath, romName, romExtension, 7zExtractPath)
- If bezelEnabled = true
- { BezelStart()
- edukeWidth := Round(bezelScreenWidth)
- edukeHeight := Round(bezelScreenHeight)
- IniWrite, 0, %eduke32cfg%, Screen Setup, ScreenMode
- IniWrite, %edukeWidth%, %eduke32cfg%, Screen Setup, ScreenWidth
- IniWrite, %edukeHeight%, %eduke32cfg%, Screen Setup, ScreenHeight
- }
- IniRead, currentFullScreen, %eduke32cfg%, Screen Setup, ScreenMode
- If (currentFullScreen = 0) and (fullscreen = "true") {
- IniWrite, 1, %eduke32cfg%, Screen Setup, ScreenMode
- IniWrite, %A_ScreenWidth%, %eduke32cfg%, Screen Setup, ScreenWidth
- IniWrite, %A_ScreenHeight%, %eduke32cfg%, Screen Setup, ScreenHeight
- } Else If (currentFullScreen = 1) and (fullscreen = "false") {
- IniWrite, 0, %eduke32cfg%, Screen Setup, ScreenMode
- }
- HideEmuStart() ; This fully ensures windows are completely hidden even faster than winwait
- Run(executable . " -j""" . romPath . """" . " " . gprRomFiles . " " . conRomFiles . " " . defRomFiles . " " . AditionalCommands . " -nosetup" , emuPath)
- WinWait("Duke Nukem ahk_class SDL_app")
- WinWaitActive("Duke Nukem ahk_class SDL_app")
- BezelDraw()
- HideEmuEnd()
- FadeInExit()
- Process("WaitClose", executable)
- 7zCleanUp()
- BezelExit()
- FadeOutExit()
- ExitModule()
- CloseProcess:
- FadeOutStart()
- ; WinClose("Duke Nukem ahk_class SDL_app")
- Process("Close", executable) ; this is the only thing that can close the application
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement