Is there any way to launch commands before and after running a given emulator or game?
2 posters
Page 1 of 1
Is there any way to launch commands before and after running a given emulator or game?
Hello everyone.
I finally have retrobat working, after a little bit of thinkering and frustation but now I'm wondering this:
I'd like to launch DemulShooter, which allows to run two lightguns in emulator like DEMUL, Model2 or Dolphin.
Is there any setting on Retrobat, emulatorlauncher or EmulationStation that allows somethign like this?
Let's say I launch a game.
Then ES opens es_systems.cfg and launches this:
<command>%HOME%\emulatorLauncher.exe %CONTROLLERSCONFIG% -system %SYSTEM% -emulator %EMULATOR% -rom %ROM%</command>
What I'm looking is a way to do something like this:
<precommand> Launch DemulShooter</precommand>
<command>%HOME%\emulatorLauncher.exe %CONTROLLERSCONFIG% -system %SYSTEM% -emulator %EMULATOR% -rom %ROM%</command>
<postcommand>Kill DemulShooter on emulator exit and then return to retrobat</postcommand>
It's something similar to RocketLauncher's PCLauncher module with the PreLaunch and PostLaunch commands.
That will be an awesome feature for retrobat.
Cheers!
I finally have retrobat working, after a little bit of thinkering and frustation but now I'm wondering this:
I'd like to launch DemulShooter, which allows to run two lightguns in emulator like DEMUL, Model2 or Dolphin.
Is there any setting on Retrobat, emulatorlauncher or EmulationStation that allows somethign like this?
Let's say I launch a game.
Then ES opens es_systems.cfg and launches this:
<command>%HOME%\emulatorLauncher.exe %CONTROLLERSCONFIG% -system %SYSTEM% -emulator %EMULATOR% -rom %ROM%</command>
What I'm looking is a way to do something like this:
<precommand> Launch DemulShooter</precommand>
<command>%HOME%\emulatorLauncher.exe %CONTROLLERSCONFIG% -system %SYSTEM% -emulator %EMULATOR% -rom %ROM%</command>
<postcommand>Kill DemulShooter on emulator exit and then return to retrobat</postcommand>
It's something similar to RocketLauncher's PCLauncher module with the PreLaunch and PostLaunch commands.
That will be an awesome feature for retrobat.
Cheers!
tsellad- Messages : 14
Date d'inscription : 2021-03-25
Re: Is there any way to launch commands before and after running a given emulator or game?
Hi, for now I think you can try running a .bat file in place of the emulator content, something like:
<command>%HOME\file.bat </command>
Remembering that in the bat file you will need to insert the emulator line that was inside the <command> tag, reading the content of the variables that it triggers.
<command>%HOME\file.bat </command>
Remembering that in the bat file you will need to insert the emulator line that was inside the <command> tag, reading the content of the variables that it triggers.
marcoabm- Messages : 12
Date d'inscription : 2022-04-17
Age : 38
Localisation : Brazil

» [RESOLVED] Game and Watch Games Running Extremely Slow
» CAVE roms in CAVE folder not running, how to config to run from Demul emulator instead of Retroarch?
» [RESOLVED] Choose different emulator per game
» [RESOLVED][19] How to select a core or a standalone emulator for a game?
» How do I add mame 0.222 emulator
» CAVE roms in CAVE folder not running, how to config to run from Demul emulator instead of Retroarch?
» [RESOLVED] Choose different emulator per game
» [RESOLVED][19] How to select a core or a standalone emulator for a game?
» How do I add mame 0.222 emulator
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum