aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Ui.Common/Configuration/ConfigurationState.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.Ui.Common/Configuration/ConfigurationState.cs')
-rw-r--r--src/Ryujinx.Ui.Common/Configuration/ConfigurationState.cs968
1 files changed, 481 insertions, 487 deletions
diff --git a/src/Ryujinx.Ui.Common/Configuration/ConfigurationState.cs b/src/Ryujinx.Ui.Common/Configuration/ConfigurationState.cs
index 146a9b50..7ab20e32 100644
--- a/src/Ryujinx.Ui.Common/Configuration/ConfigurationState.cs
+++ b/src/Ryujinx.Ui.Common/Configuration/ConfigurationState.cs
@@ -22,40 +22,40 @@ namespace Ryujinx.Ui.Common.Configuration
{
public class Columns
{
- public ReactiveObject<bool> FavColumn { get; private set; }
- public ReactiveObject<bool> IconColumn { get; private set; }
- public ReactiveObject<bool> AppColumn { get; private set; }
- public ReactiveObject<bool> DevColumn { get; private set; }
- public ReactiveObject<bool> VersionColumn { get; private set; }
+ public ReactiveObject<bool> FavColumn { get; private set; }
+ public ReactiveObject<bool> IconColumn { get; private set; }
+ public ReactiveObject<bool> AppColumn { get; private set; }
+ public ReactiveObject<bool> DevColumn { get; private set; }
+ public ReactiveObject<bool> VersionColumn { get; private set; }
public ReactiveObject<bool> TimePlayedColumn { get; private set; }
public ReactiveObject<bool> LastPlayedColumn { get; private set; }
- public ReactiveObject<bool> FileExtColumn { get; private set; }
- public ReactiveObject<bool> FileSizeColumn { get; private set; }
- public ReactiveObject<bool> PathColumn { get; private set; }
+ public ReactiveObject<bool> FileExtColumn { get; private set; }
+ public ReactiveObject<bool> FileSizeColumn { get; private set; }
+ public ReactiveObject<bool> PathColumn { get; private set; }
public Columns()
{
- FavColumn = new ReactiveObject<bool>();
- IconColumn = new ReactiveObject<bool>();
- AppColumn = new ReactiveObject<bool>();
- DevColumn = new ReactiveObject<bool>();
- VersionColumn = new ReactiveObject<bool>();
+ FavColumn = new ReactiveObject<bool>();
+ IconColumn = new ReactiveObject<bool>();
+ AppColumn = new ReactiveObject<bool>();
+ DevColumn = new ReactiveObject<bool>();
+ VersionColumn = new ReactiveObject<bool>();
TimePlayedColumn = new ReactiveObject<bool>();
LastPlayedColumn = new ReactiveObject<bool>();
- FileExtColumn = new ReactiveObject<bool>();
- FileSizeColumn = new ReactiveObject<bool>();
- PathColumn = new ReactiveObject<bool>();
+ FileExtColumn = new ReactiveObject<bool>();
+ FileSizeColumn = new ReactiveObject<bool>();
+ PathColumn = new ReactiveObject<bool>();
}
}
public class ColumnSortSettings
{
- public ReactiveObject<int> SortColumnId { get; private set; }
+ public ReactiveObject<int> SortColumnId { get; private set; }
public ReactiveObject<bool> SortAscending { get; private set; }
public ColumnSortSettings()
{
- SortColumnId = new ReactiveObject<int>();
+ SortColumnId = new ReactiveObject<int>();
SortAscending = new ReactiveObject<bool>();
}
}
@@ -74,12 +74,12 @@ namespace Ryujinx.Ui.Common.Configuration
public ShownFileTypeSettings()
{
- NSP = new ReactiveObject<bool>();
+ NSP = new ReactiveObject<bool>();
PFS0 = new ReactiveObject<bool>();
- XCI = new ReactiveObject<bool>();
- NCA = new ReactiveObject<bool>();
- NRO = new ReactiveObject<bool>();
- NSO = new ReactiveObject<bool>();
+ XCI = new ReactiveObject<bool>();
+ NCA = new ReactiveObject<bool>();
+ NRO = new ReactiveObject<bool>();
+ NSO = new ReactiveObject<bool>();
}
}
@@ -186,22 +186,22 @@ namespace Ryujinx.Ui.Common.Configuration
public UiSection()
{
- GuiColumns = new Columns();
- ColumnSort = new ColumnSortSettings();
- GameDirs = new ReactiveObject<List<string>>();
- ShownFileTypes = new ShownFileTypeSettings();
- WindowStartup = new WindowStartupSettings();
+ GuiColumns = new Columns();
+ ColumnSort = new ColumnSortSettings();
+ GameDirs = new ReactiveObject<List<string>>();
+ ShownFileTypes = new ShownFileTypeSettings();
+ WindowStartup = new WindowStartupSettings();
EnableCustomTheme = new ReactiveObject<bool>();
- CustomThemePath = new ReactiveObject<string>();
- BaseStyle = new ReactiveObject<string>();
- StartFullscreen = new ReactiveObject<bool>();
- GameListViewMode = new ReactiveObject<int>();
- ShowNames = new ReactiveObject<bool>();
- GridSize = new ReactiveObject<int>();
- ApplicationSort = new ReactiveObject<int>();
- IsAscendingOrder = new ReactiveObject<bool>();
- LanguageCode = new ReactiveObject<string>();
- ShowConsole = new ReactiveObject<bool>();
+ CustomThemePath = new ReactiveObject<string>();
+ BaseStyle = new ReactiveObject<string>();
+ StartFullscreen = new ReactiveObject<bool>();
+ GameListViewMode = new ReactiveObject<int>();
+ ShowNames = new ReactiveObject<bool>();
+ GridSize = new ReactiveObject<int>();
+ ApplicationSort = new ReactiveObject<int>();
+ IsAscendingOrder = new ReactiveObject<bool>();
+ LanguageCode = new ReactiveObject<string>();
+ ShowConsole = new ReactiveObject<bool>();
ShowConsole.Event += static (s, e) => { ConsoleHelper.SetConsoleWindowState(e.NewValue); };
}
}
@@ -268,18 +268,18 @@ namespace Ryujinx.Ui.Common.Configuration
public LoggerSection()
{
- EnableDebug = new ReactiveObject<bool>();
- EnableStub = new ReactiveObject<bool>();
- EnableInfo = new ReactiveObject<bool>();
- EnableWarn = new ReactiveObject<bool>();
- EnableError = new ReactiveObject<bool>();
- EnableTrace = new ReactiveObject<bool>();
- EnableGuest = new ReactiveObject<bool>();
- EnableFsAccessLog = new ReactiveObject<bool>();
- FilteredClasses = new ReactiveObject<LogClass[]>();
- EnableFileLog = new ReactiveObject<bool>();
- EnableFileLog.Event += static (sender, e) => LogValueChange(sender, e, nameof(EnableFileLog));
- GraphicsDebugLevel = new ReactiveObject<GraphicsDebugLevel>();
+ EnableDebug = new ReactiveObject<bool>();
+ EnableStub = new ReactiveObject<bool>();
+ EnableInfo = new ReactiveObject<bool>();
+ EnableWarn = new ReactiveObject<bool>();
+ EnableError = new ReactiveObject<bool>();
+ EnableTrace = new ReactiveObject<bool>();
+ EnableGuest = new ReactiveObject<bool>();
+ EnableFsAccessLog = new ReactiveObject<bool>();
+ FilteredClasses = new ReactiveObject<LogClass[]>();
+ EnableFileLog = new ReactiveObject<bool>();
+ EnableFileLog.Event += static (sender, e) => LogValueChange(e, nameof(EnableFileLog));
+ GraphicsDebugLevel = new ReactiveObject<GraphicsDebugLevel>();
}
}
@@ -365,32 +365,32 @@ namespace Ryujinx.Ui.Common.Configuration
public SystemSection()
{
- Language = new ReactiveObject<Language>();
- Region = new ReactiveObject<Region>();
- TimeZone = new ReactiveObject<string>();
- SystemTimeOffset = new ReactiveObject<long>();
- EnableDockedMode = new ReactiveObject<bool>();
- EnableDockedMode.Event += static (sender, e) => LogValueChange(sender, e, nameof(EnableDockedMode));
- EnablePtc = new ReactiveObject<bool>();
- EnablePtc.Event += static (sender, e) => LogValueChange(sender, e, nameof(EnablePtc));
- EnableInternetAccess = new ReactiveObject<bool>();
- EnableInternetAccess.Event += static (sender, e) => LogValueChange(sender, e, nameof(EnableInternetAccess));
- EnableFsIntegrityChecks = new ReactiveObject<bool>();
- EnableFsIntegrityChecks.Event += static (sender, e) => LogValueChange(sender, e, nameof(EnableFsIntegrityChecks));
- FsGlobalAccessLogMode = new ReactiveObject<int>();
- FsGlobalAccessLogMode.Event += static (sender, e) => LogValueChange(sender, e, nameof(FsGlobalAccessLogMode));
- AudioBackend = new ReactiveObject<AudioBackend>();
- AudioBackend.Event += static (sender, e) => LogValueChange(sender, e, nameof(AudioBackend));
- MemoryManagerMode = new ReactiveObject<MemoryManagerMode>();
- MemoryManagerMode.Event += static (sender, e) => LogValueChange(sender, e, nameof(MemoryManagerMode));
- ExpandRam = new ReactiveObject<bool>();
- ExpandRam.Event += static (sender, e) => LogValueChange(sender, e, nameof(ExpandRam));
- IgnoreMissingServices = new ReactiveObject<bool>();
- IgnoreMissingServices.Event += static (sender, e) => LogValueChange(sender, e, nameof(IgnoreMissingServices));
- AudioVolume = new ReactiveObject<float>();
- AudioVolume.Event += static (sender, e) => LogValueChange(sender, e, nameof(AudioVolume));
- UseHypervisor = new ReactiveObject<bool>();
- UseHypervisor.Event += static (sender, e) => LogValueChange(sender, e, nameof(UseHypervisor));
+ Language = new ReactiveObject<Language>();
+ Region = new ReactiveObject<Region>();
+ TimeZone = new ReactiveObject<string>();
+ SystemTimeOffset = new ReactiveObject<long>();
+ EnableDockedMode = new ReactiveObject<bool>();
+ EnableDockedMode.Event += static (sender, e) => LogValueChange(e, nameof(EnableDockedMode));
+ EnablePtc = new ReactiveObject<bool>();
+ EnablePtc.Event += static (sender, e) => LogValueChange(e, nameof(EnablePtc));
+ EnableInternetAccess = new ReactiveObject<bool>();
+ EnableInternetAccess.Event += static (sender, e) => LogValueChange(e, nameof(EnableInternetAccess));
+ EnableFsIntegrityChecks = new ReactiveObject<bool>();
+ EnableFsIntegrityChecks.Event += static (sender, e) => LogValueChange(e, nameof(EnableFsIntegrityChecks));
+ FsGlobalAccessLogMode = new ReactiveObject<int>();
+ FsGlobalAccessLogMode.Event += static (sender, e) => LogValueChange(e, nameof(FsGlobalAccessLogMode));
+ AudioBackend = new ReactiveObject<AudioBackend>();
+ AudioBackend.Event += static (sender, e) => LogValueChange(e, nameof(AudioBackend));
+ MemoryManagerMode = new ReactiveObject<MemoryManagerMode>();
+ MemoryManagerMode.Event += static (sender, e) => LogValueChange(e, nameof(MemoryManagerMode));
+ ExpandRam = new ReactiveObject<bool>();
+ ExpandRam.Event += static (sender, e) => LogValueChange(e, nameof(ExpandRam));
+ IgnoreMissingServices = new ReactiveObject<bool>();
+ IgnoreMissingServices.Event += static (sender, e) => LogValueChange(e, nameof(IgnoreMissingServices));
+ AudioVolume = new ReactiveObject<float>();
+ AudioVolume.Event += static (sender, e) => LogValueChange(e, nameof(AudioVolume));
+ UseHypervisor = new ReactiveObject<bool>();
+ UseHypervisor.Event += static (sender, e) => LogValueChange(e, nameof(UseHypervisor));
}
}
@@ -424,9 +424,9 @@ namespace Ryujinx.Ui.Common.Configuration
public HidSection()
{
EnableKeyboard = new ReactiveObject<bool>();
- EnableMouse = new ReactiveObject<bool>();
- Hotkeys = new ReactiveObject<KeyboardHotkeys>();
- InputConfig = new ReactiveObject<List<InputConfig>>();
+ EnableMouse = new ReactiveObject<bool>();
+ Hotkeys = new ReactiveObject<KeyboardHotkeys>();
+ InputConfig = new ReactiveObject<List<InputConfig>>();
}
}
@@ -512,35 +512,35 @@ namespace Ryujinx.Ui.Common.Configuration
public GraphicsSection()
{
- BackendThreading = new ReactiveObject<BackendThreading>();
- BackendThreading.Event += static (sender, e) => LogValueChange(sender, e, nameof(BackendThreading));
- ResScale = new ReactiveObject<int>();
- ResScale.Event += static (sender, e) => LogValueChange(sender, e, nameof(ResScale));
- ResScaleCustom = new ReactiveObject<float>();
- ResScaleCustom.Event += static (sender, e) => LogValueChange(sender, e, nameof(ResScaleCustom));
- MaxAnisotropy = new ReactiveObject<float>();
- MaxAnisotropy.Event += static (sender, e) => LogValueChange(sender, e, nameof(MaxAnisotropy));
- AspectRatio = new ReactiveObject<AspectRatio>();
- AspectRatio.Event += static (sender, e) => LogValueChange(sender, e, nameof(AspectRatio));
- ShadersDumpPath = new ReactiveObject<string>();
- EnableVsync = new ReactiveObject<bool>();
- EnableVsync.Event += static (sender, e) => LogValueChange(sender, e, nameof(EnableVsync));
- EnableShaderCache = new ReactiveObject<bool>();
- EnableShaderCache.Event += static (sender, e) => LogValueChange(sender, e, nameof(EnableShaderCache));
- EnableTextureRecompression = new ReactiveObject<bool>();
- EnableTextureRecompression.Event += static (sender, e) => LogValueChange(sender, e, nameof(EnableTextureRecompression));
- GraphicsBackend = new ReactiveObject<GraphicsBackend>();
- GraphicsBackend.Event += static (sender, e) => LogValueChange(sender, e, nameof(GraphicsBackend));
- PreferredGpu = new ReactiveObject<string>();
- PreferredGpu.Event += static (sender, e) => LogValueChange(sender, e, nameof(PreferredGpu));
- EnableMacroHLE = new ReactiveObject<bool>();
- EnableMacroHLE.Event += static (sender, e) => LogValueChange(sender, e, nameof(EnableMacroHLE));
- AntiAliasing = new ReactiveObject<AntiAliasing>();
- AntiAliasing.Event += static (sender, e) => LogValueChange(sender, e, nameof(AntiAliasing));
- ScalingFilter = new ReactiveObject<ScalingFilter>();
- ScalingFilter.Event += static (sender, e) => LogValueChange(sender, e, nameof(ScalingFilter));
- ScalingFilterLevel = new ReactiveObject<int>();
- ScalingFilterLevel.Event += static (sender, e) => LogValueChange(sender, e, nameof(ScalingFilterLevel));
+ BackendThreading = new ReactiveObject<BackendThreading>();
+ BackendThreading.Event += static (sender, e) => LogValueChange(e, nameof(BackendThreading));
+ ResScale = new ReactiveObject<int>();
+ ResScale.Event += static (sender, e) => LogValueChange(e, nameof(ResScale));
+ ResScaleCustom = new ReactiveObject<float>();
+ ResScaleCustom.Event += static (sender, e) => LogValueChange(e, nameof(ResScaleCustom));
+ MaxAnisotropy = new ReactiveObject<float>();
+ MaxAnisotropy.Event += static (sender, e) => LogValueChange(e, nameof(MaxAnisotropy));
+ AspectRatio = new ReactiveObject<AspectRatio>();
+ AspectRatio.Event += static (sender, e) => LogValueChange(e, nameof(AspectRatio));
+ ShadersDumpPath = new ReactiveObject<string>();
+ EnableVsync = new ReactiveObject<bool>();
+ EnableVsync.Event += static (sender, e) => LogValueChange(e, nameof(EnableVsync));
+ EnableShaderCache = new ReactiveObject<bool>();
+ EnableShaderCache.Event += static (sender, e) => LogValueChange(e, nameof(EnableShaderCache));
+ EnableTextureRecompression = new ReactiveObject<bool>();
+ EnableTextureRecompression.Event += static (sender, e) => LogValueChange(e, nameof(EnableTextureRecompression));
+ GraphicsBackend = new ReactiveObject<GraphicsBackend>();
+ GraphicsBackend.Event += static (sender, e) => LogValueChange(e, nameof(GraphicsBackend));
+ PreferredGpu = new ReactiveObject<string>();
+ PreferredGpu.Event += static (sender, e) => LogValueChange(e, nameof(PreferredGpu));
+ EnableMacroHLE = new ReactiveObject<bool>();
+ EnableMacroHLE.Event += static (sender, e) => LogValueChange(e, nameof(EnableMacroHLE));
+ AntiAliasing = new ReactiveObject<AntiAliasing>();
+ AntiAliasing.Event += static (sender, e) => LogValueChange(e, nameof(AntiAliasing));
+ ScalingFilter = new ReactiveObject<ScalingFilter>();
+ ScalingFilter.Event += static (sender, e) => LogValueChange(e, nameof(ScalingFilter));
+ ScalingFilterLevel = new ReactiveObject<int>();
+ ScalingFilterLevel.Event += static (sender, e) => LogValueChange(e, nameof(ScalingFilterLevel));
}
}
@@ -617,86 +617,86 @@ namespace Ryujinx.Ui.Common.Configuration
private ConfigurationState()
{
- Ui = new UiSection();
- Logger = new LoggerSection();
- System = new SystemSection();
- Graphics = new GraphicsSection();
- Hid = new HidSection();
- Multiplayer = new MultiplayerSection();
+ Ui = new UiSection();
+ Logger = new LoggerSection();
+ System = new SystemSection();
+ Graphics = new GraphicsSection();
+ Hid = new HidSection();
+ Multiplayer = new MultiplayerSection();
EnableDiscordIntegration = new ReactiveObject<bool>();
- CheckUpdatesOnStart = new ReactiveObject<bool>();
- ShowConfirmExit = new ReactiveObject<bool>();
- HideCursor = new ReactiveObject<HideCursorMode>();
+ CheckUpdatesOnStart = new ReactiveObject<bool>();
+ ShowConfirmExit = new ReactiveObject<bool>();
+ HideCursor = new ReactiveObject<HideCursorMode>();
}
public ConfigurationFileFormat ToFileFormat()
{
- ConfigurationFileFormat configurationFile = new ConfigurationFileFormat
+ ConfigurationFileFormat configurationFile = new()
{
- Version = ConfigurationFileFormat.CurrentVersion,
- BackendThreading = Graphics.BackendThreading,
- EnableFileLog = Logger.EnableFileLog,
- ResScale = Graphics.ResScale,
- ResScaleCustom = Graphics.ResScaleCustom,
- MaxAnisotropy = Graphics.MaxAnisotropy,
- AspectRatio = Graphics.AspectRatio,
- AntiAliasing = Graphics.AntiAliasing,
- ScalingFilter = Graphics.ScalingFilter,
- ScalingFilterLevel = Graphics.ScalingFilterLevel,
- GraphicsShadersDumpPath = Graphics.ShadersDumpPath,
- LoggingEnableDebug = Logger.EnableDebug,
- LoggingEnableStub = Logger.EnableStub,
- LoggingEnableInfo = Logger.EnableInfo,
- LoggingEnableWarn = Logger.EnableWarn,
- LoggingEnableError = Logger.EnableError,
- LoggingEnableTrace = Logger.EnableTrace,
- LoggingEnableGuest = Logger.EnableGuest,
- LoggingEnableFsAccessLog = Logger.EnableFsAccessLog,
- LoggingFilteredClasses = Logger.FilteredClasses,
- LoggingGraphicsDebugLevel = Logger.GraphicsDebugLevel,
- SystemLanguage = System.Language,
- SystemRegion = System.Region,
- SystemTimeZone = System.TimeZone,
- SystemTimeOffset = System.SystemTimeOffset,
- DockedMode = System.EnableDockedMode,
- EnableDiscordIntegration = EnableDiscordIntegration,
- CheckUpdatesOnStart = CheckUpdatesOnStart,
- ShowConfirmExit = ShowConfirmExit,
- HideCursor = HideCursor,
- EnableVsync = Graphics.EnableVsync,
- EnableShaderCache = Graphics.EnableShaderCache,
+ Version = ConfigurationFileFormat.CurrentVersion,
+ BackendThreading = Graphics.BackendThreading,
+ EnableFileLog = Logger.EnableFileLog,
+ ResScale = Graphics.ResScale,
+ ResScaleCustom = Graphics.ResScaleCustom,
+ MaxAnisotropy = Graphics.MaxAnisotropy,
+ AspectRatio = Graphics.AspectRatio,
+ AntiAliasing = Graphics.AntiAliasing,
+ ScalingFilter = Graphics.ScalingFilter,
+ ScalingFilterLevel = Graphics.ScalingFilterLevel,
+ GraphicsShadersDumpPath = Graphics.ShadersDumpPath,
+ LoggingEnableDebug = Logger.EnableDebug,
+ LoggingEnableStub = Logger.EnableStub,
+ LoggingEnableInfo = Logger.EnableInfo,
+ LoggingEnableWarn = Logger.EnableWarn,
+ LoggingEnableError = Logger.EnableError,
+ LoggingEnableTrace = Logger.EnableTrace,
+ LoggingEnableGuest = Logger.EnableGuest,
+ LoggingEnableFsAccessLog = Logger.EnableFsAccessLog,
+ LoggingFilteredClasses = Logger.FilteredClasses,
+ LoggingGraphicsDebugLevel = Logger.GraphicsDebugLevel,
+ SystemLanguage = System.Language,
+ SystemRegion = System.Region,
+ SystemTimeZone = System.TimeZone,
+ SystemTimeOffset = System.SystemTimeOffset,
+ DockedMode = System.EnableDockedMode,
+ EnableDiscordIntegration = EnableDiscordIntegration,
+ CheckUpdatesOnStart = CheckUpdatesOnStart,
+ ShowConfirmExit = ShowConfirmExit,
+ HideCursor = HideCursor,
+ EnableVsync = Graphics.EnableVsync,
+ EnableShaderCache = Graphics.EnableShaderCache,
EnableTextureRecompression = Graphics.EnableTextureRecompression,
- EnableMacroHLE = Graphics.EnableMacroHLE,
- EnablePtc = System.EnablePtc,
- EnableInternetAccess = System.EnableInternetAccess,
- EnableFsIntegrityChecks = System.EnableFsIntegrityChecks,
- FsGlobalAccessLogMode = System.FsGlobalAccessLogMode,
- AudioBackend = System.AudioBackend,
- AudioVolume = System.AudioVolume,
- MemoryManagerMode = System.MemoryManagerMode,
- ExpandRam = System.ExpandRam,
- IgnoreMissingServices = System.IgnoreMissingServices,
- UseHypervisor = System.UseHypervisor,
- GuiColumns = new GuiColumns
+ EnableMacroHLE = Graphics.EnableMacroHLE,
+ EnablePtc = System.EnablePtc,
+ EnableInternetAccess = System.EnableInternetAccess,
+ EnableFsIntegrityChecks = System.EnableFsIntegrityChecks,
+ FsGlobalAccessLogMode = System.FsGlobalAccessLogMode,
+ AudioBackend = System.AudioBackend,
+ AudioVolume = System.AudioVolume,
+ MemoryManagerMode = System.MemoryManagerMode,
+ ExpandRam = System.ExpandRam,
+ IgnoreMissingServices = System.IgnoreMissingServices,
+ UseHypervisor = System.UseHypervisor,
+ GuiColumns = new GuiColumns
{
- FavColumn = Ui.GuiColumns.FavColumn,
- IconColumn = Ui.GuiColumns.IconColumn,
- AppColumn = Ui.GuiColumns.AppColumn,
- DevColumn = Ui.GuiColumns.DevColumn,
- VersionColumn = Ui.GuiColumns.VersionColumn,
+ FavColumn = Ui.GuiColumns.FavColumn,
+ IconColumn = Ui.GuiColumns.IconColumn,
+ AppColumn = Ui.GuiColumns.AppColumn,
+ DevColumn = Ui.GuiColumns.DevColumn,
+ VersionColumn = Ui.GuiColumns.VersionColumn,
TimePlayedColumn = Ui.GuiColumns.TimePlayedColumn,
LastPlayedColumn = Ui.GuiColumns.LastPlayedColumn,
- FileExtColumn = Ui.GuiColumns.FileExtColumn,
- FileSizeColumn = Ui.GuiColumns.FileSizeColumn,
- PathColumn = Ui.GuiColumns.PathColumn
+ FileExtColumn = Ui.GuiColumns.FileExtColumn,
+ FileSizeColumn = Ui.GuiColumns.FileSizeColumn,
+ PathColumn = Ui.GuiColumns.PathColumn,
},
- ColumnSort = new ColumnSort
+ ColumnSort = new ColumnSort
{
- SortColumnId = Ui.ColumnSort.SortColumnId,
- SortAscending = Ui.ColumnSort.SortAscending
+ SortColumnId = Ui.ColumnSort.SortColumnId,
+ SortAscending = Ui.ColumnSort.SortAscending,
},
- GameDirs = Ui.GameDirs,
- ShownFileTypes = new ShownFileTypes
+ GameDirs = Ui.GameDirs,
+ ShownFileTypes = new ShownFileTypes
{
NSP = Ui.ShownFileTypes.NSP,
PFS0 = Ui.ShownFileTypes.PFS0,
@@ -705,7 +705,7 @@ namespace Ryujinx.Ui.Common.Configuration
NRO = Ui.ShownFileTypes.NRO,
NSO = Ui.ShownFileTypes.NSO,
},
- WindowStartup = new WindowStartup
+ WindowStartup = new WindowStartup
{
WindowSizeWidth = Ui.WindowStartup.WindowSizeWidth,
WindowSizeHeight = Ui.WindowStartup.WindowSizeHeight,
@@ -713,26 +713,26 @@ namespace Ryujinx.Ui.Common.Configuration
WindowPositionY = Ui.WindowStartup.WindowPositionY,
WindowMaximized = Ui.WindowStartup.WindowMaximized,
},
- LanguageCode = Ui.LanguageCode,
- EnableCustomTheme = Ui.EnableCustomTheme,
- CustomThemePath = Ui.CustomThemePath,
- BaseStyle = Ui.BaseStyle,
- GameListViewMode = Ui.GameListViewMode,
- ShowNames = Ui.ShowNames,
- GridSize = Ui.GridSize,
- ApplicationSort = Ui.ApplicationSort,
- IsAscendingOrder = Ui.IsAscendingOrder,
- StartFullscreen = Ui.StartFullscreen,
- ShowConsole = Ui.ShowConsole,
- EnableKeyboard = Hid.EnableKeyboard,
- EnableMouse = Hid.EnableMouse,
- Hotkeys = Hid.Hotkeys,
- KeyboardConfig = new List<JsonObject>(),
- ControllerConfig = new List<JsonObject>(),
- InputConfig = Hid.InputConfig,
- GraphicsBackend = Graphics.GraphicsBackend,
- PreferredGpu = Graphics.PreferredGpu,
- MultiplayerLanInterfaceId = Multiplayer.LanInterfaceId
+ LanguageCode = Ui.LanguageCode,
+ EnableCustomTheme = Ui.EnableCustomTheme,
+ CustomThemePath = Ui.CustomThemePath,
+ BaseStyle = Ui.BaseStyle,
+ GameListViewMode = Ui.GameListViewMode,
+ ShowNames = Ui.ShowNames,
+ GridSize = Ui.GridSize,
+ ApplicationSort = Ui.ApplicationSort,
+ IsAscendingOrder = Ui.IsAscendingOrder,
+ StartFullscreen = Ui.StartFullscreen,
+ ShowConsole = Ui.ShowConsole,
+ EnableKeyboard = Hid.EnableKeyboard,
+ EnableMouse = Hid.EnableMouse,
+ Hotkeys = Hid.Hotkeys,
+ KeyboardConfig = new List<JsonObject>(),
+ ControllerConfig = new List<JsonObject>(),
+ InputConfig = Hid.InputConfig,
+ GraphicsBackend = Graphics.GraphicsBackend,
+ PreferredGpu = Graphics.PreferredGpu,
+ MultiplayerLanInterfaceId = Multiplayer.LanInterfaceId,
};
return configurationFile;
@@ -740,89 +740,89 @@ namespace Ryujinx.Ui.Common.Configuration
public void LoadDefault()
{
- Logger.EnableFileLog.Value = true;
- Graphics.BackendThreading.Value = BackendThreading.Auto;
- Graphics.ResScale.Value = 1;
- Graphics.ResScaleCustom.Value = 1.0f;
- Graphics.MaxAnisotropy.Value = -1.0f;
- Graphics.AspectRatio.Value = AspectRatio.Fixed16x9;
- Graphics.GraphicsBackend.Value = OperatingSystem.IsMacOS() ? GraphicsBackend.Vulkan : GraphicsBackend.OpenGl;
- Graphics.PreferredGpu.Value = "";
- Graphics.ShadersDumpPath.Value = "";
- Logger.EnableDebug.Value = false;
- Logger.EnableStub.Value = true;
- Logger.EnableInfo.Value = true;
- Logger.EnableWarn.Value = true;
- Logger.EnableError.Value = true;
- Logger.EnableTrace.Value = false;
- Logger.EnableGuest.Value = true;
- Logger.EnableFsAccessLog.Value = false;
- Logger.FilteredClasses.Value = Array.Empty<LogClass>();
- Logger.GraphicsDebugLevel.Value = GraphicsDebugLevel.None;
- System.Language.Value = Language.AmericanEnglish;
- System.Region.Value = Region.USA;
- System.TimeZone.Value = "UTC";
- System.SystemTimeOffset.Value = 0;
- System.EnableDockedMode.Value = true;
- EnableDiscordIntegration.Value = true;
- CheckUpdatesOnStart.Value = true;
- ShowConfirmExit.Value = true;
- HideCursor.Value = Ryujinx.Common.Configuration.HideCursorMode.Never;
- Graphics.EnableVsync.Value = true;
- Graphics.EnableShaderCache.Value = true;
+ Logger.EnableFileLog.Value = true;
+ Graphics.BackendThreading.Value = BackendThreading.Auto;
+ Graphics.ResScale.Value = 1;
+ Graphics.ResScaleCustom.Value = 1.0f;
+ Graphics.MaxAnisotropy.Value = -1.0f;
+ Graphics.AspectRatio.Value = AspectRatio.Fixed16x9;
+ Graphics.GraphicsBackend.Value = OperatingSystem.IsMacOS() ? GraphicsBackend.Vulkan : GraphicsBackend.OpenGl;
+ Graphics.PreferredGpu.Value = "";
+ Graphics.ShadersDumpPath.Value = "";
+ Logger.EnableDebug.Value = false;
+ Logger.EnableStub.Value = true;
+ Logger.EnableInfo.Value = true;
+ Logger.EnableWarn.Value = true;
+ Logger.EnableError.Value = true;
+ Logger.EnableTrace.Value = false;
+ Logger.EnableGuest.Value = true;
+ Logger.EnableFsAccessLog.Value = false;
+ Logger.FilteredClasses.Value = Array.Empty<LogClass>();
+ Logger.GraphicsDebugLevel.Value = GraphicsDebugLevel.None;
+ System.Language.Value = Language.AmericanEnglish;
+ System.Region.Value = Region.USA;
+ System.TimeZone.Value = "UTC";
+ System.SystemTimeOffset.Value = 0;
+ System.EnableDockedMode.Value = true;
+ EnableDiscordIntegration.Value = true;
+ CheckUpdatesOnStart.Value = true;
+ ShowConfirmExit.Value = true;
+ HideCursor.Value = HideCursorMode.Never;
+ Graphics.EnableVsync.Value = true;
+ Graphics.EnableShaderCache.Value = true;
Graphics.EnableTextureRecompression.Value = false;
- Graphics.EnableMacroHLE.Value = true;
- Graphics.AntiAliasing.Value = AntiAliasing.None;
- Graphics.ScalingFilter.Value = ScalingFilter.Bilinear;
- Graphics.ScalingFilterLevel.Value = 80;
- System.EnablePtc.Value = true;
- System.EnableInternetAccess.Value = false;
- System.EnableFsIntegrityChecks.Value = true;
- System.FsGlobalAccessLogMode.Value = 0;
- System.AudioBackend.Value = AudioBackend.SDL2;
- System.AudioVolume.Value = 1;
- System.MemoryManagerMode.Value = MemoryManagerMode.HostMappedUnsafe;
- System.ExpandRam.Value = false;
- System.IgnoreMissingServices.Value = false;
- System.UseHypervisor.Value = true;
- Multiplayer.LanInterfaceId.Value = "0";
- Ui.GuiColumns.FavColumn.Value = true;
- Ui.GuiColumns.IconColumn.Value = true;
- Ui.GuiColumns.AppColumn.Value = true;
- Ui.GuiColumns.DevColumn.Value = true;
- Ui.GuiColumns.VersionColumn.Value = true;
- Ui.GuiColumns.TimePlayedColumn.Value = true;
- Ui.GuiColumns.LastPlayedColumn.Value = true;
- Ui.GuiColumns.FileExtColumn.Value = true;
- Ui.GuiColumns.FileSizeColumn.Value = true;
- Ui.GuiColumns.PathColumn.Value = true;
- Ui.ColumnSort.SortColumnId.Value = 0;
- Ui.ColumnSort.SortAscending.Value = false;
- Ui.GameDirs.Value = new List<string>();
- Ui.ShownFileTypes.NSP.Value = true;
- Ui.ShownFileTypes.PFS0.Value = true;
- Ui.ShownFileTypes.XCI.Value = true;
- Ui.ShownFileTypes.NCA.Value = true;
- Ui.ShownFileTypes.NRO.Value = true;
- Ui.ShownFileTypes.NSO.Value = true;
- Ui.EnableCustomTheme.Value = true;
- Ui.LanguageCode.Value = "en_US";
- Ui.CustomThemePath.Value = "";
- Ui.BaseStyle.Value = "Dark";
- Ui.GameListViewMode.Value = 0;
- Ui.ShowNames.Value = true;
- Ui.GridSize.Value = 2;
- Ui.ApplicationSort.Value = 0;
- Ui.IsAscendingOrder.Value = true;
- Ui.StartFullscreen.Value = false;
- Ui.ShowConsole.Value = true;
- Ui.WindowStartup.WindowSizeWidth.Value = 1280;
- Ui.WindowStartup.WindowSizeHeight.Value = 760;
- Ui.WindowStartup.WindowPositionX.Value = 0;
- Ui.WindowStartup.WindowPositionY.Value = 0;
- Ui.WindowStartup.WindowMaximized.Value = false;
- Hid.EnableKeyboard.Value = false;
- Hid.EnableMouse.Value = false;
+ Graphics.EnableMacroHLE.Value = true;
+ Graphics.AntiAliasing.Value = AntiAliasing.None;
+ Graphics.ScalingFilter.Value = ScalingFilter.Bilinear;
+ Graphics.ScalingFilterLevel.Value = 80;
+ System.EnablePtc.Value = true;
+ System.EnableInternetAccess.Value = false;
+ System.EnableFsIntegrityChecks.Value = true;
+ System.FsGlobalAccessLogMode.Value = 0;
+ System.AudioBackend.Value = AudioBackend.SDL2;
+ System.AudioVolume.Value = 1;
+ System.MemoryManagerMode.Value = MemoryManagerMode.HostMappedUnsafe;
+ System.ExpandRam.Value = false;
+ System.IgnoreMissingServices.Value = false;
+ System.UseHypervisor.Value = true;
+ Multiplayer.LanInterfaceId.Value = "0";
+ Ui.GuiColumns.FavColumn.Value = true;
+ Ui.GuiColumns.IconColumn.Value = true;
+ Ui.GuiColumns.AppColumn.Value = true;
+ Ui.GuiColumns.DevColumn.Value = true;
+ Ui.GuiColumns.VersionColumn.Value = true;
+ Ui.GuiColumns.TimePlayedColumn.Value = true;
+ Ui.GuiColumns.LastPlayedColumn.Value = true;
+ Ui.GuiColumns.FileExtColumn.Value = true;
+ Ui.GuiColumns.FileSizeColumn.Value = true;
+ Ui.GuiColumns.PathColumn.Value = true;
+ Ui.ColumnSort.SortColumnId.Value = 0;
+ Ui.ColumnSort.SortAscending.Value = false;
+ Ui.GameDirs.Value = new List<string>();
+ Ui.ShownFileTypes.NSP.Value = true;
+ Ui.ShownFileTypes.PFS0.Value = true;
+ Ui.ShownFileTypes.XCI.Value = true;
+ Ui.ShownFileTypes.NCA.Value = true;
+ Ui.ShownFileTypes.NRO.Value = true;
+ Ui.ShownFileTypes.NSO.Value = true;
+ Ui.EnableCustomTheme.Value = true;
+ Ui.LanguageCode.Value = "en_US";
+ Ui.CustomThemePath.Value = "";
+ Ui.BaseStyle.Value = "Dark";
+ Ui.GameListViewMode.Value = 0;
+ Ui.ShowNames.Value = true;
+ Ui.GridSize.Value = 2;
+ Ui.ApplicationSort.Value = 0;
+ Ui.IsAscendingOrder.Value = true;
+ Ui.StartFullscreen.Value = false;
+ Ui.ShowConsole.Value = true;
+ Ui.WindowStartup.WindowSizeWidth.Value = 1280;
+ Ui.WindowStartup.WindowSizeHeight.Value = 760;
+ Ui.WindowStartup.WindowPositionX.Value = 0;
+ Ui.WindowStartup.WindowPositionY.Value = 0;
+ Ui.WindowStartup.WindowMaximized.Value = false;
+ Hid.EnableKeyboard.Value = false;
+ Hid.EnableMouse.Value = false;
Hid.Hotkeys.Value = new KeyboardHotkeys
{
ToggleVsync = Key.F1,
@@ -833,61 +833,58 @@ namespace Ryujinx.Ui.Common.Configuration
ResScaleUp = Key.Unbound,
ResScaleDown = Key.Unbound,
VolumeUp = Key.Unbound,
- VolumeDown = Key.Unbound
+ VolumeDown = Key.Unbound,
};
Hid.InputConfig.Value = new List<InputConfig>
{
- new StandardKeyboardInputConfig
- {
- Version = InputConfig.CurrentVersion,
- Backend = InputBackendType.WindowKeyboard,
- Id = "0",
- PlayerIndex = PlayerIndex.Player1,
- ControllerType = ControllerType.JoyconPair,
- LeftJoycon = new LeftJoyconCommonConfig<Key>
- {
- DpadUp = Key.Up,
- DpadDown = Key.Down,
- DpadLeft = Key.Left,
- DpadRight = Key.Right,
- ButtonMinus = Key.Minus,
- ButtonL = Key.E,
- ButtonZl = Key.Q,
- ButtonSl = Key.Unbound,
- ButtonSr = Key.Unbound
- },
-
- LeftJoyconStick = new JoyconConfigKeyboardStick<Key>
- {
- StickUp = Key.W,
- StickDown = Key.S,
- StickLeft = Key.A,
- StickRight = Key.D,
- StickButton = Key.F,
- },
-
- RightJoycon = new RightJoyconCommonConfig<Key>
- {
- ButtonA = Key.Z,
- ButtonB = Key.X,
- ButtonX = Key.C,
- ButtonY = Key.V,
- ButtonPlus = Key.Plus,
- ButtonR = Key.U,
- ButtonZr = Key.O,
- ButtonSl = Key.Unbound,
- ButtonSr = Key.Unbound
- },
-
- RightJoyconStick = new JoyconConfigKeyboardStick<Key>
- {
- StickUp = Key.I,
- StickDown = Key.K,
- StickLeft = Key.J,
- StickRight = Key.L,
- StickButton = Key.H,
- }
- }
+ new StandardKeyboardInputConfig
+ {
+ Version = InputConfig.CurrentVersion,
+ Backend = InputBackendType.WindowKeyboard,
+ Id = "0",
+ PlayerIndex = PlayerIndex.Player1,
+ ControllerType = ControllerType.JoyconPair,
+ LeftJoycon = new LeftJoyconCommonConfig<Key>
+ {
+ DpadUp = Key.Up,
+ DpadDown = Key.Down,
+ DpadLeft = Key.Left,
+ DpadRight = Key.Right,
+ ButtonMinus = Key.Minus,
+ ButtonL = Key.E,
+ ButtonZl = Key.Q,
+ ButtonSl = Key.Unbound,
+ ButtonSr = Key.Unbound,
+ },
+ LeftJoyconStick = new JoyconConfigKeyboardStick<Key>
+ {
+ StickUp = Key.W,
+ StickDown = Key.S,
+ StickLeft = Key.A,
+ StickRight = Key.D,
+ StickButton = Key.F,
+ },
+ RightJoycon = new RightJoyconCommonConfig<Key>
+ {
+ ButtonA = Key.Z,
+ ButtonB = Key.X,
+ ButtonX = Key.C,
+ ButtonY = Key.V,
+ ButtonPlus = Key.Plus,
+ ButtonR = Key.U,
+ ButtonZr = Key.O,
+ ButtonSl = Key.Unbound,
+ ButtonSr = Key.Unbound,
+ },
+ RightJoyconStick = new JoyconConfigKeyboardStick<Key>
+ {
+ StickUp = Key.I,
+ StickDown = Key.K,
+ StickLeft = Key.J,
+ StickRight = Key.L,
+ StickButton = Key.H,
+ },
+ },
};
}
@@ -957,13 +954,13 @@ namespace Ryujinx.Ui.Common.Configuration
configurationFileFormat.ColumnSort = new ColumnSort
{
- SortColumnId = 0,
- SortAscending = false
+ SortColumnId = 0,
+ SortAscending = false,
};
configurationFileFormat.Hotkeys = new KeyboardHotkeys
{
- ToggleVsync = Key.F1
+ ToggleVsync = Key.F1,
};
configurationFileUpdated = true;
@@ -1057,57 +1054,54 @@ namespace Ryujinx.Ui.Common.Configuration
configurationFileFormat.InputConfig = new List<InputConfig>
{
- new StandardKeyboardInputConfig
- {
- Version = InputConfig.CurrentVersion,
- Backend = InputBackendType.WindowKeyboard,
- Id = "0",
- PlayerIndex = PlayerIndex.Player1,
- ControllerType = ControllerType.JoyconPair,
- LeftJoycon = new LeftJoyconCommonConfig<Key>
- {
- DpadUp = Key.Up,
- DpadDown = Key.Down,
- DpadLeft = Key.Left,
- DpadRight = Key.Right,
- ButtonMinus = Key.Minus,
- ButtonL = Key.E,
- ButtonZl = Key.Q,
- ButtonSl = Key.Unbound,
- ButtonSr = Key.Unbound
- },
-
- LeftJoyconStick = new JoyconConfigKeyboardStick<Key>
- {
- StickUp = Key.W,
- StickDown = Key.S,
- StickLeft = Key.A,
- StickRight = Key.D,
- StickButton = Key.F,
- },
-
- RightJoycon = new RightJoyconCommonConfig<Key>
- {
- ButtonA = Key.Z,
- ButtonB = Key.X,
- ButtonX = Key.C,
- ButtonY = Key.V,
- ButtonPlus = Key.Plus,
- ButtonR = Key.U,
- ButtonZr = Key.O,
- ButtonSl = Key.Unbound,
- ButtonSr = Key.Unbound
- },
-
- RightJoyconStick = new JoyconConfigKeyboardStick<Key>
- {
- StickUp = Key.I,
- StickDown = Key.K,
- StickLeft = Key.J,
- StickRight = Key.L,
- StickButton = Key.H,
- }
- }
+ new StandardKeyboardInputConfig
+ {
+ Version = InputConfig.CurrentVersion,
+ Backend = InputBackendType.WindowKeyboard,
+ Id = "0",
+ PlayerIndex = PlayerIndex.Player1,
+ ControllerType = ControllerType.JoyconPair,
+ LeftJoycon = new LeftJoyconCommonConfig<Key>
+ {
+ DpadUp = Key.Up,
+ DpadDown = Key.Down,
+ DpadLeft = Key.Left,
+ DpadRight = Key.Right,
+ ButtonMinus = Key.Minus,
+ ButtonL = Key.E,
+ ButtonZl = Key.Q,
+ ButtonSl = Key.Unbound,
+ ButtonSr = Key.Unbound,
+ },
+ LeftJoyconStick = new JoyconConfigKeyboardStick<Key>
+ {
+ StickUp = Key.W,
+ StickDown = Key.S,
+ StickLeft = Key.A,
+ StickRight = Key.D,
+ StickButton = Key.F,
+ },
+ RightJoycon = new RightJoyconCommonConfig<Key>
+ {
+ ButtonA = Key.Z,
+ ButtonB = Key.X,
+ ButtonX = Key.C,
+ ButtonY = Key.V,
+ ButtonPlus = Key.Plus,
+ ButtonR = Key.U,
+ ButtonZr = Key.O,
+ ButtonSl = Key.Unbound,
+ ButtonSr = Key.Unbound,
+ },
+ RightJoyconStick = new JoyconConfigKeyboardStick<Key>
+ {
+ StickUp = Key.I,
+ StickDown = Key.K,
+ StickLeft = Key.J,
+ StickRight = Key.L,
+ StickButton = Key.H,
+ },
+ },
};
configurationFileUpdated = true;
@@ -1145,7 +1139,7 @@ namespace Ryujinx.Ui.Common.Configuration
configurationFileFormat.Hotkeys = new KeyboardHotkeys
{
ToggleVsync = Key.F1,
- Screenshot = Key.F8
+ Screenshot = Key.F8,
};
configurationFileUpdated = true;
@@ -1159,7 +1153,7 @@ namespace Ryujinx.Ui.Common.Configuration
{
ToggleVsync = Key.F1,
Screenshot = Key.F8,
- ShowUi = Key.F4
+ ShowUi = Key.F4,
};
configurationFileUpdated = true;
@@ -1169,7 +1163,7 @@ namespace Ryujinx.Ui.Common.Configuration
{
Ryujinx.Common.Logging.Logger.Warning?.Print(LogClass.Application, $"Outdated configuration version {configurationFileFormat.Version}, migrating to version 30.");
- foreach(InputConfig config in configurationFileFormat.InputConfig)
+ foreach (InputConfig config in configurationFileFormat.InputConfig)
{
if (config is StandardControllerInputConfig controllerConfig)
{
@@ -1177,7 +1171,7 @@ namespace Ryujinx.Ui.Common.Configuration
{
EnableRumble = false,
StrongRumble = 1f,
- WeakRumble = 1f
+ WeakRumble = 1f,
};
}
}
@@ -1203,7 +1197,7 @@ namespace Ryujinx.Ui.Common.Configuration
ToggleVsync = configurationFileFormat.Hotkeys.ToggleVsync,
Screenshot = configurationFileFormat.Hotkeys.Screenshot,
ShowUi = configurationFileFormat.Hotkeys.ShowUi,
- Pause = Key.F5
+ Pause = Key.F5,
};
configurationFileUpdated = true;
@@ -1219,7 +1213,7 @@ namespace Ryujinx.Ui.Common.Configuration
Screenshot = configurationFileFormat.Hotkeys.Screenshot,
ShowUi = configurationFileFormat.Hotkeys.ShowUi,
Pause = configurationFileFormat.Hotkeys.Pause,
- ToggleMute = Key.F2
+ ToggleMute = Key.F2,
};
configurationFileFormat.AudioVolume = 1;
@@ -1244,7 +1238,7 @@ namespace Ryujinx.Ui.Common.Configuration
{
if (config is StandardControllerInputConfig controllerConfig)
{
- controllerConfig.RangeLeft = 1.0f;
+ controllerConfig.RangeLeft = 1.0f;
controllerConfig.RangeRight = 1.0f;
}
}
@@ -1274,11 +1268,11 @@ namespace Ryujinx.Ui.Common.Configuration
{
Ryujinx.Common.Logging.Logger.Warning?.Print(LogClass.Application, $"Outdated configuration version {configurationFileFormat.Version}, migrating to version 38.");
- configurationFileFormat.BaseStyle = "Dark";
+ configurationFileFormat.BaseStyle = "Dark";
configurationFileFormat.GameListViewMode = 0;
- configurationFileFormat.ShowNames = true;
- configurationFileFormat.GridSize = 2;
- configurationFileFormat.LanguageCode = "en_US";
+ configurationFileFormat.ShowNames = true;
+ configurationFileFormat.GridSize = 2;
+ configurationFileFormat.LanguageCode = "en_US";
configurationFileUpdated = true;
}
@@ -1295,7 +1289,7 @@ namespace Ryujinx.Ui.Common.Configuration
Pause = configurationFileFormat.Hotkeys.Pause,
ToggleMute = configurationFileFormat.Hotkeys.ToggleMute,
ResScaleUp = Key.Unbound,
- ResScaleDown = Key.Unbound
+ ResScaleDown = Key.Unbound,
};
configurationFileUpdated = true;
@@ -1326,7 +1320,7 @@ namespace Ryujinx.Ui.Common.Configuration
ResScaleUp = configurationFileFormat.Hotkeys.ResScaleUp,
ResScaleDown = configurationFileFormat.Hotkeys.ResScaleDown,
VolumeUp = Key.Unbound,
- VolumeDown = Key.Unbound
+ VolumeDown = Key.Unbound,
};
}
@@ -1361,12 +1355,12 @@ namespace Ryujinx.Ui.Common.Configuration
configurationFileFormat.ShownFileTypes = new ShownFileTypes
{
- NSP = true,
+ NSP = true,
PFS0 = true,
- XCI = true,
- NCA = true,
- NRO = true,
- NSO = true
+ XCI = true,
+ NCA = true,
+ NRO = true,
+ NSO = true,
};
configurationFileUpdated = true;
@@ -1393,94 +1387,94 @@ namespace Ryujinx.Ui.Common.Configuration
WindowSizeWidth = 1280,
WindowMaximized = false,
};
-
+
configurationFileUpdated = true;
}
- Logger.EnableFileLog.Value = configurationFileFormat.EnableFileLog;
- Graphics.ResScale.Value = configurationFileFormat.ResScale;
- Graphics.ResScaleCustom.Value = configurationFileFormat.ResScaleCustom;
- Graphics.MaxAnisotropy.Value = configurationFileFormat.MaxAnisotropy;
- Graphics.AspectRatio.Value = configurationFileFormat.AspectRatio;
- Graphics.ShadersDumpPath.Value = configurationFileFormat.GraphicsShadersDumpPath;
- Graphics.BackendThreading.Value = configurationFileFormat.BackendThreading;
- Graphics.GraphicsBackend.Value = configurationFileFormat.GraphicsBackend;
- Graphics.PreferredGpu.Value = configurationFileFormat.PreferredGpu;
- Graphics.AntiAliasing.Value = configurationFileFormat.AntiAliasing;
- Graphics.ScalingFilter.Value = configurationFileFormat.ScalingFilter;
- Graphics.ScalingFilterLevel.Value = configurationFileFormat.ScalingFilterLevel;
- Logger.EnableDebug.Value = configurationFileFormat.LoggingEnableDebug;
- Logger.EnableStub.Value = configurationFileFormat.LoggingEnableStub;
- Logger.EnableInfo.Value = configurationFileFormat.LoggingEnableInfo;
- Logger.EnableWarn.Value = configurationFileFormat.LoggingEnableWarn;
- Logger.EnableError.Value = configurationFileFormat.LoggingEnableError;
- Logger.EnableTrace.Value = configurationFileFormat.LoggingEnableTrace;
- Logger.EnableGuest.Value = configurationFileFormat.LoggingEnableGuest;
- Logger.EnableFsAccessLog.Value = configurationFileFormat.LoggingEnableFsAccessLog;
- Logger.FilteredClasses.Value = configurationFileFormat.LoggingFilteredClasses;
- Logger.GraphicsDebugLevel.Value = configurationFileFormat.LoggingGraphicsDebugLevel;
- System.Language.Value = configurationFileFormat.SystemLanguage;
- System.Region.Value = configurationFileFormat.SystemRegion;
- System.TimeZone.Value = configurationFileFormat.SystemTimeZone;
- System.SystemTimeOffset.Value = configurationFileFormat.SystemTimeOffset;
- System.EnableDockedMode.Value = configurationFileFormat.DockedMode;
- EnableDiscordIntegration.Value = configurationFileFormat.EnableDiscordIntegration;
- CheckUpdatesOnStart.Value = configurationFileFormat.CheckUpdatesOnStart;
- ShowConfirmExit.Value = configurationFileFormat.ShowConfirmExit;
- HideCursor.Value = configurationFileFormat.HideCursor;
- Graphics.EnableVsync.Value = configurationFileFormat.EnableVsync;
- Graphics.EnableShaderCache.Value = configurationFileFormat.EnableShaderCache;
+ Logger.EnableFileLog.Value = configurationFileFormat.EnableFileLog;
+ Graphics.ResScale.Value = configurationFileFormat.ResScale;
+ Graphics.ResScaleCustom.Value = configurationFileFormat.ResScaleCustom;
+ Graphics.MaxAnisotropy.Value = configurationFileFormat.MaxAnisotropy;
+ Graphics.AspectRatio.Value = configurationFileFormat.AspectRatio;
+ Graphics.ShadersDumpPath.Value = configurationFileFormat.GraphicsShadersDumpPath;
+ Graphics.BackendThreading.Value = configurationFileFormat.BackendThreading;
+ Graphics.GraphicsBackend.Value = configurationFileFormat.GraphicsBackend;
+ Graphics.PreferredGpu.Value = configurationFileFormat.PreferredGpu;
+ Graphics.AntiAliasing.Value = configurationFileFormat.AntiAliasing;
+ Graphics.ScalingFilter.Value = configurationFileFormat.ScalingFilter;
+ Graphics.ScalingFilterLevel.Value = configurationFileFormat.ScalingFilterLevel;
+ Logger.EnableDebug.Value = configurationFileFormat.LoggingEnableDebug;
+ Logger.EnableStub.Value = configurationFileFormat.LoggingEnableStub;
+ Logger.EnableInfo.Value = configurationFileFormat.LoggingEnableInfo;
+ Logger.EnableWarn.Value = configurationFileFormat.LoggingEnableWarn;
+ Logger.EnableError.Value = configurationFileFormat.LoggingEnableError;
+ Logger.EnableTrace.Value = configurationFileFormat.LoggingEnableTrace;
+ Logger.EnableGuest.Value = configurationFileFormat.LoggingEnableGuest;
+ Logger.EnableFsAccessLog.Value = configurationFileFormat.LoggingEnableFsAccessLog;
+ Logger.FilteredClasses.Value = configurationFileFormat.LoggingFilteredClasses;
+ Logger.GraphicsDebugLevel.Value = configurationFileFormat.LoggingGraphicsDebugLevel;
+ System.Language.Value = configurationFileFormat.SystemLanguage;
+ System.Region.Value = configurationFileFormat.SystemRegion;
+ System.TimeZone.Value = configurationFileFormat.SystemTimeZone;
+ System.SystemTimeOffset.Value = configurationFileFormat.SystemTimeOffset;
+ System.EnableDockedMode.Value = configurationFileFormat.DockedMode;
+ EnableDiscordIntegration.Value = configurationFileFormat.EnableDiscordIntegration;
+ CheckUpdatesOnStart.Value = configurationFileFormat.CheckUpdatesOnStart;
+ ShowConfirmExit.Value = configurationFileFormat.ShowConfirmExit;
+ HideCursor.Value = configurationFileFormat.HideCursor;
+ Graphics.EnableVsync.Value = configurationFileFormat.EnableVsync;
+ Graphics.EnableShaderCache.Value = configurationFileFormat.EnableShaderCache;
Graphics.EnableTextureRecompression.Value = configurationFileFormat.EnableTextureRecompression;
- Graphics.EnableMacroHLE.Value = configurationFileFormat.EnableMacroHLE;
- System.EnablePtc.Value = configurationFileFormat.EnablePtc;
- System.EnableInternetAccess.Value = configurationFileFormat.EnableInternetAccess;
- System.EnableFsIntegrityChecks.Value = configurationFileFormat.EnableFsIntegrityChecks;
- System.FsGlobalAccessLogMode.Value = configurationFileFormat.FsGlobalAccessLogMode;
- System.AudioBackend.Value = configurationFileFormat.AudioBackend;
- System.AudioVolume.Value = configurationFileFormat.AudioVolume;
- System.MemoryManagerMode.Value = configurationFileFormat.MemoryManagerMode;
- System.ExpandRam.Value = configurationFileFormat.ExpandRam;
- System.IgnoreMissingServices.Value = configurationFileFormat.IgnoreMissingServices;
- System.UseHypervisor.Value = configurationFileFormat.UseHypervisor;
- Ui.GuiColumns.FavColumn.Value = configurationFileFormat.GuiColumns.FavColumn;
- Ui.GuiColumns.IconColumn.Value = configurationFileFormat.GuiColumns.IconColumn;
- Ui.GuiColumns.AppColumn.Value = configurationFileFormat.GuiColumns.AppColumn;
- Ui.GuiColumns.DevColumn.Value = configurationFileFormat.GuiColumns.DevColumn;
- Ui.GuiColumns.VersionColumn.Value = configurationFileFormat.GuiColumns.VersionColumn;
- Ui.GuiColumns.TimePlayedColumn.Value = configurationFileFormat.GuiColumns.TimePlayedColumn;
- Ui.GuiColumns.LastPlayedColumn.Value = configurationFileFormat.GuiColumns.LastPlayedColumn;
- Ui.GuiColumns.FileExtColumn.Value = configurationFileFormat.GuiColumns.FileExtColumn;
- Ui.GuiColumns.FileSizeColumn.Value = configurationFileFormat.GuiColumns.FileSizeColumn;
- Ui.GuiColumns.PathColumn.Value = configurationFileFormat.GuiColumns.PathColumn;
- Ui.ColumnSort.SortColumnId.Value = configurationFileFormat.ColumnSort.SortColumnId;
- Ui.ColumnSort.SortAscending.Value = configurationFileFormat.ColumnSort.SortAscending;
- Ui.GameDirs.Value = configurationFileFormat.GameDirs;
- Ui.ShownFileTypes.NSP.Value = configurationFileFormat.ShownFileTypes.NSP;
- Ui.ShownFileTypes.PFS0.Value = configurationFileFormat.ShownFileTypes.PFS0;
- Ui.ShownFileTypes.XCI.Value = configurationFileFormat.ShownFileTypes.XCI;
- Ui.ShownFileTypes.NCA.Value = configurationFileFormat.ShownFileTypes.NCA;
- Ui.ShownFileTypes.NRO.Value = configurationFileFormat.ShownFileTypes.NRO;
- Ui.ShownFileTypes.NSO.Value = configurationFileFormat.ShownFileTypes.NSO;
- Ui.EnableCustomTheme.Value = configurationFileFormat.EnableCustomTheme;
- Ui.LanguageCode.Value = configurationFileFormat.LanguageCode;
- Ui.CustomThemePath.Value = configurationFileFormat.CustomThemePath;
- Ui.BaseStyle.Value = configurationFileFormat.BaseStyle;
- Ui.GameListViewMode.Value = configurationFileFormat.GameListViewMode;
- Ui.ShowNames.Value = configurationFileFormat.ShowNames;
- Ui.IsAscendingOrder.Value = configurationFileFormat.IsAscendingOrder;
- Ui.GridSize.Value = configurationFileFormat.GridSize;
- Ui.ApplicationSort.Value = configurationFileFormat.ApplicationSort;
- Ui.StartFullscreen.Value = configurationFileFormat.StartFullscreen;
- Ui.ShowConsole.Value = configurationFileFormat.ShowConsole;
- Ui.WindowStartup.WindowSizeWidth.Value = configurationFileFormat.WindowStartup.WindowSizeWidth;
- Ui.WindowStartup.WindowSizeHeight.Value = configurationFileFormat.WindowStartup.WindowSizeHeight;
- Ui.WindowStartup.WindowPositionX.Value = configurationFileFormat.WindowStartup.WindowPositionX;
- Ui.WindowStartup.WindowPositionY.Value = configurationFileFormat.WindowStartup.WindowPositionY;
- Ui.WindowStartup.WindowMaximized.Value = configurationFileFormat.WindowStartup.WindowMaximized;
- Hid.EnableKeyboard.Value = configurationFileFormat.EnableKeyboard;
- Hid.EnableMouse.Value = configurationFileFormat.EnableMouse;
- Hid.Hotkeys.Value = configurationFileFormat.Hotkeys;
- Hid.InputConfig.Value = configurationFileFormat.InputConfig;
+ Graphics.EnableMacroHLE.Value = configurationFileFormat.EnableMacroHLE;
+ System.EnablePtc.Value = configurationFileFormat.EnablePtc;
+ System.EnableInternetAccess.Value = configurationFileFormat.EnableInternetAccess;
+ System.EnableFsIntegrityChecks.Value = configurationFileFormat.EnableFsIntegrityChecks;
+ System.FsGlobalAccessLogMode.Value = configurationFileFormat.FsGlobalAccessLogMode;
+ System.AudioBackend.Value = configurationFileFormat.AudioBackend;
+ System.AudioVolume.Value = configurationFileFormat.AudioVolume;
+ System.MemoryManagerMode.Value = configurationFileFormat.MemoryManagerMode;
+ System.ExpandRam.Value = configurationFileFormat.ExpandRam;
+ System.IgnoreMissingServices.Value = configurationFileFormat.IgnoreMissingServices;
+ System.UseHypervisor.Value = configurationFileFormat.UseHypervisor;
+ Ui.GuiColumns.FavColumn.Value = configurationFileFormat.GuiColumns.FavColumn;
+ Ui.GuiColumns.IconColumn.Value = configurationFileFormat.GuiColumns.IconColumn;
+ Ui.GuiColumns.AppColumn.Value = configurationFileFormat.GuiColumns.AppColumn;
+ Ui.GuiColumns.DevColumn.Value = configurationFileFormat.GuiColumns.DevColumn;
+ Ui.GuiColumns.VersionColumn.Value = configurationFileFormat.GuiColumns.VersionColumn;
+ Ui.GuiColumns.TimePlayedColumn.Value = configurationFileFormat.GuiColumns.TimePlayedColumn;
+ Ui.GuiColumns.LastPlayedColumn.Value = configurationFileFormat.GuiColumns.LastPlayedColumn;
+ Ui.GuiColumns.FileExtColumn.Value = configurationFileFormat.GuiColumns.FileExtColumn;
+ Ui.GuiColumns.FileSizeColumn.Value = configurationFileFormat.GuiColumns.FileSizeColumn;
+ Ui.GuiColumns.PathColumn.Value = configurationFileFormat.GuiColumns.PathColumn;
+ Ui.ColumnSort.SortColumnId.Value = configurationFileFormat.ColumnSort.SortColumnId;
+ Ui.ColumnSort.SortAscending.Value = configurationFileFormat.ColumnSort.SortAscending;
+ Ui.GameDirs.Value = configurationFileFormat.GameDirs;
+ Ui.ShownFileTypes.NSP.Value = configurationFileFormat.ShownFileTypes.NSP;
+ Ui.ShownFileTypes.PFS0.Value = configurationFileFormat.ShownFileTypes.PFS0;
+ Ui.ShownFileTypes.XCI.Value = configurationFileFormat.ShownFileTypes.XCI;
+ Ui.ShownFileTypes.NCA.Value = configurationFileFormat.ShownFileTypes.NCA;
+ Ui.ShownFileTypes.NRO.Value = configurationFileFormat.ShownFileTypes.NRO;
+ Ui.ShownFileTypes.NSO.Value = configurationFileFormat.ShownFileTypes.NSO;
+ Ui.EnableCustomTheme.Value = configurationFileFormat.EnableCustomTheme;
+ Ui.LanguageCode.Value = configurationFileFormat.LanguageCode;
+ Ui.CustomThemePath.Value = configurationFileFormat.CustomThemePath;
+ Ui.BaseStyle.Value = configurationFileFormat.BaseStyle;
+ Ui.GameListViewMode.Value = configurationFileFormat.GameListViewMode;
+ Ui.ShowNames.Value = configurationFileFormat.ShowNames;
+ Ui.IsAscendingOrder.Value = configurationFileFormat.IsAscendingOrder;
+ Ui.GridSize.Value = configurationFileFormat.GridSize;
+ Ui.ApplicationSort.Value = configurationFileFormat.ApplicationSort;
+ Ui.StartFullscreen.Value = configurationFileFormat.StartFullscreen;
+ Ui.ShowConsole.Value = configurationFileFormat.ShowConsole;
+ Ui.WindowStartup.WindowSizeWidth.Value = configurationFileFormat.WindowStartup.WindowSizeWidth;
+ Ui.WindowStartup.WindowSizeHeight.Value = configurationFileFormat.WindowStartup.WindowSizeHeight;
+ Ui.WindowStartup.WindowPositionX.Value = configurationFileFormat.WindowStartup.WindowPositionX;
+ Ui.WindowStartup.WindowPositionY.Value = configurationFileFormat.WindowStartup.WindowPositionY;
+ Ui.WindowStartup.WindowMaximized.Value = configurationFileFormat.WindowStartup.WindowMaximized;
+ Hid.EnableKeyboard.Value = configurationFileFormat.EnableKeyboard;
+ Hid.EnableMouse.Value = configurationFileFormat.EnableMouse;
+ Hid.Hotkeys.Value = configurationFileFormat.Hotkeys;
+ Hid.InputConfig.Value = configurationFileFormat.InputConfig;
if (Hid.InputConfig.Value == null)
{
@@ -1499,7 +1493,7 @@ namespace Ryujinx.Ui.Common.Configuration
return result;
}
- private static void LogValueChange<T>(object sender, ReactiveEventArgs<T> eventArgs, string valueName)
+ private static void LogValueChange<T>(ReactiveEventArgs<T> eventArgs, string valueName)
{
Ryujinx.Common.Logging.Logger.Info?.Print(LogClass.Configuration, $"{valueName} set to: {eventArgs.NewValue}");
}