[feat] use CROSSDESK_DEBUG compile-time variable to control config file path

This commit is contained in:
dijunkun
2025-10-31 17:31:50 +08:00
parent 2c622bc76e
commit 43db021326
6 changed files with 12 additions and 4 deletions

View File

@@ -18,7 +18,11 @@ std::filesystem::path PathManager::GetConfigPath() {
std::filesystem::path PathManager::GetCachePath() {
#ifdef _WIN32
#ifdef CROSSDESK_DEBUG
return "cache";
#else
return GetKnownFolder(FOLDERID_LocalAppData) / app_name_ / "cache";
#endif
#elif __APPLE__
return GetEnvOrDefault("XDG_CACHE_HOME", GetHome() + "/.cache") / app_name_;
#else