From c22027be6aa43ab94c30ba0ca7021971a462b876 Mon Sep 17 00:00:00 2001 From: Dario Date: Tue, 17 Dec 2024 14:26:00 -0300 Subject: [PATCH] Fix config directory. --- UnleashedRecomp/user/paths.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/UnleashedRecomp/user/paths.h b/UnleashedRecomp/user/paths.h index 88d6c53a..7eb7dd42 100644 --- a/UnleashedRecomp/user/paths.h +++ b/UnleashedRecomp/user/paths.h @@ -30,13 +30,12 @@ inline std::filesystem::path GetUserPath() if (homeDir != nullptr) { // Prefer to store in the .config directory if it exists. Use the home directory otherwise. - const std::string dirName = "." USER_DIRECTORY; std::filesystem::path homePath = homeDir; std::filesystem::path configPath = homePath / ".config"; if (std::filesystem::exists(configPath)) - userPath = configPath / dirName; + userPath = configPath / USER_DIRECTORY; else - userPath = homePath / dirName; + userPath = homePath / ("." USER_DIRECTORY); } #else static_assert(false, "GetUserPath() not implemented for this platform.");