Skip to content

Commit 44effe4

Browse files
authored
Merge branch 'main' into workingdir
2 parents d7d7c20 + a60a7ce commit 44effe4

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
> [!WARNING]
2+
> 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.
3+
> **Do not attempt to compile the content of this repository with Windows targets**.
4+
> 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.
5+
6+
Binaries from this repository are built using:
7+
8+
```
9+
$ cmake -DCMAKE_AR=/usr/bin/llvm-ar -DCMAKE_RANLIB=/usr/bin/llvm-ranlib . --preset linux-release
10+
$ cmake --build ./out/build/linux-release --target UnleashedRecomp
11+
```
12+
13+
---
14+
115
<p align="center">
216
<img src="https://raw.githubusercontent.com/hedge-dev/UnleashedRecompResources/refs/heads/main/images/logo/Logo.png" width="512"/>
317
</p>

UnleashedRecomp/user/paths.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ inline std::filesystem::path GetGamePath()
1414
return "/var/data";
1515
else
1616
#endif
17-
return ".";
17+
const char* homeDir = getenv("HOME");
18+
if (homeDir == nullptr)
19+
return g_executableRoot;
20+
std::filesystem::path homePath = homeDir;
21+
std::filesystem::path gamePath = homePath / ".local" / "share" / USER_DIRECTORY;
22+
return gamePath;
1823
}
1924

2025
bool CheckPortable();

0 commit comments

Comments
 (0)