1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-04 21:04:02 +00:00

disabled rogueviz slides in online RogueViz

This commit is contained in:
Zeno Rogue 2018-09-13 00:36:08 +02:00
parent 92517d7413
commit ecf351e16a

View File

@ -1597,6 +1597,10 @@ void fixparam() {
} }
} }
#ifndef CAP_RVSLIDES
#define CAP_RVSLIDES (CAP_TOUR && !ISWEB)
#endif
#if CAP_COMMANDLINE #if CAP_COMMANDLINE
int readArgs() { int readArgs() {
using namespace arg; using namespace arg;
@ -1745,9 +1749,11 @@ int readArgs() {
else if(argis("-lq")) { else if(argis("-lq")) {
shift(); linequality = argf(); shift(); linequality = argf();
} }
#if CAP_RVSLIDES
else if(argis("-rvpres")) { else if(argis("-rvpres")) {
tour::slides = rvtour::rvslides; tour::slides = rvtour::rvslides;
} }
#endif
else if(argis("-nolegend")) { else if(argis("-nolegend")) {
legend.clear(); legend.clear();
} }
@ -1921,6 +1927,7 @@ void showMenu() {
}; };
} }
#if CAP_RVSLIDES
namespace rvtour { namespace rvtour {
using namespace tour; using namespace tour;
@ -2208,6 +2215,7 @@ int rvtour_hooks =
0; 0;
} }
#endif
bool default_help() { bool default_help() {
if(!rogueviz::on) return false; if(!rogueviz::on) return false;
@ -2236,6 +2244,8 @@ auto hooks =
addHook(hooks_frame, 0, drawExtra) + addHook(hooks_frame, 0, drawExtra) +
#if CAP_COMMANDLINE #if CAP_COMMANDLINE
addHook(hooks_args, 100, readArgs) + addHook(hooks_args, 100, readArgs) +
#endif
#if CAP_RVSLIDES
addHook(hooks_config, 0, [] () { tour::ss::list(rogueviz::rvtour::rvslides); }) + addHook(hooks_config, 0, [] () { tour::ss::list(rogueviz::rvtour::rvslides); }) +
#endif #endif
addHook(clearmemory, 0, close) + addHook(clearmemory, 0, close) +