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.");