summary refs log tree commit diff
path: root/pkgs/applications/emulators/ryujinx/log.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/emulators/ryujinx/log.patch')
-rw-r--r--pkgs/applications/emulators/ryujinx/log.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/applications/emulators/ryujinx/log.patch b/pkgs/applications/emulators/ryujinx/log.patch
new file mode 100644
index 00000000000..57e96e5c25c
--- /dev/null
+++ b/pkgs/applications/emulators/ryujinx/log.patch
@@ -0,0 +1,21 @@
+diff --git a/Ryujinx/Configuration/LoggerModule.cs b/Ryujinx/Configuration/LoggerModule.cs
+index 44631ea0..534576bc 100644
+--- a/Ryujinx/Configuration/LoggerModule.cs
++++ b/Ryujinx/Configuration/LoggerModule.cs
+@@ -1,6 +1,7 @@
+ using Ryujinx.Common;
+ using Ryujinx.Common.Logging;
+ using System;
++using System.IO;
+
+ namespace Ryujinx.Configuration
+ {
+@@ -74,7 +75,7 @@ namespace Ryujinx.Configuration
+             if (e.NewValue)
+             {
+                 Logger.AddTarget(new AsyncLogTargetWrapper(
+-                    new FileLogTarget(AppDomain.CurrentDomain.BaseDirectory, "file"),
++                    new FileLogTarget(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Ryujinx"), "file"),
+                     1000,
+                     AsyncLogTargetOverflowAction.Block
+                 ));