Image: Use correct cache dir

This commit is contained in:
Linus Dierheimer
2023-01-28 11:28:05 +01:00
parent 9bb6d8fd6e
commit 3b0e1a5833
3 changed files with 1 additions and 5 deletions
+1 -1
View File
@@ -694,7 +694,7 @@ static bool printImageIfExistsSlowPath(FFinstance* instance, FFLogoType type, bo
ffStrbufInit(&requestData.cacheDir);
ffStrbufAppend(&requestData.cacheDir, &instance->state.platform.cacheDir);
ffStrbufAppendS(&requestData.cacheDir, "fastfetch");
ffStrbufAppendS(&requestData.cacheDir, "fastfetch/images");
ffStrbufEnsureFree(&requestData.cacheDir, PATH_MAX);
if(realpath(instance->config.logo.source.chars, requestData.cacheDir.chars + requestData.cacheDir.length) == NULL)
-2
View File
@@ -29,8 +29,6 @@ static void getCacheDir(FFPlatform* platform)
ffStrbufAppend(&platform->cacheDir, &platform->homeDir);
ffStrbufAppendS(&platform->cacheDir, ".cache/");
}
ffStrbufAppendS(&platform->cacheDir, "fastfetch/");
}
static void getConfigDirs(FFPlatform* platform)
-2
View File
@@ -33,8 +33,6 @@ static void getCacheDir(FFPlatform* platform)
ffStrbufAppendS(&platform->cacheDir, "AppData/Local/");
}
CoTaskMemFree(pPath);
ffStrbufAppendS(&platform->cacheDir, "fastfetch/");
}
static void platformPathAddKnownFolder(FFlist* dirs, REFKNOWNFOLDERID folderId)