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

commandline option to load picture file

This commit is contained in:
Zeno Rogue
2017-12-03 09:52:17 +01:00
parent 7340ca190a
commit b5e7e32726
2 changed files with 72 additions and 65 deletions

View File

@@ -66,7 +66,8 @@ int arg::readCommon() {
#if CAP_EDIT
else if(argis("-lev")) { shift(); levelfile = args(); }
else if(argis("-pic")) { shift(); picfile = args(); }
else if(argis("-load")) { PHASE(3); shift(); mapstream::loadMap(loadlevel); }
else if(argis("-load")) { PHASE(3); shift(); mapstream::loadMap(args()); }
else if(argis("-picload")) { PHASE(3); shift(); mapeditor::loadPicFile(args()); }
#endif
else if(argis("-canvas")) {
firstland = specialland = laCanvas;