diff options
Diffstat (limited to 'Ryujinx.Common/Configuration/ConfigurationState.cs')
-rw-r--r-- | Ryujinx.Common/Configuration/ConfigurationState.cs | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/Ryujinx.Common/Configuration/ConfigurationState.cs b/Ryujinx.Common/Configuration/ConfigurationState.cs index d0a00cb5..26bbabc7 100644 --- a/Ryujinx.Common/Configuration/ConfigurationState.cs +++ b/Ryujinx.Common/Configuration/ConfigurationState.cs @@ -1,4 +1,4 @@ -using Ryujinx.Common; +using Ryujinx.Common; using Ryujinx.Common.Configuration.Hid; using Ryujinx.Common.Logging; using Ryujinx.Configuration.Hid; @@ -173,6 +173,11 @@ namespace Ryujinx.Configuration public ReactiveObject<bool> EnableMulticoreScheduling { get; private set; } /// <summary> + /// Enables or disables profiled translation cache persistency + /// </summary> + public ReactiveObject<bool> EnablePtc { get; private set; } + + /// <summary> /// Enables integrity checks on Game content files /// </summary> public ReactiveObject<bool> EnableFsIntegrityChecks { get; private set; } @@ -195,6 +200,7 @@ namespace Ryujinx.Configuration SystemTimeOffset = new ReactiveObject<long>(); EnableDockedMode = new ReactiveObject<bool>(); EnableMulticoreScheduling = new ReactiveObject<bool>(); + EnablePtc = new ReactiveObject<bool>(); EnableFsIntegrityChecks = new ReactiveObject<bool>(); FsGlobalAccessLogMode = new ReactiveObject<int>(); IgnoreMissingServices = new ReactiveObject<bool>(); @@ -337,6 +343,7 @@ namespace Ryujinx.Configuration EnableDiscordIntegration = EnableDiscordIntegration, EnableVsync = Graphics.EnableVsync, EnableMulticoreScheduling = System.EnableMulticoreScheduling, + EnablePtc = System.EnablePtc, EnableFsIntegrityChecks = System.EnableFsIntegrityChecks, FsGlobalAccessLogMode = System.FsGlobalAccessLogMode, IgnoreMissingServices = System.IgnoreMissingServices, @@ -385,6 +392,7 @@ namespace Ryujinx.Configuration EnableDiscordIntegration.Value = true; Graphics.EnableVsync.Value = true; System.EnableMulticoreScheduling.Value = true; + System.EnablePtc.Value = false; System.EnableFsIntegrityChecks.Value = true; System.FsGlobalAccessLogMode.Value = 0; System.IgnoreMissingServices.Value = false; @@ -570,6 +578,15 @@ namespace Ryujinx.Configuration } } + if (configurationFileFormat.Version < 8) + { + Common.Logging.Logger.PrintWarning(LogClass.Application, $"Outdated configuration version {configurationFileFormat.Version}, migrating to version 8."); + + configurationFileFormat.EnablePtc = false; + + configurationFileUpdated = true; + } + List<InputConfig> inputConfig = new List<InputConfig>(); foreach (ControllerConfig controllerConfig in configurationFileFormat.ControllerConfig) { @@ -600,6 +617,7 @@ namespace Ryujinx.Configuration EnableDiscordIntegration.Value = configurationFileFormat.EnableDiscordIntegration; Graphics.EnableVsync.Value = configurationFileFormat.EnableVsync; System.EnableMulticoreScheduling.Value = configurationFileFormat.EnableMulticoreScheduling; + System.EnablePtc.Value = configurationFileFormat.EnablePtc; System.EnableFsIntegrityChecks.Value = configurationFileFormat.EnableFsIntegrityChecks; System.FsGlobalAccessLogMode.Value = configurationFileFormat.FsGlobalAccessLogMode; System.IgnoreMissingServices.Value = configurationFileFormat.IgnoreMissingServices; |