was doign some debugging. i think eet needs a cache... :) not yet tho

SVN revision: 14056
This commit is contained in:
Carsten Haitzler 2005-04-01 07:26:09 +00:00
parent f047113949
commit b2699bb440
1 changed files with 2 additions and 0 deletions

View File

@ -350,6 +350,7 @@ eet_open(const char *file, Eet_File_Mode mode)
if (!file) return NULL;
// printf("open %s\n", file);
#ifdef HAVE_REALPATH
/* in case this is a symlink... find out where it REALLY points */
if (!realpath(file, buf))
@ -738,6 +739,7 @@ eet_read(Eet_File *ef, char *name, int *size_ret)
if (!ef->header->directory) return NULL;
/* get hash bucket this should be in */
hash = eet_hash_gen(name, ef->header->directory->size);
// printf("read %s\n", name);
/* hunt hash bucket */
num = ef->header->directory->hash[hash].size;
for (i = 0; i < num; i++)