How would you go about passing system and rom information as variables to a command line? For example, I am trying to use Rocketlauncher in a layout to bring up the pause menu for the current game in the display by using
fe.plugin_command("/Rocketlauncher/Rocketlauncher.exe", -s [system] -r [name] -p AttractMode -m pause");
However, if I try to pass arguments as magic tokens (which I'm assuming is wrong) in [brackets] it doesn't work. I have also tried enclosing in quotes ["name"], and "[name]", plus just about every way i can think of with or without brackets and quotes. Everything either shows up as a literal string, or crashes the layout. What is the correct way to get these parameters and pass them as arguments? The frontend itself seems to have no problem doing it when inputting the arguments to set up the emulator. Also, it would be appreciated if you could point me in the right direction how to add this of some sort of function that can be called on when one of the "custom" buttons is pressed. Thanks for any help with this.