Advertisement
djvj

3dnes

Jan 11th, 2017
515
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. MEmu := "3DNes"
  2. MEmuV := "v1.2.1"
  3. MURL := ["https://geod.itch.io/3dnes"]
  4. MAuthor := ["djvj"]
  5. MVersion := "1.0.0"
  6. MCRC := "9B7C6847"
  7. iCRC := "F9CEDBD1"
  8. mId := "636197382944389091"
  9. MSystem := ["Nintendo Entertainment System"]
  10. ;----------------------------------------------------------------------------
  11. ; Notes:
  12. ; Roms should accompany a *.3dn file for proper 3D support, which can be found here: https://itch.io/board/28136/3dn-showcase-and-sharing
  13. ; 3dn files must accompany the rom in the same folder. If you turn on 7z support in RLUI, this will break the emu from finding the 3dn file.
  14. ;----------------------------------------------------------------------------
  15. StartModule()
  16. BezelGUI()
  17. FadeInStart()
  18.  
  19. primaryExe := new Process(emuPath . "\" . executable) ; instantiate emulator executable object
  20. emuPrimaryWindow := new Window(new WindowTitle("3DNes","UnityWndClass")) ; instantiate primary emulator window object
  21.  
  22. hideEmuObj := Object(emuPrimaryWindow,1)
  23. 7z(romPath, romName, romExtension, sevenZExtractPath)
  24.  
  25. fullscreen := moduleIni.Read("Settings", "Fullscreen","true",,1)
  26.  
  27. params := If (fullscreen = "true") ? "-screen-fullscreen" : "-popupwindow"
  28.  
  29. BezelStart()
  30.  
  31. HideAppStart(hideEmuObj,hideEmu)
  32. primaryExe.Run(" --r=""" . romPath . "\" . romName . romExtension . """ " . params)
  33. emuPrimaryWindow.Wait()
  34. emuPrimaryWindow.WaitActive()
  35. BezelDraw()
  36.  
  37. HideAppEnd(hideEmuObj,hideEmu)
  38. FadeInExit()
  39. primaryExe.Process("WaitClose")
  40. 7zCleanUp()
  41. FadeOutExit()
  42. ExitModule()
  43.  
  44.  
  45. CloseProcess:
  46. FadeOutStart()
  47. BezelExit()
  48. emuPrimaryWindow.Close()
  49. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement