summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/initfile.h
diff options
context:
space:
mode:
authorMatthew Cline <zelgadis@sourceforge.net>2009-10-23 22:28:14 -0700
committerMatthew Cline <zelgadis@sourceforge.net>2009-10-23 22:28:14 -0700
commit9c08ad575dfa4fbfcbdff5280a582a7846094f60 (patch)
tree576b45acc07815c4413b8f4c920db7ce47ee5df6 /crawl-ref/source/initfile.h
parent068459aa20c4a7c7abb759ca42a1caabf3e58750 (diff)
downloadcrawl-ref-9c08ad575dfa4fbfcbdff5280a582a7846094f60.tar.gz
crawl-ref-9c08ad575dfa4fbfcbdff5280a582a7846094f60.zip
Specify arbitrary options on the command line
This introduces two new command line options, -extra-opt-first and -extra-opt-last, which make crawl think that the specified options were (respectively) at the start and end of the options file. For example: crawl -extra-opt-last wiz_mode=yes The two options can be used multiple times to specify multiple options.
Diffstat (limited to 'crawl-ref/source/initfile.h')
-rw-r--r--crawl-ref/source/initfile.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/initfile.h b/crawl-ref/source/initfile.h
index acc5b27111..84e29ffe5c 100644
--- a/crawl-ref/source/initfile.h
+++ b/crawl-ref/source/initfile.h
@@ -74,6 +74,9 @@ public:
std::string arena_teams;
+ std::vector<std::string> extra_opts_first;
+ std::vector<std::string> extra_opts_last;
+
public:
void add_rcdir(const std::string &dir);
};