1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-31 01:37:57 +00:00

arg:: used the new add::arg in some contexts

This commit is contained in:
Zeno Rogue
2021-03-31 02:58:03 +02:00
parent af28dd98da
commit 408a49dfe9
4 changed files with 11 additions and 32 deletions

View File

@@ -702,20 +702,7 @@ EX namespace history {
#endif
}
#if CAP_COMMANDLINE
int readArgs() {
using namespace arg;
if(0) ;
else if(argis("-playerpath")) {
history::create_playerpath();
}
else return 1;
return 0;
}
auto hookArg = addHook(hooks_args, 100, readArgs);
#endif
auto hookArg = arg::add3("-playerpath", history::create_playerpath);
auto hooks = addHook(hooks_clearmemory, 0, [] () {
history::renderAutoband();