|
@@ -205,6 +205,11 @@ namespace Ryujinx.Configuration
|
|
|
/// </summary>
|
|
/// </summary>
|
|
|
public ReactiveObject<int> FsGlobalAccessLogMode { get; private set; }
|
|
public ReactiveObject<int> FsGlobalAccessLogMode { get; private set; }
|
|
|
|
|
|
|
|
|
|
+ /// <summary>
|
|
|
|
|
+ /// The selected audio backend
|
|
|
|
|
+ /// </summary>
|
|
|
|
|
+ public ReactiveObject<AudioBackend> AudioBackend { get; private set; }
|
|
|
|
|
+
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// Enable or disable ignoring missing services
|
|
/// Enable or disable ignoring missing services
|
|
|
/// </summary>
|
|
/// </summary>
|
|
@@ -221,6 +226,7 @@ namespace Ryujinx.Configuration
|
|
|
EnablePtc = new ReactiveObject<bool>();
|
|
EnablePtc = new ReactiveObject<bool>();
|
|
|
EnableFsIntegrityChecks = new ReactiveObject<bool>();
|
|
EnableFsIntegrityChecks = new ReactiveObject<bool>();
|
|
|
FsGlobalAccessLogMode = new ReactiveObject<int>();
|
|
FsGlobalAccessLogMode = new ReactiveObject<int>();
|
|
|
|
|
+ AudioBackend = new ReactiveObject<AudioBackend>();
|
|
|
IgnoreMissingServices = new ReactiveObject<bool>();
|
|
IgnoreMissingServices = new ReactiveObject<bool>();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -370,6 +376,7 @@ namespace Ryujinx.Configuration
|
|
|
EnablePtc = System.EnablePtc,
|
|
EnablePtc = System.EnablePtc,
|
|
|
EnableFsIntegrityChecks = System.EnableFsIntegrityChecks,
|
|
EnableFsIntegrityChecks = System.EnableFsIntegrityChecks,
|
|
|
FsGlobalAccessLogMode = System.FsGlobalAccessLogMode,
|
|
FsGlobalAccessLogMode = System.FsGlobalAccessLogMode,
|
|
|
|
|
+ AudioBackend = System.AudioBackend,
|
|
|
IgnoreMissingServices = System.IgnoreMissingServices,
|
|
IgnoreMissingServices = System.IgnoreMissingServices,
|
|
|
GuiColumns = new GuiColumns
|
|
GuiColumns = new GuiColumns
|
|
|
{
|
|
{
|
|
@@ -425,6 +432,7 @@ namespace Ryujinx.Configuration
|
|
|
System.EnablePtc.Value = false;
|
|
System.EnablePtc.Value = false;
|
|
|
System.EnableFsIntegrityChecks.Value = true;
|
|
System.EnableFsIntegrityChecks.Value = true;
|
|
|
System.FsGlobalAccessLogMode.Value = 0;
|
|
System.FsGlobalAccessLogMode.Value = 0;
|
|
|
|
|
+ System.AudioBackend.Value = AudioBackend.OpenAl;
|
|
|
System.IgnoreMissingServices.Value = false;
|
|
System.IgnoreMissingServices.Value = false;
|
|
|
Ui.GuiColumns.FavColumn.Value = true;
|
|
Ui.GuiColumns.FavColumn.Value = true;
|
|
|
Ui.GuiColumns.IconColumn.Value = true;
|
|
Ui.GuiColumns.IconColumn.Value = true;
|
|
@@ -547,7 +555,8 @@ namespace Ryujinx.Configuration
|
|
|
Common.Logging.Logger.PrintWarning(LogClass.Application, $"Outdated configuration version {configurationFileFormat.Version}, migrating to version 6.");
|
|
Common.Logging.Logger.PrintWarning(LogClass.Application, $"Outdated configuration version {configurationFileFormat.Version}, migrating to version 6.");
|
|
|
|
|
|
|
|
configurationFileFormat.ControllerConfig = new List<ControllerConfig>();
|
|
configurationFileFormat.ControllerConfig = new List<ControllerConfig>();
|
|
|
- configurationFileFormat.KeyboardConfig = new List<KeyboardConfig>{
|
|
|
|
|
|
|
+ configurationFileFormat.KeyboardConfig = new List<KeyboardConfig>
|
|
|
|
|
+ {
|
|
|
new KeyboardConfig
|
|
new KeyboardConfig
|
|
|
{
|
|
{
|
|
|
Index = 0,
|
|
Index = 0,
|
|
@@ -634,16 +643,19 @@ namespace Ryujinx.Configuration
|
|
|
configurationFileUpdated = true;
|
|
configurationFileUpdated = true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- List<InputConfig> inputConfig = new List<InputConfig>();
|
|
|
|
|
- foreach (ControllerConfig controllerConfig in configurationFileFormat.ControllerConfig)
|
|
|
|
|
- {
|
|
|
|
|
- inputConfig.Add(controllerConfig);
|
|
|
|
|
- }
|
|
|
|
|
- foreach (KeyboardConfig keyboardConfig in configurationFileFormat.KeyboardConfig)
|
|
|
|
|
|
|
+ if (configurationFileFormat.Version < 10)
|
|
|
{
|
|
{
|
|
|
- inputConfig.Add(keyboardConfig);
|
|
|
|
|
|
|
+ Common.Logging.Logger.PrintWarning(LogClass.Application, $"Outdated configuration version {configurationFileFormat.Version}, migrating to version 10.");
|
|
|
|
|
+
|
|
|
|
|
+ configurationFileFormat.AudioBackend = AudioBackend.OpenAl;
|
|
|
|
|
+
|
|
|
|
|
+ configurationFileUpdated = true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ List<InputConfig> inputConfig = new List<InputConfig>();
|
|
|
|
|
+ inputConfig.AddRange(configurationFileFormat.ControllerConfig);
|
|
|
|
|
+ inputConfig.AddRange(configurationFileFormat.KeyboardConfig);
|
|
|
|
|
+
|
|
|
Graphics.MaxAnisotropy.Value = configurationFileFormat.MaxAnisotropy;
|
|
Graphics.MaxAnisotropy.Value = configurationFileFormat.MaxAnisotropy;
|
|
|
Graphics.ShadersDumpPath.Value = configurationFileFormat.GraphicsShadersDumpPath;
|
|
Graphics.ShadersDumpPath.Value = configurationFileFormat.GraphicsShadersDumpPath;
|
|
|
Logger.EnableDebug.Value = configurationFileFormat.LoggingEnableDebug;
|
|
Logger.EnableDebug.Value = configurationFileFormat.LoggingEnableDebug;
|
|
@@ -660,13 +672,13 @@ namespace Ryujinx.Configuration
|
|
|
System.TimeZone.Value = configurationFileFormat.SystemTimeZone;
|
|
System.TimeZone.Value = configurationFileFormat.SystemTimeZone;
|
|
|
System.SystemTimeOffset.Value = configurationFileFormat.SystemTimeOffset;
|
|
System.SystemTimeOffset.Value = configurationFileFormat.SystemTimeOffset;
|
|
|
System.EnableDockedMode.Value = configurationFileFormat.DockedMode;
|
|
System.EnableDockedMode.Value = configurationFileFormat.DockedMode;
|
|
|
- System.EnableDockedMode.Value = configurationFileFormat.DockedMode;
|
|
|
|
|
EnableDiscordIntegration.Value = configurationFileFormat.EnableDiscordIntegration;
|
|
EnableDiscordIntegration.Value = configurationFileFormat.EnableDiscordIntegration;
|
|
|
Graphics.EnableVsync.Value = configurationFileFormat.EnableVsync;
|
|
Graphics.EnableVsync.Value = configurationFileFormat.EnableVsync;
|
|
|
System.EnableMulticoreScheduling.Value = configurationFileFormat.EnableMulticoreScheduling;
|
|
System.EnableMulticoreScheduling.Value = configurationFileFormat.EnableMulticoreScheduling;
|
|
|
System.EnablePtc.Value = configurationFileFormat.EnablePtc;
|
|
System.EnablePtc.Value = configurationFileFormat.EnablePtc;
|
|
|
System.EnableFsIntegrityChecks.Value = configurationFileFormat.EnableFsIntegrityChecks;
|
|
System.EnableFsIntegrityChecks.Value = configurationFileFormat.EnableFsIntegrityChecks;
|
|
|
System.FsGlobalAccessLogMode.Value = configurationFileFormat.FsGlobalAccessLogMode;
|
|
System.FsGlobalAccessLogMode.Value = configurationFileFormat.FsGlobalAccessLogMode;
|
|
|
|
|
+ System.AudioBackend.Value = configurationFileFormat.AudioBackend;
|
|
|
System.IgnoreMissingServices.Value = configurationFileFormat.IgnoreMissingServices;
|
|
System.IgnoreMissingServices.Value = configurationFileFormat.IgnoreMissingServices;
|
|
|
Ui.GuiColumns.FavColumn.Value = configurationFileFormat.GuiColumns.FavColumn;
|
|
Ui.GuiColumns.FavColumn.Value = configurationFileFormat.GuiColumns.FavColumn;
|
|
|
Ui.GuiColumns.IconColumn.Value = configurationFileFormat.GuiColumns.IconColumn;
|
|
Ui.GuiColumns.IconColumn.Value = configurationFileFormat.GuiColumns.IconColumn;
|