about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/emulators/ryujinx/appdir.patch
blob: 696077d29deaf65a627b1e2d4d902c954e122e35 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff --git a/Ryujinx.Common/ReleaseInformations.cs b/Ryujinx.Common/ReleaseInformations.cs
index 35890406..cca77163 100644
--- a/Ryujinx.Common/ReleaseInformations.cs
+++ b/Ryujinx.Common/ReleaseInformations.cs
@@ -42,12 +42,14 @@ namespace Ryujinx.Common

         public static string GetBaseApplicationDirectory()
         {
-            if (IsFlatHubBuild())
-            {
+            //if (IsFlatHubBuild())
+            //{
+                // This needs to be a mutable path, while CurrentDomain.BaseDirectory refers to the nix store.
+                // AppDataManager.BaseDirPath refers to ".config/Ryujinx" on Linux.
                 return AppDataManager.BaseDirPath;
-            }
+            //}
 
-            return AppDomain.CurrentDomain.BaseDirectory;
+            //return AppDomain.CurrentDomain.BaseDirectory;
         }
     }
 }