|
13 | 13 | #include <fstream> |
14 | 14 | #include <functional> |
15 | 15 | #include <iostream> |
16 | | -#include <unordered_map> |
17 | 16 | #include <argparse.hpp> |
18 | 17 | #include <lcf/encoder.h> |
19 | 18 | #include <lcf/reader_util.h> |
@@ -42,25 +41,6 @@ Creates an overlap-free, directed graph (for huge graphs use sfdp, not dot) |
42 | 41 |
|
43 | 42 | )" "Homepage " PACKAGE_URL " - Report bugs at: " PACKAGE_BUGREPORT; |
44 | 43 |
|
45 | | -static int print_help(char** argv) { |
46 | | - std::cerr << "lcfviz - Creates a dot file from a map tree by scanning the map for teleports.\n"; |
47 | | - std::cerr << "Usage: " << argv[0] << " [OPTION...] DIRECTORY [ENCODING]\n"; |
48 | | - std::cerr << "Options:\n"; |
49 | | - std::cerr << " -d, --depth DEPTH Maximal depth from the start node (default: no limit)\n"; |
50 | | - std::cerr << " Enables unreachable node detection (-r)\n"; |
51 | | - std::cerr << " -h, --help This usage message\n"; |
52 | | - std::cerr << " -o, --output FILE Output file (default: stdout)\n"; |
53 | | - std::cerr << " -r, --remove Remove nodes that are unreachable from the start node\n"; |
54 | | - std::cerr << " -s, --start ID Initial node of the graph (default: start party position)\n"; |
55 | | - std::cerr << "\n"; |
56 | | - std::cerr << "When not specified the encoding is read from RPG_RT.ini or auto-detected.\n"; |
57 | | - std::cerr << "\n"; |
58 | | - std::cerr << "Example usage:\n"; |
59 | | - std::cerr << " lcfviz YOURGAME | dot -Goverlap=false -Gsplines=true -Tpng -o graph.png\n"; |
60 | | - std::cerr << "Creates an overlap-free, directed graph (for huge graphs use sfdp, not dot)\n"; |
61 | | - return 2; |
62 | | -} |
63 | | - |
64 | 44 | namespace { |
65 | 45 | /* config */ |
66 | 46 | std::string encoding, indir; |
@@ -380,6 +360,7 @@ void ParseLmt(const std::string& filename) { |
380 | 360 | } |
381 | 361 |
|
382 | 362 | lcf::rpg::ForEachString(*tree, [&](const auto& val, const auto& ctx) { |
| 363 | + (void)val; |
383 | 364 | if (ctx.name == "name") { |
384 | 365 | parse_map(ctx); |
385 | 366 | } |
|
0 commit comments