1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

arg:: run_arguments function

This commit is contained in:
Zeno Rogue 2021-10-15 22:14:30 +02:00
parent 432499f903
commit a6022178b3

View File

@ -126,6 +126,12 @@ EX namespace arg {
EX void cheat() { autocheat = true; cheater++; timerghost = false; } EX void cheat() { autocheat = true; cheater++; timerghost = false; }
EX void run_arguments(const vector<string> vec) {
dynamicval<int> p(pos, 0);
dynamicval<vector<string>> orig(argument, vec);
read(3);
}
EX void init(int argc, char **argv) { for(int i=0; i<argc; i++) argument.push_back(argv[i]); lshift(); } EX void init(int argc, char **argv) { for(int i=0; i<argc; i++) argument.push_back(argv[i]); lshift(); }
EX void phaseerror(int x) { EX void phaseerror(int x) {