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