|
|
@@ -626,6 +626,11 @@ namespace Ryujinx.UI.Common.Configuration
|
|
|
/// </summary>
|
|
|
public ReactiveObject<bool> ShowConfirmExit { get; private set; }
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// Enables hardware-accelerated rendering for Avalonia
|
|
|
+ /// </summary>
|
|
|
+ public ReactiveObject<bool> EnableHardwareAcceleration { get; private set; }
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// Hide Cursor on Idle
|
|
|
/// </summary>
|
|
|
@@ -642,6 +647,7 @@ namespace Ryujinx.UI.Common.Configuration
|
|
|
EnableDiscordIntegration = new ReactiveObject<bool>();
|
|
|
CheckUpdatesOnStart = new ReactiveObject<bool>();
|
|
|
ShowConfirmExit = new ReactiveObject<bool>();
|
|
|
+ EnableHardwareAcceleration = new ReactiveObject<bool>();
|
|
|
HideCursor = new ReactiveObject<HideCursorMode>();
|
|
|
}
|
|
|
|
|
|
@@ -678,6 +684,7 @@ namespace Ryujinx.UI.Common.Configuration
|
|
|
EnableDiscordIntegration = EnableDiscordIntegration,
|
|
|
CheckUpdatesOnStart = CheckUpdatesOnStart,
|
|
|
ShowConfirmExit = ShowConfirmExit,
|
|
|
+ EnableHardwareAcceleration = EnableHardwareAcceleration,
|
|
|
HideCursor = HideCursor,
|
|
|
EnableVsync = Graphics.EnableVsync,
|
|
|
EnableShaderCache = Graphics.EnableShaderCache,
|
|
|
@@ -785,6 +792,7 @@ namespace Ryujinx.UI.Common.Configuration
|
|
|
EnableDiscordIntegration.Value = true;
|
|
|
CheckUpdatesOnStart.Value = true;
|
|
|
ShowConfirmExit.Value = true;
|
|
|
+ EnableHardwareAcceleration.Value = true;
|
|
|
HideCursor.Value = HideCursorMode.OnIdle;
|
|
|
Graphics.EnableVsync.Value = true;
|
|
|
Graphics.EnableShaderCache.Value = true;
|
|
|
@@ -1442,6 +1450,15 @@ namespace Ryujinx.UI.Common.Configuration
|
|
|
configurationFileUpdated = true;
|
|
|
}
|
|
|
|
|
|
+ if (configurationFileFormat.Version < 50)
|
|
|
+ {
|
|
|
+ Ryujinx.Common.Logging.Logger.Warning?.Print(LogClass.Application, $"Outdated configuration version {configurationFileFormat.Version}, migrating to version 50.");
|
|
|
+
|
|
|
+ configurationFileFormat.EnableHardwareAcceleration = true;
|
|
|
+
|
|
|
+ configurationFileUpdated = true;
|
|
|
+ }
|
|
|
+
|
|
|
Logger.EnableFileLog.Value = configurationFileFormat.EnableFileLog;
|
|
|
Graphics.ResScale.Value = configurationFileFormat.ResScale;
|
|
|
Graphics.ResScaleCustom.Value = configurationFileFormat.ResScaleCustom;
|
|
|
@@ -1472,6 +1489,7 @@ namespace Ryujinx.UI.Common.Configuration
|
|
|
EnableDiscordIntegration.Value = configurationFileFormat.EnableDiscordIntegration;
|
|
|
CheckUpdatesOnStart.Value = configurationFileFormat.CheckUpdatesOnStart;
|
|
|
ShowConfirmExit.Value = configurationFileFormat.ShowConfirmExit;
|
|
|
+ EnableHardwareAcceleration.Value = configurationFileFormat.EnableHardwareAcceleration;
|
|
|
HideCursor.Value = configurationFileFormat.HideCursor;
|
|
|
Graphics.EnableVsync.Value = configurationFileFormat.EnableVsync;
|
|
|
Graphics.EnableShaderCache.Value = configurationFileFormat.EnableShaderCache;
|