1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-02-06 01:40:15 +00:00

added some missing CAP_ guards

This commit is contained in:
Zeno Rogue
2018-12-15 15:17:06 +01:00
parent cd001102f8
commit 4e4fce922e
9 changed files with 37 additions and 8 deletions

View File

@@ -1056,7 +1056,7 @@ namespace conformal {
#endif
}
#if CAP_COMMANDLINE
int readArgs() {
using namespace arg;
@@ -1126,7 +1126,10 @@ namespace conformal {
else return 1;
return 0;
}
auto hookArg = addHook(hooks_args, 100, readArgs);
#endif
auto hooks = addHook(clearmemory, 0, [] () {
conformal::renderAutoband();
conformal::on = false;
@@ -1134,7 +1137,7 @@ namespace conformal {
conformal::findhistory.clear();
conformal::movehistory.clear();
conformal::includeHistory = false;
}) + addHook(hooks_args, 100, readArgs);
});
}