| 302 | } |
| 303 | |
| 304 | static void print_help_and_exit() |
| 305 | { |
| 306 | printf("Options:\n"); |
| 307 | printf(" %-20s %-30s\n", "-h, --help", "Print this message and exit"); |
| 308 | printf(" %-20s %-30s\n", "--version", "Print the version and exit"); |
| 309 | printf(" %-20s %-30s\n", "--data-dir", "Specify the folder of diabdat.mpq"); |
| 310 | printf(" %-20s %-30s\n", "-n", "Skip startup videos"); |
| 311 | printf(" %-20s %-30s\n", "-f", "Display frames per second"); |
| 312 | printf(" %-20s %-30s\n", "-x", "Run in windowed mode"); |
| 313 | #ifdef _DEBUG |
| 314 | printf("\nDebug options:\n"); |
| 315 | printf(" %-20s %-30s\n", "-d", "Increaased item drops"); |
| 316 | printf(" %-20s %-30s\n", "-w", "Enable cheats"); |
| 317 | printf(" %-20s %-30s\n", "-$", "Enable god mode"); |
| 318 | printf(" %-20s %-30s\n", "-^", "Enable god mode and debug tools"); |
| 319 | //printf(" %-20s %-30s\n", "-b", "Enable item drop log"); |
| 320 | printf(" %-20s %-30s\n", "-v", "Highlight visibility"); |
| 321 | printf(" %-20s %-30s\n", "-i", "Ignore network timeout"); |
| 322 | //printf(" %-20s %-30s\n", "-j <##>", "Init trigger at level"); |
| 323 | printf(" %-20s %-30s\n", "-l <##> <##>", "Start in level as type"); |
| 324 | printf(" %-20s %-30s\n", "-m <##>", "Add debug monster, up to 10 allowed"); |
| 325 | printf(" %-20s %-30s\n", "-q <#>", "Force a certain quest"); |
| 326 | printf(" %-20s %-30s\n", "-r <##########>", "Set map seed"); |
| 327 | printf(" %-20s %-30s\n", "-t <##>", "Set current quest level"); |
| 328 | #endif |
| 329 | printf("\nReport bugs at https://github.com/diasurgical/devilutionX/\n"); |
| 330 | exit(0); |
| 331 | } |
| 332 | |
| 333 | void diablo_parse_flags(int argc, char **argv) |
| 334 | { |
no outgoing calls
no test coverage detected