rfancella

ParaJVE.ahk

Jun 8th, 2014
624
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.10 KB | None | 0 0
  1. MEmu = ParaJVE
  2. MEmuV = v0.7.0
  3. MURL = http://www.vectrex.fr/ParaJVE/
  4. MAuthor = djvj
  5. MVersion = 2.0.1
  6. MCRC = C5BEB0A6
  7. iCRC = DC6FE5FD
  8. MID = 635038268912130749
  9. MSystem = "GCE Vectrex"
  10. ;----------------------------------------------------------------------------
  11. ; Notes:
  12. ; To use the built-in roms for this emu, set SkipChecks to "Rom Only" in HLHQ.
  13. ; ParaJVE requires Java Runtime Environment 1.5.0+ - Get it here: http://java.com/en/download/index.jsp
  14. ; Roms are not needed for this system, they come with the emu
  15. ; You must use the official database from HyperList for this module to work
  16. ; In order to use the built-in overlays, the romName is being converted to the emu's built in game id found in the configuration.xml. This avoids having to edit the xml manually to change it to HS naming standards. We also don't have to setup overlay files this way too!
  17. ;----------------------------------------------------------------------------
  18. StartModule()
  19. BezelGUI()
  20. FadeInStart()
  21.  
  22. settingsFile := modulePath . "\" . moduleName . ".ini"
  23. CreateParaModuleIni() ; create default ini if one doesn't exist
  24. Fullscreen := IniReadCheck(settingsFile, "Settings", "Fullscreen","true",,1)
  25. Menu := IniReadCheck(settingsFile, "Settings", "Menu","false",,1)
  26. Sound := IniReadCheck(settingsFile, "Settings", "Sound","true",,1)
  27. gameID := IniReadCheck(settingsFile, romName, "gameID",A_Space,,1)
  28.  
  29. IfExist % romPath . "\" . romName . romExtension
  30. If (!gameID && !userRom)
  31. ScriptError("Built-in rom not found in " . moduleName . ".ini or in " . romPath . "\" . romName . romExtension . "`nPlease use the official database from HyperList" )
  32.  
  33. BezelStart()
  34. fullscreen := (If Fullscreen = "true" ? ("-Fullscreen=TRUE") : ("-Fullscreen=FALSE"))
  35. menu := (If Menu = "true" ? ("-Menu=ON") : ("-Menu=OFF"))
  36. sound := (If Sound = "true" ? ("-Sound=ON") : ("-Sound=OFF"))
  37. ;disableHideTitleBar := true
  38. disableHideToggleMenu := true
  39. ;disableHideBorder := true
  40.  
  41. if bezelPath
  42. { ; check for a bezel and disable chassis
  43. ParaJVEFile := emuPath . "\data\configuration.xml"
  44. FileRead, ParaJVECFG, %ParaJVEFile%
  45. ParaJVEOrig := ParaJVECFG
  46. ParaJVECFG := RegExReplace(ParaJVECFG,"chassis enabled=""true""","chassis enabled=""false""")
  47. SaveFile(ParaJVECFG, ParaJVEFile)
  48. }
  49.  
  50. Run(executable . " -game=" . (If userRom ? """" . romPath . "\" . romName . romExtension . """" : gameID) . " " . Fullscreen . " " . Menu . " " . Sound, emuPath) ;, "Min")
  51.  
  52. WinWait("ParaJVE ahk_class SunAwtFrame")
  53. WinWaitActive("ParaJVE ahk_class SunAwtFrame")
  54.  
  55. BezelDraw()
  56. FadeInExit()
  57. Process("WaitClose", "javaw.exe")
  58. FadeOutExit()
  59.  
  60. if bezelPath
  61. { ;If bezel was used, save original config file
  62. SaveFile(ParaJVEOrig, ParaJVEFile)
  63. }
  64.  
  65. ExitModule()
  66.  
  67. CreateParaModuleIni() {
  68. Global settingsFile
  69. If !FileExist(settingsFile)
  70. {
  71. txt := "# Standard games`r`n[Armor..Attack (World)]`r`ngameID = ARMORATTACK`r`n[Bedlam (USA, Europe)]`r`ngameID = BEDLAM`r`n[Berzerk (World)]`r`ngameID = BERZERK`r`n[Blitz! - Action Football (USA, Europe)]`r`ngameID = BLITZ`r`n[Clean Sweep (World)]`r`ngameID = CLEANSWEEP`r`n[Cosmic Chasm (World)]`r`ngameID = COSMICCHASM`r`n[Fortress of Narzod (USA, Europe)]`r`ngameID = NARZOD`r`n[Heads-Up - Action Soccer (USA)]`r`ngameID = HEADSUP`r`n[HyperChase - Auto Race (World)]`r`ngameID = HYPERCHASE`r`n[Mine Storm (World)]`r`ngameID = MINESTORM`r`n[Mine Storm II (USA)]`r`ngameID = MINESTORM2`r`n[Polar Rescue (USA)]`r`ngameID = POLARRESCUE`r`n[Pole Position (USA)]`r`ngameID = POLEPOSITION`r`n[Rip Off (World)]`r`ngameID = RIPOFF`r`n[Scramble (USA, Europe)]`r`ngameID = SCRAMBLE`r`n[Solar Quest (World)]`r`ngameID = SOLARQUEST`r`n[Space Wars (World)]`r`ngameID = SPACEWARS`r`n[Spike (USA, Europe)]`r`ngameID = SPIKE`r`n[Spinball (USA)]`r`ngameID = SPINBALL`r`n[Star Castle (USA)]`r`ngameID = STARCASTLE`r`n[Star Trek - The Motion Picture (USA)]`r`ngameID = STARTREK`r`n[Star Hawk (World)]`r`ngameID = STARHAWK`r`n[Web Wars (USA)]`r`ngameID = WEBWARS`r`n# 3D Imager games`r`n[3D Crazy Coaster (USA)]`r`ngameID = 3DCRAZYCOASTER`r`n[3D Mine Storm (USA)]`r`ngameID = 3DMINESTORM`r`n[3D Narrow Escape (USA)]`r`ngameID = 3DNARROWESCAPE`r`n# Homebrew games`r`n[3D Lord Of The Robots (World) (Unl)]`r`ngameID = 3DLOTR`r`n[All Good Things (World) (Unl)]`r`ngameID = ALLGOODTHINGS`r`n[City Bomber (World) (Unl)]`r`ngameID = CITYBOMBER`r`n[Continuum (World) (Unl)]`r`ngameID = CONTINUUM`r`n[Gravitrex (World) (Unl)]`r`ngameID = GRAVITREX`r`n[Moon Lander (World) (Unl)]`r`ngameID = MOONLANDER`r`n[Nebula Commander (World) (Unl)]`r`ngameID = NEBULA`r`n[Omega Chase (World) (Unl)]`r`ngameID = OMEGACHASE`r`n[Patriots (World) (Unl)]`r`ngameID = PATRIOTS`r`n[Patriots Remix (World) (Unl)]`r`ngameID = PATRIOTSREMIX`r`n[Patriots III (World) (Unl)]`r`ngameID = PATRIOTS3`r`n[Protector (World) (Unl)]`r`ngameID = PROTECTOR`r`n[Repulse (World) (Unl)]`r`ngameID = REPULSE`r`n[Revector (World) (Unl)]`r`ngameID = REVECTOR`r`n[Rockaroids Remix (World) (Unl)]`r`ngameID = ROCKAR`r`n[Rockaroids Remix - 3rd Rock (World) (Unl)]`r`ngameID = ROCKAR3RD`r`n[Space Frenzy (World) (Unl)]`r`ngameID = SPACEFRENZY`r`n[Spike Hoppin' (World) (Unl)]`r`ngameID = SPIKEHOPPIN`r`n[Spike's Water Balloons (World) (Unl)]`r`ngameID = SPIKEBALLONS`r`n[Star Fire Spirits (World) (Unl)]`r`ngameID = STARFIRESPIR`r`n[Star Sling - Freeware Edition (World) (Unl)]`r`ngameID = STARSLING`r`n[Star Sling - Turbo Edition (World) (Unl)]`r`ngameID = STARSLING_1`r`n[Thrust (World) (Unl)]`r`ngameID = THRUST`r`n[Tsunami (World) (Unl)]`r`ngameID = TSUNAMI`r`n[Vectrex Frogger (World) (Unl)]`r`ngameID = VFROGGER`r`n[Vaboom! (World) (Unl)]`r`ngameID = VABOOM`r`n[Vec Fu (World) (Unl)]`r`ngameID = VECFU`r`n[Vecmania (World) (Unl)]`r`ngameID = VECMANIA64`r`n[Vectopia (World) (Unl)]`r`ngameID = VECTOPIA64`r`n[Vector 21 (World) (Unl)]`r`ngameID = VECTOR21`r`n[Vector Sports Boxing (World) (Unl)]`r`ngameID = VECTORSPORTSBOX`r`n[Vector Vaders (World) (Unl)]`r`ngameID = VECTORVADERS`r`n[Vector Vaders Remix (World) (Unl)]`r`ngameID = VECTORVADERSREMIX`r`n[Vectrace (World) (Unl)]`r`ngameID = VECTRACE`r`n[Vectrex Maze (World) (Unl)]`r`ngameID = VECTREXMAZE`r`n[Vectrex Pong (World) (Unl)]`r`ngameID = VECTREXPONG`r`n[Vectrexians (World) (Unl)]`r`ngameID = VECTREXIANS`r`n[Vexperience - B.E.T.H. and Vecsports Boxing (World) (Unl)]`r`ngameID = VEXPERIENCE`r`n[Vimpula (World) (Unl)]`r`ngameID = VIMPULA`r`n[VIX (World) (Unl)]`r`ngameID = VIX`r`n[War of the Robots (World) (Unl)]`r`ngameID = WOTR`r`n[War of the Robots - Bow to the Queen (World) (Unl)]`r`ngameID = BTTQ`r`n[Wormhole (World) (Unl)]`r`ngameID = WORMHOLE`r`n# VecVoice enabled games`r`n[Verzerk (World) (Unl)]`r`ngameID = VERZERK`r`n[Yasi (World) (Unl)]`r`ngameID = YASI`r`n# Lightpen games`r`n[AnimAction - Advanced Animation (USA)]`r`ngameID = ANIMACTION`r`n[Art Master (USA)]`r`ngameID = ARTMASTER`r`n[Engine Analyzer (USA) (Proto)]`r`ngameID = ANALYZER`r`n[Melody Master - Music Composition and Entertainment (USA)]`r`ngameID = MELODYMASTER`r`n# Prototypes`r`n[Pitcher's Duel (USA) (Proto)]`r`ngameID = PITCHERSDUEL"
  72. FileAppend, %txt%, %settingsFile%
  73. }
  74. }
  75.  
  76. SaveFile(text,file) {
  77. FileDelete, %file%
  78. FileAppend, %text%, %file%
  79. }
  80.  
  81. CloseProcess:
  82. FadeOutStart()
  83. BezelExit()
  84. WinClose("ParaJVE ahk_class SunAwtFrame")
  85. Return
Advertisement
Add Comment
Please, Sign In to add comment