MRI: add option to use a script's name as filename
This commit is contained in:
parent
8bc17a9a98
commit
95c112bbe4
4 changed files with 24 additions and 5 deletions
|
@ -49,7 +49,8 @@ Config::Config()
|
|||
gameFolder("."),
|
||||
anyAltToggleFS(false),
|
||||
allowSymlinks(false),
|
||||
pathCache(true)
|
||||
pathCache(true),
|
||||
useScriptNames(false)
|
||||
{}
|
||||
|
||||
void Config::read(int argc, char *argv[])
|
||||
|
@ -72,7 +73,8 @@ void Config::read(int argc, char *argv[])
|
|||
PO_DESC(allowSymlinks, bool) \
|
||||
PO_DESC(iconPath, std::string) \
|
||||
PO_DESC(customScript, std::string) \
|
||||
PO_DESC(pathCache, bool)
|
||||
PO_DESC(pathCache, bool) \
|
||||
PO_DESC(useScriptNames, bool)
|
||||
|
||||
// Not gonna take your shit boost
|
||||
#define GUARD_ALL( exp ) try { exp } catch(...) {}
|
||||
|
|
|
@ -51,6 +51,8 @@ struct Config
|
|||
|
||||
std::string iconPath;
|
||||
|
||||
bool useScriptNames;
|
||||
|
||||
std::string customScript;
|
||||
std::vector<std::string> rtps;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue