| 92 | } |
| 93 | |
| 94 | static string _get_version_features() |
| 95 | { |
| 96 | string result; |
| 97 | if (crawl_state.seed_is_known()) |
| 98 | { |
| 99 | if (you.fully_seeded) |
| 100 | { |
| 101 | result += seed_description(); |
| 102 | if (Version::history_size() > 1) |
| 103 | result += " (seed may be affected by game upgrades)"; |
| 104 | } |
| 105 | else |
| 106 | result += "Game is non-seeded."; |
| 107 | result += "\n\n"; |
| 108 | } |
| 109 | if (Version::history_size() > 1) |
| 110 | { |
| 111 | result += "Version history for your current game:\n"; |
| 112 | result += Version::history(); |
| 113 | result += "\n\n"; |
| 114 | } |
| 115 | |
| 116 | result += "Report bugs to: <w>" CRAWL_BUG_REPORT "</w>\n\n"; |
| 117 | |
| 118 | result += "<w>Features</w>\n" |
| 119 | "--------\n"; |
| 120 | |
| 121 | for (const char *feature : features) |
| 122 | { |
| 123 | result += " * "; |
| 124 | result += feature; |
| 125 | result += "\n"; |
| 126 | } |
| 127 | |
| 128 | #ifdef DEBUG |
| 129 | // this might be useful on a regular build too? |
| 130 | result += "\n<w>Paths</w>\n" |
| 131 | "-----"; |
| 132 | result += make_stringf("\n<w>crawl_dir</w>: '%s'", SysEnv.crawl_dir.c_str()); |
| 133 | if (!Options.crawl_dir_option.empty()) |
| 134 | result += make_stringf(" (option '%s')", Options.crawl_dir_option.c_str()); |
| 135 | result += make_stringf("\n<w>save_dir</w>: '%s'", Options.save_dir.c_str()); |
| 136 | if (!Options.save_dir_option.empty()) |
| 137 | result += make_stringf(" (option '%s')", Options.save_dir_option.c_str()); |
| 138 | result += make_stringf("\n<w>macro_dir</w>: '%s'", Options.macro_dir.c_str()); |
| 139 | if (!Options.macro_dir_option.empty()) |
| 140 | result += make_stringf(" (option '%s')", Options.macro_dir_option.c_str()); |
| 141 | result += "\n"; |
| 142 | #endif |
| 143 | |
| 144 | return result; |
| 145 | } |
| 146 | |
| 147 | static string _get_version_changes() |
| 148 | { |
no test coverage detected