summaryrefslogtreecommitdiff
path: root/src/tool/grfio.c
diff options
context:
space:
mode:
authorDracoRPG <DracoRPG@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-16 00:14:32 +0000
committerDracoRPG <DracoRPG@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-16 00:14:32 +0000
commit5142a65127df3a5867cc885b29e2b06e4d68def0 (patch)
treef1d8515f500515b2abb1473533513d9b57e73f03 /src/tool/grfio.c
parent07d97e45c9ed18777aa40cfd6502dc36c4b31c1e (diff)
downloadhercules-5142a65127df3a5867cc885b29e2b06e4d68def0.tar.gz
hercules-5142a65127df3a5867cc885b29e2b06e4d68def0.tar.bz2
hercules-5142a65127df3a5867cc885b29e2b06e4d68def0.tar.xz
hercules-5142a65127df3a5867cc885b29e2b06e4d68def0.zip
Small bugfixes and enhancements to the map cache generator
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10267 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/tool/grfio.c')
-rw-r--r--src/tool/grfio.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/tool/grfio.c b/src/tool/grfio.c
index b02563ce7..bee3e8e26 100644
--- a/src/tool/grfio.c
+++ b/src/tool/grfio.c
@@ -648,9 +648,10 @@ static int grfio_entryread(char *gfname,int gentry)
fp = fopen(gfname, "rb");
if (fp == NULL) {
- printf("GRF data file not found: '%s'.\n",gfname);
+ printf("GRF data file not found: '%s'\n",gfname);
return 1; // 1:not found error
- }
+ } else
+ printf("GRF data file found: '%s'\n",gfname);
fseek(fp,0,2); // SEEK_END
grf_size = ftell(fp);
@@ -961,8 +962,10 @@ void grfio_init(char *fname)
// Entry table reading
if(strcmp(w1, "grf") == 0) // GRF file
grf_num += (grfio_add(w2) == 0);
- else if(strcmp(w1,"data_dir") == 0) // Data directory
+ else if(strcmp(w1,"data_dir") == 0) { // Data directory
strcpy(data_dir, w2);
+ printf("Use data directory %s\n", w2);
+ }
}
fclose(data_conf);
} // end of reading grf-files.txt