MEmu := "TeknoParrot"
MEmuV := "v1.0.0.361"
MURL := ["http://www.rlauncher.com/forum/showthread.php?4868-Teknoparrot-help-launching-games"]
MAuthor := ["jviegas","adamgp"]
MVersion := "2.2.1"
MCRC := ""
iCRC := ""
MID := ""
MSystem := ["Examu eX-Board","Konami PC Based","Namco System ES3","Namco System N2","Raw Thrills PC Based","Sega Europa-R","Sega Lindbergh","Sega Nu","Sega PC Based","Sega RingEdge","Sega RingWide","Taito NESiCAxLive","Taito Type X"]
;----------------------------------------------------------------------------
; Notes:
; Make sure you enable skipchecks in RLUI since RL won't be able to locate any roms (or create dummy txt files)
; You have to define the GameProfiles for your games. These files are located in your emulators UserProfiles\ folder.
; As an alternative you can name your games using the file names in the existing INI database.
;
; Run RocketlauncherUI, choose a system using this module.
; Now click on Modules and click "Edit Global Module Settings".
; Select "Roms Settings" and you can enter the GameProfile (TeknoParrot XML UserProfile) for each game.
;
;----------------------------------------------------------------------------
StartModule()
BezelGUI()
FadeInStart()
configName := moduleIni.Read(romName . "|Settings", "GameProfile", romName,, 1)
primaryExe := new Emulator(emuPath . "\" . executable . " --startMinimized --profile=" . configName . ".xml")
fadeTitle := moduleIni.Read(romName . "|" . systemName . "|Settings", "FadeTitle",,,1)
fadeTitleTimeout := moduleIni.Read(romName . "|" . systemName . "|Settings", "FadeTitleTimeout",,,1)
fadeTitleWaitTillActive := moduleIni.Read(romName . "|" . systemName . "|Settings", "FadeTitleWaitTillActive",,,1)
demulShooterTarget := moduleIni.Read(romName . "|" . systemName . "|Settings", "DemulShooterTarget", "",,1)
demulShooterEnabled := moduleIni.Read(romName . "|Settings", "DemulShooterEnabled", "false",,1)
demulShooter64Bit := moduleIni.Read(romName . "|Settings", "DemulShooter64Bit", "false",,1)
demulShooterRom := moduleIni.Read(romName . "|Settings", "DemulShooterRom", configName,,1)
vertical := moduleIni.Read(romName . "|Settings", "Vertical", "",,1)
verticalMethod := moduleIni.Read(romName . "|Settings", "VerticalMethod", rotateMethod,,1)
mouseToVJoy := moduleIni.Read(romName . "|" . systemName . "|Settings", "MouseToVJoy", "",,1)
mouseToVJoyUse := moduleIni.Read(romName . "|Settings", "UseMouseToVJoy", "",,1)
codecTweakTool := moduleIni.Read(romName . "|" . systemName . "|Settings", "CodecTweakTool", "",,1)
codecTweakToolPreferredCommand := moduleIni.Read(romName . "|Settings", "CodecTweakToolPreferredCommand", "",,1)
BezelStart()
configFile := new File(emuPath . "\UserProfiles\" . configName . ".xml")
If (demulShooterEnabled = "true") {
If (demulShooter64Bit = "true") {
demulShooterPath := RegExReplace(demulShooterPath, "\.exe$", "X64.exe")
}
demulShooterExe := New DemulShooter()
demulShooterExe.Launch(demulShooterTarget,demulShooterRom)
}
If (mouseToVJoy != "") {
If (mouseToVJoyUse = "true") {
mouseToVJoy := new Process(mouseToVJoy)
mouseToVJoy.Run()
}
}
If (codecTweakTool != "") {
If (codecTweakToolPreferredCommand != "") {
codecTweakTool := new Process(codecTweakTool)
codecTweakTool.RunWait("/silent /win7ds /" . codecTweakToolPreferredCommand)
}
}
If (vertical = "true") {
verticalExe := CheckFile(moduleExtensionsPath . "\" . VerticalMethod . ".exe")
Rotate(verticalMethod, 90)
}
BezelDraw()
SoundGet, masterVolume
If (configFile.Exist()) {
primaryExe.Run()
} Else {
ScriptError("Game not found. Please check your module rom settings or whether you have setup your game within the emulator.")
}
If fadeTitle {
fadeTitleObj := StringUtils.ParsePCTitle(fadeTitle)
appPrimaryWindow := new Window(new WindowTitle(fadeTitleObj.Title, fadeTitleObj.Class))
RLLog.Info("FadeTitle set, waiting for """ . appPrimaryWindow.WinTitle.GetWindowTitle() . """")
If (fadeTitleTimeout)
appPrimaryWindow.Wait(fadeTitleTimeout)
Else
appPrimaryWindow.Wait()
If (fadeTitleWaitTillActive = "true")
appPrimaryWindow.WaitActive()
} Else {
appWaitExe := new Process(emuPath . "\" . executable)
RLLog.Info("FadeTitle not set, waiting for """ . appWaitExe.FileName . """")
}
FadeInExit()
If FadeTitle {
RLLog.Info("Waiting for Window """ . appPrimaryWindow.WinTitle.GetWindowTitle() . """ to close.")
appPrimaryWindow.WaitClose()
} Else {
RLLog.Info("Waiting for Process """ . appWaitExe.FileName . """ to close.")
appWaitExe.Process("WaitClose")
}
If (vertical = "true") {
Rotate(verticalMethod, 0)
}
If (demulShooterEnabled = "true") {
demulShooterExe.ProcessClose()
}
If (mouseToVJoy != "") {
If (mouseToVJoyUse = "true") {
mouseToVJoy.ProcessClose()
}
}
If (codecTweakTool != "") {
If (codecTweakToolPreferredCommand != "") {
codecTweakTool.Run("/silent /win7ds /reset_to_defaults")
}
}
; Reset to the original volume as Batman may tweak the system volume level.
SoundSet, %masterVolume%
BezelExit()
FadeOutExit()
ExitModule()
CloseProcess:
FadeOutStart()
Return