diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-11-24 16:33:11 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-11-24 16:33:11 +0000 |
commit | faddeff65d652bda3291eba255955adb17f1aa19 (patch) | |
tree | 4352e6d85ce48c7c8d96159fad4d3dd90602a70a /games-emulation/ryujinx/files | |
parent | 0e7b1da874d923b9f006e0000023f5fa528140a8 (diff) |
gentoo auto-resync : 24:11:2023 - 16:33:11
Diffstat (limited to 'games-emulation/ryujinx/files')
3 files changed, 202 insertions, 0 deletions
diff --git a/games-emulation/ryujinx/files/ryujinx-1.1.1093-better-defaults.patch b/games-emulation/ryujinx/files/ryujinx-1.1.1093-better-defaults.patch new file mode 100644 index 000000000000..888de98917f4 --- /dev/null +++ b/games-emulation/ryujinx/files/ryujinx-1.1.1093-better-defaults.patch @@ -0,0 +1,55 @@ +From 88968ba474d993670b0b35d839ab2b7d9f575699 Mon Sep 17 00:00:00 2001 +From: Andrew Udvare <audvare@gmail.com> +Date: Tue, 22 Nov 2022 07:34:03 -0500 +Subject: [PATCH 1/3] Better first launch config defaults + +- Disable file log +- Disable info level logging +- Disable stub (compare with Wine's stub logging) logging +- Disable warning level logging +- Disable Discord integration +- Disable checking updates on startup +--- + .../Configuration/ConfigurationState.cs | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + +diff --git a/src/Ryujinx.Ui.Common/Configuration/ConfigurationState.cs b/src/Ryujinx.Ui.Common/Configuration/ConfigurationState.cs +index b017d384..39b45a04 100644 +--- a/src/Ryujinx.Ui.Common/Configuration/ConfigurationState.cs ++++ b/src/Ryujinx.Ui.Common/Configuration/ConfigurationState.cs +@@ -758,7 +758,7 @@ namespace Ryujinx.Ui.Common.Configuration + + public void LoadDefault() + { +- Logger.EnableFileLog.Value = true; ++ Logger.EnableFileLog.Value = false; + Graphics.BackendThreading.Value = BackendThreading.Auto; + Graphics.ResScale.Value = 1; + Graphics.ResScaleCustom.Value = 1.0f; +@@ -768,9 +768,9 @@ namespace Ryujinx.Ui.Common.Configuration + Graphics.PreferredGpu.Value = ""; + Graphics.ShadersDumpPath.Value = ""; + Logger.EnableDebug.Value = false; +- Logger.EnableStub.Value = true; +- Logger.EnableInfo.Value = true; +- Logger.EnableWarn.Value = true; ++ Logger.EnableStub.Value = false; ++ Logger.EnableInfo.Value = false; ++ Logger.EnableWarn.Value = false; + Logger.EnableError.Value = true; + Logger.EnableTrace.Value = false; + Logger.EnableGuest.Value = true; +@@ -782,8 +782,8 @@ namespace Ryujinx.Ui.Common.Configuration + System.TimeZone.Value = "UTC"; + System.SystemTimeOffset.Value = 0; + System.EnableDockedMode.Value = true; +- EnableDiscordIntegration.Value = true; +- CheckUpdatesOnStart.Value = true; ++ EnableDiscordIntegration.Value = false; ++ CheckUpdatesOnStart.Value = false; + ShowConfirmExit.Value = true; + HideCursor.Value = HideCursorMode.OnIdle; + Graphics.EnableVsync.Value = true; +-- +2.43.0 + diff --git a/games-emulation/ryujinx/files/ryujinx-1.1.1093-disable-updates.patch b/games-emulation/ryujinx/files/ryujinx-1.1.1093-disable-updates.patch new file mode 100644 index 000000000000..b1d458fd6e24 --- /dev/null +++ b/games-emulation/ryujinx/files/ryujinx-1.1.1093-disable-updates.patch @@ -0,0 +1,61 @@ +From 178d97ac391fa1877d56ad9fbaade1a29bbb9655 Mon Sep 17 00:00:00 2001 +From: Andrew Udvare <audvare@gmail.com> +Date: Tue, 22 Nov 2022 07:35:22 -0500 +Subject: [PATCH 2/3] Disable updates + +--- + src/Ryujinx/Modules/Updater/Updater.cs | 1 + + src/Ryujinx/Ui/MainWindow.glade | 4 ++-- + src/Ryujinx/Ui/Windows/SettingsWindow.glade | 2 +- + 3 files changed, 4 insertions(+), 3 deletions(-) + +diff --git a/src/Ryujinx/Modules/Updater/Updater.cs b/src/Ryujinx/Modules/Updater/Updater.cs +index f8ce4c0b..e1911d44 100644 +--- a/src/Ryujinx/Modules/Updater/Updater.cs ++++ b/src/Ryujinx/Modules/Updater/Updater.cs +@@ -511,6 +511,7 @@ namespace Ryujinx.Modules + + public static bool CanUpdate(bool showWarnings) + { ++ return false; + #if !DISABLE_UPDATER + if (RuntimeInformation.OSArchitecture != Architecture.X64) + { +diff --git a/src/Ryujinx/Ui/MainWindow.glade b/src/Ryujinx/Ui/MainWindow.glade +index 58d5d955..6a31ce9f 100644 +--- a/src/Ryujinx/Ui/MainWindow.glade ++++ b/src/Ryujinx/Ui/MainWindow.glade +@@ -545,7 +545,7 @@ + <property name="can-focus">False</property> + <child> + <object class="GtkMenuItem" id="UpdateMenuItem"> +- <property name="visible">True</property> ++ <property name="visible">False</property> + <property name="can-focus">False</property> + <property name="tooltip-text" translatable="yes">Check for updates to Ryujinx</property> + <property name="label" translatable="yes">Check for Updates</property> +@@ -555,7 +555,7 @@ + </child> + <child> + <object class="GtkSeparatorMenuItem"> +- <property name="visible">True</property> ++ <property name="visible">False</property> + <property name="can-focus">False</property> + </object> + </child> +diff --git a/src/Ryujinx/Ui/Windows/SettingsWindow.glade b/src/Ryujinx/Ui/Windows/SettingsWindow.glade +index f0dbd6b6..9ba7e50b 100644 +--- a/src/Ryujinx/Ui/Windows/SettingsWindow.glade ++++ b/src/Ryujinx/Ui/Windows/SettingsWindow.glade +@@ -130,7 +130,7 @@ + <child> + <object class="GtkCheckButton" id="_checkUpdatesToggle"> + <property name="label" translatable="yes">Check for Updates on Launch</property> +- <property name="visible">True</property> ++ <property name="visible">False</property> + <property name="can-focus">True</property> + <property name="receives-default">False</property> + <property name="halign">start</property> +-- +2.43.0 + diff --git a/games-emulation/ryujinx/files/ryujinx-1.1.1093-logs-path.patch b/games-emulation/ryujinx/files/ryujinx-1.1.1093-logs-path.patch new file mode 100644 index 000000000000..79b675ddd38e --- /dev/null +++ b/games-emulation/ryujinx/files/ryujinx-1.1.1093-logs-path.patch @@ -0,0 +1,86 @@ +From 78e443211b8dab8c0cf62ba5aada309ad47b9de9 Mon Sep 17 00:00:00 2001 +From: Andrew Udvare <audvare@gmail.com> +Date: Tue, 22 Nov 2022 07:52:55 -0500 +Subject: [PATCH 3/3] Use ConfigurationPath for log base path + +--- + src/Ryujinx.Ava/Program.cs | 2 +- + src/Ryujinx.Ui.Common/Configuration/LoggerModule.cs | 7 +++++-- + src/Ryujinx/Program.cs | 2 +- + src/Ryujinx/Ui/MainWindow.cs | 2 +- + 4 files changed, 8 insertions(+), 5 deletions(-) + +diff --git a/src/Ryujinx.Ava/Program.cs b/src/Ryujinx.Ava/Program.cs +index cc062a25..e75b0324 100644 +--- a/src/Ryujinx.Ava/Program.cs ++++ b/src/Ryujinx.Ava/Program.cs +@@ -90,7 +90,7 @@ namespace Ryujinx.Ava + ConfigurationState.Initialize(); + + // Initialize the logger system. +- LoggerModule.Initialize(); ++ LoggerModule.Initialize(AppDataManager.BaseDirPath); + + // Initialize Discord integration. + DiscordIntegrationModule.Initialize(); +diff --git a/src/Ryujinx.Ui.Common/Configuration/LoggerModule.cs b/src/Ryujinx.Ui.Common/Configuration/LoggerModule.cs +index e18b2bfa..4f2d00f7 100644 +--- a/src/Ryujinx.Ui.Common/Configuration/LoggerModule.cs ++++ b/src/Ryujinx.Ui.Common/Configuration/LoggerModule.cs +@@ -7,7 +7,9 @@ namespace Ryujinx.Ui.Common.Configuration + { + public static class LoggerModule + { +- public static void Initialize() ++ private static string LogPath; ++ ++ public static void Initialize(string LogPathIn) + { + ConfigurationState.Instance.Logger.EnableDebug.Event += ReloadEnableDebug; + ConfigurationState.Instance.Logger.EnableStub.Event += ReloadEnableStub; +@@ -19,6 +21,7 @@ namespace Ryujinx.Ui.Common.Configuration + ConfigurationState.Instance.Logger.EnableFsAccessLog.Event += ReloadEnableFsAccessLog; + ConfigurationState.Instance.Logger.FilteredClasses.Event += ReloadFilteredClasses; + ConfigurationState.Instance.Logger.EnableFileLog.Event += ReloadFileLogger; ++ LogPath = LogPathIn; + } + + private static void ReloadEnableDebug(object sender, ReactiveEventArgs<bool> e) +@@ -81,7 +84,7 @@ namespace Ryujinx.Ui.Common.Configuration + if (e.NewValue) + { + Logger.AddTarget(new AsyncLogTargetWrapper( +- new FileLogTarget(ReleaseInformation.GetBaseApplicationDirectory(), "file"), ++ new FileLogTarget(LogPath, "file"), + 1000, + AsyncLogTargetOverflowAction.Block + )); +diff --git a/src/Ryujinx/Program.cs b/src/Ryujinx/Program.cs +index 597d00f3..07cedb93 100644 +--- a/src/Ryujinx/Program.cs ++++ b/src/Ryujinx/Program.cs +@@ -147,7 +147,7 @@ namespace Ryujinx + ConfigurationState.Initialize(); + + // Initialize the logger system. +- LoggerModule.Initialize(); ++ LoggerModule.Initialize(AppDataManager.BaseDirPath); + + // Initialize Discord integration. + DiscordIntegrationModule.Initialize(); +diff --git a/src/Ryujinx/Ui/MainWindow.cs b/src/Ryujinx/Ui/MainWindow.cs +index 8b0b35e6..eaee6f66 100644 +--- a/src/Ryujinx/Ui/MainWindow.cs ++++ b/src/Ryujinx/Ui/MainWindow.cs +@@ -1379,7 +1379,7 @@ namespace Ryujinx.Ui + + private void OpenLogsFolder_Pressed(object sender, EventArgs args) + { +- string logPath = System.IO.Path.Combine(ReleaseInformation.GetBaseApplicationDirectory(), "Logs"); ++ string logPath = System.IO.Path.Combine(AppDataManager.BaseDirPath, "Logs"); + + new DirectoryInfo(logPath).Create(); + +-- +2.43.0 + |