diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-09-03 19:41:33 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-09-03 19:41:33 +0000 |
| commit | fb449850a6895b5b82ee545fcb35a04d565c6d56 (patch) | |
| tree | 0689495086c1c69929dddbc4a65626705131de96 /src/base/arenaFile.c | |
| parent | c8a8b08db7889eaa34f0b52b5a4d9487358b0d88 (diff) | |
- server si dokaze stahnut arenu z downServera
( este to nie je poriadne otestovane )
git-svn-id: http://opensvn.csie.org/tuxanci_ng@273 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/base/arenaFile.c')
| -rw-r--r-- | src/base/arenaFile.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/base/arenaFile.c b/src/base/arenaFile.c index 6c50d34..10b4449 100644 --- a/src/base/arenaFile.c +++ b/src/base/arenaFile.c @@ -15,6 +15,7 @@ #include "director.h" #include "modules.h" #include "archive.h" +#include "homeDirector.h" #ifndef PUBLIC_SERVER #include "configFile.h" @@ -301,6 +302,11 @@ void destroyArenaFile(arenaFile_t *p) free(p); } +void loadArenaFile(char *path) +{ + addList(listArenaFile, newArenaFile(path) ); +} + void initArenaFile() { director_t *p; @@ -311,7 +317,10 @@ void initArenaFile() #endif isArenaFileInit = TRUE; listArenaFile = newList(); + p = loadDirector(PATH_ARENA); + //p = loadDirector( getHomeDirector() ); + for (i = 0; i < p->list->count; i++) { char *line; @@ -326,8 +335,7 @@ void initArenaFile() printf(_("Loading arena: %s\n"), line); #endif accessExistFile(path); - - addList(listArenaFile, newArenaFile(path)); + loadArenaFile(path); } } //printf("No. of Arens: %d\n", listArenaFile->count); |