aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMary <mary@mary.zone>2023-02-21 22:38:34 +0100
committerGitHub <noreply@github.com>2023-02-21 22:38:34 +0100
commit1f1e2a7f03aad988cb04045eee18a360a807d13f (patch)
tree06a47f6d7a0646655edab7c45edb8f1ce613e6f9
parente54f9dc4b42e0c4091875989df24710956bf2e10 (diff)
misc: changes base application directory behaviour (#4460)1.1.631
This allows changing base application directory behavior at build time via FORCE_EXTERNAL_BASE_DIR. This is intended to be used by nixpkgs and flathub builds. I also added the missing patch for macOS that we have on macos1 to avoid invalidating code signature.
-rw-r--r--Ryujinx.Common/ReleaseInformation.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/Ryujinx.Common/ReleaseInformation.cs b/Ryujinx.Common/ReleaseInformation.cs
index d0e01328..601c05b1 100644
--- a/Ryujinx.Common/ReleaseInformation.cs
+++ b/Ryujinx.Common/ReleaseInformation.cs
@@ -40,14 +40,21 @@ namespace Ryujinx.Common
}
}
+#if FORCE_EXTERNAL_BASE_DIR
public static string GetBaseApplicationDirectory()
{
- if (IsFlatHubBuild())
+ return AppDataManager.BaseDirPath;
+ }
+#else
+ public static string GetBaseApplicationDirectory()
+ {
+ if (IsFlatHubBuild() || OperatingSystem.IsMacOS())
{
return AppDataManager.BaseDirPath;
}
return AppDomain.CurrentDomain.BaseDirectory;
}
+#endif
}
} \ No newline at end of file