diff --git a/README.md b/README.md index abf1a3d..eb329ee 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,17 @@ +> [!WARNING] +> This repository is a fork of the Unleashed Recompiled project, specifically designed to support binary Arch Linux packaging through the AUR and the PKGBUILD system. For Windows builds, please refer to the upstream repository. +> **Do not attempt to compile the content of this repository with Windows targets**. +> Please be also aware this package, unlike the Flatpak version provided upstream, may not be compatible with the Hedgemod Manager differently from the Flatpak version provided upstream. + +Binaries from this repository are built using: + +``` +$ cmake -DCMAKE_AR=/usr/bin/llvm-ar -DCMAKE_RANLIB=/usr/bin/llvm-ranlib . --preset linux-release +$ cmake --build ./out/build/linux-release --target UnleashedRecomp +``` + +--- +

diff --git a/UnleashedRecomp/user/paths.h b/UnleashedRecomp/user/paths.h index 403aca9..d52443e 100644 --- a/UnleashedRecomp/user/paths.h +++ b/UnleashedRecomp/user/paths.h @@ -14,7 +14,12 @@ inline std::filesystem::path GetGamePath() return "/var/data"; else #endif - return "."; + const char* homeDir = getenv("HOME"); + if (homeDir == nullptr) + return g_executableRoot; + std::filesystem::path homePath = homeDir; + std::filesystem::path gamePath = homePath / ".local" / "share" / USER_DIRECTORY; + return gamePath; } bool CheckPortable();