scottrice / Ice

Application to automatically add ROMs to Steam
http://scottrice.github.io/Ice/
MIT License
834 stars 96 forks source link

Added %n parameter for ROM name without extension and path #331

Closed ghost closed 8 years ago

ghost commented 8 years ago

Added a .replace argument for the rom name without extension and path for situations like PCSX2 handling of separete configuration files where you need to pass --cfgpath="/a/b/c" and --cfg="x.cfg" so that it can be configured using %n in emulators.txt

scottrice commented 8 years ago

Thanks for doing this! I'll take a look at the code now.

ghost commented 8 years ago

Well, the use case is where you would have a separate configuration file that would follow the filename of that rom we are parsing. So if I got Game.iso I would also have Game.cfg in the same folder, but if I pass %l i get the .iso extension which won't work because we need .cfg also updated commits

scottrice commented 8 years ago

This looks great, thanks a bunch for doing this!