MCPcopy Create free account
hub / github.com/diasurgical/devilution / print_help_and_exit

Function print_help_and_exit

Source/diablo.cpp:304–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304static 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
333void diablo_parse_flags(int argc, char **argv)
334{

Callers 1

diablo_parse_flagsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected