diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-01-30 16:25:47 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-01-30 16:25:47 +0000 |
commit | 49f192f82cc0026f73bd5b0d1e924cc3ab9ec04c (patch) | |
tree | ee27a87642fa850cb6a807790a89af1eed001834 /src/map | |
parent | e34596082e7f202f224218de135d5f26fb3070a5 (diff) | |
download | hercules-49f192f82cc0026f73bd5b0d1e924cc3ab9ec04c.tar.gz hercules-49f192f82cc0026f73bd5b0d1e924cc3ab9ec04c.tar.bz2 hercules-49f192f82cc0026f73bd5b0d1e924cc3ab9ec04c.tar.xz hercules-49f192f82cc0026f73bd5b0d1e924cc3ab9ec04c.zip |
Added back the GRF_PATH_FILENAME variable and commandline parameter.
Removed confusing /tool/mapcache/ configuration directory, changed code to use /conf for this purpose.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12154 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/map.c | 6 | ||||
-rw-r--r-- | src/map/map.h | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/map/map.c b/src/map/map.c index cce232fd2..448648f28 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -93,6 +93,7 @@ char *ATCOMMAND_CONF_FILENAME; char *CHARCOMMAND_CONF_FILENAME; char *SCRIPT_CONF_NAME; char *MSG_CONF_NAME; +char *GRF_PATH_FILENAME; // 極力 staticでロ?カルに?める static DBMap* id_db=NULL; // int id -> struct block_list* @@ -3156,6 +3157,7 @@ int do_init(int argc, char *argv[]) CHARCOMMAND_CONF_FILENAME = "conf/charcommand_athena.conf"; SCRIPT_CONF_NAME = "conf/script_athena.conf"; MSG_CONF_NAME = "conf/msg_athena.conf"; + GRF_PATH_FILENAME = "conf/grf-files.txt"; srand(gettick()); @@ -3176,6 +3178,8 @@ int do_init(int argc, char *argv[]) SCRIPT_CONF_NAME = argv[i+1]; else if (strcmp(argv[i],"--msg_config") == 0 || strcmp(argv[i],"--msg-config") == 0) MSG_CONF_NAME = argv[i+1]; + else if (strcmp(argv[i],"--grf_path_file") == 0 || strcmp(argv[i],"--grf-path-file") == 0) + GRF_PATH_FILENAME = argv[i+1]; #ifndef TXT_ONLY else if (strcmp(argv[i],"--inter_config") == 0 || strcmp(argv[i],"--inter-config") == 0) INTER_CONF_NAME = argv[i+1]; @@ -3230,7 +3234,7 @@ int do_init(int argc, char *argv[]) mapindex_init(); if(enable_grf) - grfio_init("conf/grf-files.txt"); //[blackhole89] - restore + grfio_init(GRF_PATH_FILENAME); map_readallmaps(); diff --git a/src/map/map.h b/src/map/map.h index fc67a5387..436fbca33 100644 --- a/src/map/map.h +++ b/src/map/map.h @@ -1347,6 +1347,7 @@ extern char *ATCOMMAND_CONF_FILENAME; extern char *CHARCOMMAND_CONF_FILENAME; extern char *SCRIPT_CONF_NAME; extern char *MSG_CONF_NAME; +extern char *GRF_PATH_FILENAME; extern char *map_server_dns; |