Fixed a cache issue

This commit is contained in:
Michaël Lemaire 2013-06-20 12:32:50 +02:00
parent d401d0105c
commit 22a44540d9

View file

@ -72,14 +72,14 @@ int cacheFileIsWritable(CacheFile* cache)
const char* cacheFileGetPath(CacheFile* cache)
{
FILE* f = fopen(cache->filepath, "rb");
FILE* f = fopen(cache->datapath, "rb");
if (f)
{
fclose(f);
return cache->filepath;
return cache->datapath;
}
else
{
return cache->datapath;
return cache->filepath;
}
}