Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: GodSend25 on September 02, 2003, 05:08:29 pm

Title: Game Launcher pre-game execution
Post by: GodSend25 on September 02, 2003, 05:08:29 pm
I am trying to use Game Launchers "pre-load" options to run a small java program prior to mame launch.  I would like to pass as a argument the filename of the game being loaded, but can not figure out how to do it.  Something along the lines of output.exe %game% or whatever the syntax should be.

Is this possible?  I know Mame has a broadcast feature, but I am unsure how to capture that in the Java code I am writing.
Title: Re:Game Launcher pre-game execution
Post by: Jakobud on September 02, 2003, 08:21:24 pm
I dont think there is any way to query the name of the game to be run.  Are you just wanting a list of the games you run?  Maybe you could turn on the logging and then create a small perl program to run after you run a game and parse out the name of the game from the log or something...
Title: Re:Game Launcher pre-game execution
Post by: GodSend25 on September 03, 2003, 10:31:02 am
Thats not a bad idea.  The program I want to execute is writen by me in java, so its no biggy to make it open the log file to figure out whats being run.  Actually I think Game Launcher creates some batch files o run on the fly, so I could just parse those.

Cheers
Title: Re:Game Launcher pre-game execution
Post by: Jakobud on September 03, 2003, 07:57:10 pm
I dont think it creates batch files on the fly... maybe it does if you use to before and after run commands. I'm not sure.  If that is the case, then just make the pre or post command some basic pointless thing and then you could just parse the batch file, which would be super easy.