From 2640f083b6d7bd40c80f81e5fc4660b6748103d2 Mon Sep 17 00:00:00 2001 From: Vova Date: Thu, 6 Feb 2025 20:12:56 +1000 Subject: [PATCH] Added custom setting function for each game --- .github/workflows/release.yml | 6 +- .../Services/SurfaceFlinger/SurfaceFlinger.cs | 1 + src/Ryujinx/AppHost.cs | 4 + src/Ryujinx/Assets/Styles/Styles.xaml | 23 +- src/Ryujinx/Assets/Styles/Themes.xaml | 8 +- src/Ryujinx/Assets/locales.json | 25 +++ src/Ryujinx/Program.cs | 62 +++++- src/Ryujinx/Ryujinx.csproj | 7 +- .../UI/Controls/ApplicationContextMenu.axaml | 5 + .../Controls/ApplicationContextMenu.axaml.cs | 34 ++- .../UI/Controls/ApplicationGridView.axaml | 38 +++- .../UI/Controls/ApplicationListView.axaml | 7 + .../UI/Controls/ApplicationListView.axaml.cs | 14 ++ .../UI/ViewModels/MainWindowViewModel.cs | 11 +- .../UI/ViewModels/SettingsViewModel.cs | 199 +++++++++++++++--- .../UI/Windows/UserConfigWindows.axaml | 139 ++++++++++++ .../UI/Windows/UserConfigWindows.axaml.cs | 108 ++++++++++ .../Utilities/AppLibrary/ApplicationData.cs | 1 + .../AppLibrary/ApplicationLibrary.cs | 5 +- src/Ryujinx/Utilities/CommandLineState.cs | 57 ++++- .../ConfigurationState.Migration.cs | 99 +++++---- src/Ryujinx/Utilities/ShortcutHelper.cs | 27 ++- 22 files changed, 776 insertions(+), 104 deletions(-) create mode 100644 src/Ryujinx/UI/Windows/UserConfigWindows.axaml create mode 100644 src/Ryujinx/UI/Windows/UserConfigWindows.axaml.cs diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 072c6bf2f..bd302e661 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,9 +10,9 @@ env: POWERSHELL_TELEMETRY_OPTOUT: 1 DOTNET_CLI_TELEMETRY_OPTOUT: 1 RYUJINX_BASE_VERSION: "1.2" - RYUJINX_TARGET_RELEASE_CHANNEL_NAME: "release" - RYUJINX_TARGET_RELEASE_CHANNEL_OWNER: "Ryubing" - RYUJINX_TARGET_RELEASE_CHANNEL_REPO: "Ryujinx" + RYUJINX_TARGET_RELEASE_CHANNEL_NAME: "master" + RYUJINX_TARGET_RELEASE_CHANNEL_OWNER: "Goodfeat" + RYUJINX_TARGET_RELEASE_CHANNEL_REPO: "Ryujinx_alt" RELEASE: 1 jobs: diff --git a/src/Ryujinx.HLE/HOS/Services/SurfaceFlinger/SurfaceFlinger.cs b/src/Ryujinx.HLE/HOS/Services/SurfaceFlinger/SurfaceFlinger.cs index 935e9895e..23bf8bcfc 100644 --- a/src/Ryujinx.HLE/HOS/Services/SurfaceFlinger/SurfaceFlinger.cs +++ b/src/Ryujinx.HLE/HOS/Services/SurfaceFlinger/SurfaceFlinger.cs @@ -10,6 +10,7 @@ using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading; +using VSyncMode = Ryujinx.Common.Configuration.VSyncMode; namespace Ryujinx.HLE.HOS.Services.SurfaceFlinger { diff --git a/src/Ryujinx/AppHost.cs b/src/Ryujinx/AppHost.cs index 25f451858..d49456b9a 100644 --- a/src/Ryujinx/AppHost.cs +++ b/src/Ryujinx/AppHost.cs @@ -582,6 +582,10 @@ namespace Ryujinx.Ava Rainbow.Disable(); Rainbow.Reset(); + //Reload settings when the game is turned off + //(resets custom settings if there were any) + Program.ReloadConfig(); + _isStopped = true; Stop(); } diff --git a/src/Ryujinx/Assets/Styles/Styles.xaml b/src/Ryujinx/Assets/Styles/Styles.xaml index 5523f551a..c3bc27efd 100644 --- a/src/Ryujinx/Assets/Styles/Styles.xaml +++ b/src/Ryujinx/Assets/Styles/Styles.xaml @@ -1,7 +1,8 @@ - -