cammelspit Posted May 21, 2017 Share Posted May 21, 2017 Hey, I know that LB has a %romfile% variable that is supposed to allow you to have command line switches and such after the ROM path. Problem is, I simply cannot get it to work the way I want it to. when I add it to the command line variables the sample command comes out... XXXX.exe %romfile% /c "FULL\PATH\TO\ROM\FILE" But instead, it should be... XXXX.exe "FULL\PATH\TO\ROM\FILE" /c Unless, of course, I am missing entirely what I have to do to get this working how I want. Either way, the second example is what I want to actually be output to the command line. I really hope someone knows how to do what I want. There is no specific documentation on these sorts of things so I ended up having to look through several months of changelogs because I knew it was there but I could not remember what variable to use in the first place. Anyways, thanks, guys! Quote Link to comment Share on other sites More sharing options...
ckp Posted May 22, 2017 Share Posted May 22, 2017 (edited) If you're trying to do this in the Edit Emulator window, I don't see a way to get the /c at the end. But you could use a batch file as your emulator and in the batch file you could run your emulator or exe with the command you want and in the order you want. Edit: I think the batch file would be something like this: pathToFile\XXXX.exe %1 /c or maybe with quotes: pathToFile\XXXX.exe "%1" /c Edited May 22, 2017 by ckp Quote Link to comment Share on other sites More sharing options...
cammelspit Posted May 22, 2017 Author Share Posted May 22, 2017 What I posted there was just an example and the app I want to use MUST have at least one argument after the path. I know it can be done because Jason said it could be done but the bat file method is a possibility. Wee, the DEV stream is in about an hour right now so I can probably just ask Jason, he would know how. Thanks anyways! P.S. When I do figure it out I will post the procedure here so others will be able to find it in the future with a search. Quote Link to comment Share on other sites More sharing options...
ckp Posted May 22, 2017 Share Posted May 22, 2017 I'm guessing you could probably also simply modify the command in the xml file. Quote Link to comment Share on other sites More sharing options...
Zombeaver Posted May 22, 2017 Share Posted May 22, 2017 I've got an example of how I use it here: You should be able to have additional switches after it. I just use mine for a path followed by another path (for a second disk) but it puts them in the right order. Quote Link to comment Share on other sites More sharing options...
ckp Posted May 22, 2017 Share Posted May 22, 2017 Ah, yeah on a per game basis like @Zombeaver says. I was thinking on a global emulator basis. Quote Link to comment Share on other sites More sharing options...
Zombeaver Posted May 22, 2017 Share Posted May 22, 2017 It should be able to be used like that too, it's just that there's no way to do that in my specific scenario. If I only needed it to be directed to a single file I think that would work. One thing to keep in mind is that when you add anything into a specific game's custom command line parameters field, it overrides anything that you have set as custom command line parameters in the emulator entry itself. I asked for an append command line parameters checkbox to be added to game entries so that you could either treat it like it works now or check that box and have it add anything you put in a game's custom command line parameters field to whatever you have specified at the emulator entry level. It hasn't happened yet though. Quote Link to comment Share on other sites More sharing options...
cammelspit Posted May 22, 2017 Author Share Posted May 22, 2017 Yes, I am aware @Zombeaver thanks for the heads up. Yeah, the reason I want to use it this way is because I am trying to cascade more than one tool on the launch of any "game" from a custom platform. I know it may be silly to even want to do it this way but I am trying to assess the feasibility of using LB as a 100% replacement for actually loading and running tools and layered commands from the CLI and I have simply run across this need. Especially so I don't have to unload BB to load certain tools and apps. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.