From e71a8bc13a7f39f35c277cb5f53bf2fd51da616a Mon Sep 17 00:00:00 2001 From: Jujstme Date: Mon, 10 Mar 2025 20:01:49 +0100 Subject: [PATCH] Revert "Merge branch 'main' into workingdir" This reverts commit 44effe4f64a0a6ed013e25b0d0a7eb0b2eca1ff8, reversing changes made to d7d7c208cb0c2c8950db62acc266f8e4b2158cf9. --- README.md | 14 -------------- UnleashedRecomp/user/paths.h | 7 +------ 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/README.md b/README.md index eb329ee..abf1a3d 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,3 @@ -> [!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 d52443e..403aca9 100644 --- a/UnleashedRecomp/user/paths.h +++ b/UnleashedRecomp/user/paths.h @@ -14,12 +14,7 @@ inline std::filesystem::path GetGamePath() return "/var/data"; else #endif - 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; + return "."; } bool CheckPortable();