Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Game Launcher pre-game execution  (Read 1116 times)

0 Members and 1 Guest are viewing this topic.

GodSend25

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 116
  • Last login:February 16, 2005, 03:18:04 pm
  • I'm a llama!
Game Launcher pre-game execution
« 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.

Jakobud

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1962
  • Last login:June 30, 2025, 02:20:39 pm
Re:Game Launcher pre-game execution
« Reply #1 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...

GodSend25

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 116
  • Last login:February 16, 2005, 03:18:04 pm
  • I'm a llama!
Re:Game Launcher pre-game execution
« Reply #2 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

Jakobud

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1962
  • Last login:June 30, 2025, 02:20:39 pm
Re:Game Launcher pre-game execution
« Reply #3 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.