version 1.56 | | version 1.57 |
---|
| | |
/* | | /* |
* static char *rcsid_init_c = | | * static char *rcsid_init_c = |
* "$Id: init.c,v 1.56 2005/03/06 20:38:54 akirschbaum Exp $"; | | * "$Id: init.c,v 1.57 2005/03/15 21:06:23 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
void set_localdir(char *path) { settings.localdir=path; } | | void set_localdir(char *path) { settings.localdir=path; } |
void set_mapdir(char *path) { settings.mapdir=path; } | | void set_mapdir(char *path) { settings.mapdir=path; } |
void set_archetypes(char *path) { settings.archetypes=path; } | | void set_archetypes(char *path) { settings.archetypes=path; } |
| | void set_regions(char *path) { settings.regions=path; } |
void set_treasures(char *path) { settings.treasures=path; } | | void set_treasures(char *path) { settings.treasures=path; } |
void set_uniquedir(char *path) { settings.uniquedir=path; } | | void set_uniquedir(char *path) { settings.uniquedir=path; } |
void set_playerdir(char *path) { settings.playerdir=path; } | | void set_playerdir(char *path) { settings.playerdir=path; } |
| | |
{"-local",1,1, set_localdir}, | | {"-local",1,1, set_localdir}, |
{"-maps", 1, 1, set_mapdir}, | | {"-maps", 1, 1, set_mapdir}, |
{"-arch", 1, 1, set_archetypes}, | | {"-arch", 1, 1, set_archetypes}, |
| | {"-regions", 1, 1, set_regions}, |
{"-playerdir", 1, 1, set_playerdir}, | | {"-playerdir", 1, 1, set_playerdir}, |
{"-treasures", 1, 1, set_treasures}, | | {"-treasures", 1, 1, set_treasures}, |
{"-uniquedir", 1, 1, set_uniquedir}, | | {"-uniquedir", 1, 1, set_uniquedir}, |
| | |
printf(" -local Read/write local data (hiscore, unique items, etc.)\n"); | | printf(" -local Read/write local data (hiscore, unique items, etc.)\n"); |
printf(" -maps Sets the directory for maps.\n"); | | printf(" -maps Sets the directory for maps.\n"); |
printf(" -arch Sets the archetype file to use.\n"); | | printf(" -arch Sets the archetype file to use.\n"); |
| | printf(" -regions Sets the regions file to use.\n"); |
printf(" -playerdir Sets the directory for the player files.\n"); | | printf(" -playerdir Sets the directory for the player files.\n"); |
printf(" -treasures Sets the treasures file to use.\n"); | | printf(" -treasures Sets the treasures file to use.\n"); |
printf(" -uniquedir Sets the unique items/maps directory.\n"); | | printf(" -uniquedir Sets the unique items/maps directory.\n"); |
| | |
init_archetypes(); /* If not called before, reads all archetypes from file */ | | init_archetypes(); /* If not called before, reads all archetypes from file */ |
init_artifacts(); /* If not called before, reads all artifacts from file */ | | init_artifacts(); /* If not called before, reads all artifacts from file */ |
init_spells(); /* If not called before, links archtypes used by spells */ | | init_spells(); /* If not called before, links archtypes used by spells */ |
| | init_regions(); /* /* If not called before, reads all regions from file */ |
init_archetype_pointers(); /* Setup global pointers to archetypes */ | | init_archetype_pointers(); /* Setup global pointers to archetypes */ |
init_races(); /* overwrite race designations using entries in lib/races file */ | | init_races(); /* overwrite race designations using entries in lib/races file */ |
init_gods(); /* init linked list of gods from archs*/ | | init_gods(); /* init linked list of gods from archs*/ |