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.