Fixed a cache issue
This commit is contained in:
parent
d401d0105c
commit
22a44540d9
1 changed files with 3 additions and 3 deletions
|
@ -72,14 +72,14 @@ int cacheFileIsWritable(CacheFile* cache)
|
||||||
|
|
||||||
const char* cacheFileGetPath(CacheFile* cache)
|
const char* cacheFileGetPath(CacheFile* cache)
|
||||||
{
|
{
|
||||||
FILE* f = fopen(cache->filepath, "rb");
|
FILE* f = fopen(cache->datapath, "rb");
|
||||||
if (f)
|
if (f)
|
||||||
{
|
{
|
||||||
fclose(f);
|
fclose(f);
|
||||||
return cache->filepath;
|
return cache->datapath;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return cache->datapath;
|
return cache->filepath;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue