1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-06-10 18:34:08 +00:00

texture:: commandline remapping option -txremap

This commit is contained in:
Zeno Rogue 2018-04-06 00:39:02 +02:00
parent 925a3af3ad
commit a3479ae830

View File

@ -1419,6 +1419,8 @@ void texture_config::remap(eTextureState old_tstate, eTextureState old_tstate_ma
} }
} }
eTextureState old_tstate_cl, old_tstate_max_cl;
int textureArgs() { int textureArgs() {
using namespace arg; using namespace arg;
@ -1442,6 +1444,12 @@ int textureArgs() {
else if(argis("-txcl")) { else if(argis("-txcl")) {
PHASE(3); drawscreen(); PHASE(3); drawscreen();
config.load(); config.load();
old_tstate_cl = texture::config.tstate;
old_tstate_max_cl = texture::config.tstate_max;
}
else if(argis("-txremap")) {
texture::config.remap(old_tstate_cl, old_tstate_max_cl);
} }
else return 1; else return 1;