… | |
… | |
285 | {"-score", 1, 3, (void (*)()) showscoresparm} |
285 | {"-score", 1, 3, (void (*)()) showscoresparm} |
286 | }; |
286 | }; |
287 | |
287 | |
288 | |
288 | |
289 | /* Note since this may be called before the library has been set up, |
289 | /* Note since this may be called before the library has been set up, |
290 | * we don't use any of crossfires built in logging functions. |
290 | * we don't use any of deliantras built in logging functions. |
291 | */ |
291 | */ |
292 | static void |
292 | static void |
293 | parse_args (int argc, char *argv[], int pass) |
293 | parse_args (int argc, char *argv[], int pass) |
294 | { |
294 | { |
295 | size_t i; |
295 | size_t i; |
… | |
… | |
931 | init_block (); |
931 | init_block (); |
932 | cfperl_init (); |
932 | cfperl_init (); |
933 | load_settings (); /* Load the settings file */ |
933 | load_settings (); /* Load the settings file */ |
934 | load_materials (); |
934 | load_materials (); |
935 | parse_args (argc, argv, 2); |
935 | parse_args (argc, argv, 2); |
936 | fprintf (logfile, "Welcome to CrossFire, v%s\n", VERSION); |
936 | fprintf (logfile, "Welcome to Deliantra, v%s\n", VERSION); |
937 | fprintf (logfile, "Copyright (C) 2005, 2006, 2007 Marc Lehmann.\n"); |
937 | fprintf (logfile, "Copyright (C) 2005, 2006, 2007 Marc Lehmann.\n"); |
938 | fprintf (logfile, "Copyright (C) 1994 Mark Wedel.\n"); |
938 | fprintf (logfile, "Copyright (C) 1994 Mark Wedel.\n"); |
939 | fprintf (logfile, "Copyright (C) 1992 Frank Tore Johansen.\n"); |
939 | fprintf (logfile, "Copyright (C) 1992 Frank Tore Johansen.\n"); |
940 | |
940 | |
941 | if (strcmp (settings.dm_mail, "") != 0) |
941 | if (strcmp (settings.dm_mail, "") != 0) |
942 | { |
942 | { |
943 | fprintf (logfile, "Maintained locally by: %s\n", settings.dm_mail); |
943 | fprintf (logfile, "Maintained locally by: %s\n", settings.dm_mail); |
944 | fprintf (logfile, "Questions and bugs should be mailed to above address.\n"); |
944 | fprintf (logfile, "Questions and bugs should be mailed to above address.\n"); |
945 | } |
945 | } |
946 | |
946 | |
947 | init_uuid (); |
947 | UUID::init (); |
948 | init_signals (); /* Sets up signal interceptions */ |
948 | init_signals (); /* Sets up signal interceptions */ |
949 | init_commands (); /* Sort command tables */ |
949 | init_commands (); /* Sort command tables */ |
950 | init_skills (); |
950 | init_skills (); |
951 | |
951 | |
952 | parse_args (argc, argv, 3); |
952 | parse_args (argc, argv, 3); |
… | |
… | |
956 | } |
956 | } |
957 | |
957 | |
958 | void |
958 | void |
959 | usage (void) |
959 | usage (void) |
960 | { |
960 | { |
961 | (void) fprintf (logfile, "Usage: crossfire [-h] [-<flags>]...\n"); |
961 | (void) fprintf (logfile, "Usage: deliantra-server [-h] [-<flags>]...\n"); |
962 | } |
962 | } |
963 | |
963 | |
964 | void |
964 | void |
965 | help (void) |
965 | help (void) |
966 | { |
966 | { |