1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-31 14:02:59 +00:00

added missing CAP_COMMANDLINE guards, and other fixes for non-CAP_COMMANDLINE

This commit is contained in:
Zeno Rogue
2021-05-29 12:15:50 +02:00
parent 83070fe50c
commit 334bf12292
4 changed files with 9 additions and 5 deletions

View File

@@ -238,6 +238,7 @@ EX modecode_t legacy_modecode() {
return mct;
}
#if CAP_COMMANDLINE
/* legacy options */
int read_legacy_args() {
using namespace arg;
@@ -272,6 +273,7 @@ int read_legacy_args() {
}
auto ah_legacy = addHook(hooks_args, 0, read_legacy_args);
#endif
}