mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-31 19:29:18 +00:00
added CAP_COMMANDLINE guards in rulegen
This commit is contained in:
parent
bdeee41e98
commit
6a3e12836f
@ -1699,6 +1699,7 @@ EX bool prepare_rules() {
|
||||
return false;
|
||||
}
|
||||
|
||||
#if CAP_COMMANDLINE
|
||||
int args() {
|
||||
using namespace arg;
|
||||
|
||||
@ -1725,9 +1726,11 @@ int args() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
auto hooks =
|
||||
addHook(hooks_args, 100, args)
|
||||
+ addHook(hooks_configfile, 100, [] {
|
||||
auto hooks_arg =
|
||||
addHook(hooks_args, 100, args);
|
||||
#endif
|
||||
|
||||
auto hooks = addHook(hooks_configfile, 100, [] {
|
||||
param_i(max_retries, "max_retries");
|
||||
param_i(max_tcellcount, "max_tcellcount")
|
||||
->editable(0, 16000000, 100000, "maximum cellcount", "controls the max memory usage of conversion algorithm -- the algorithm fails if exceeded", 'c');
|
||||
|
Loading…
Reference in New Issue
Block a user