We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73946b4 commit 9caf8fdCopy full SHA for 9caf8fd
MarathonRecomp/user/paths.h
@@ -27,6 +27,10 @@ inline std::filesystem::path GetGamePath()
27
// https://specifications.freedesktop.org/basedir/latest/
28
// basically, user-specific files should be installed to a user-set variable of $XDG_DATA_HOME
29
// If $XDG_DATA_HOME is either not set or empty, a default of $HOME/.local/share should be used.
30
+ if (CheckPortable())
31
+ {
32
+ return GAME_INSTALL_DIRECTORY;
33
+ }
34
const char* homeDir = getenv("HOME");
35
if (homeDir == nullptr)
36
{
0 commit comments