… | |
… | |
978 | } |
978 | } |
979 | |
979 | |
980 | /* |
980 | /* |
981 | * init() is called only once, when starting the program. |
981 | * init() is called only once, when starting the program. |
982 | */ |
982 | */ |
983 | |
|
|
984 | void |
983 | void |
985 | init (int argc, char **argv) |
984 | init (int argc, char **argv) |
986 | { |
985 | { |
987 | init_done = 0; /* Must be done before init_signal() */ |
986 | init_done = 0; /* Must be done before init_signal() */ |
988 | rndm.seed (time (0)); |
987 | rndm.seed (time (0)); |
… | |
… | |
991 | init_environ (); |
990 | init_environ (); |
992 | parse_args (argc, argv, 1); /* First arg pass - right now it does |
991 | parse_args (argc, argv, 1); /* First arg pass - right now it does |
993 | * nothing, but in future specifying the |
992 | * nothing, but in future specifying the |
994 | * LibDir in this pass would be reasonable*/ |
993 | * LibDir in this pass would be reasonable*/ |
995 | |
994 | |
|
|
995 | init_anim (); // Must be called before perl |
996 | cfperl_init (); |
996 | cfperl_init (); |
997 | init_library (); /* Must be called early */ |
997 | init_library (); /* Must be called early */ |
998 | load_settings (); /* Load the settings file */ |
998 | load_settings (); /* Load the settings file */ |
999 | load_materials (); |
999 | load_materials (); |
1000 | parse_args (argc, argv, 2); |
1000 | parse_args (argc, argv, 2); |