|
@@ -1500,7 +1500,7 @@ namespace Ryujinx.UI.Common.Configuration
|
|
|
{
|
|
{
|
|
|
Ryujinx.Common.Logging.Logger.Warning?.Print(LogClass.Application, $"Outdated configuration version {configurationFileFormat.Version}, migrating to version 52.");
|
|
Ryujinx.Common.Logging.Logger.Warning?.Print(LogClass.Application, $"Outdated configuration version {configurationFileFormat.Version}, migrating to version 52.");
|
|
|
|
|
|
|
|
- configurationFileFormat.AutoloadDirs = new();
|
|
|
|
|
|
|
+ configurationFileFormat.AutoloadDirs = [];
|
|
|
|
|
|
|
|
configurationFileUpdated = true;
|
|
configurationFileUpdated = true;
|
|
|
}
|
|
}
|
|
@@ -1585,7 +1585,7 @@ namespace Ryujinx.UI.Common.Configuration
|
|
|
UI.ColumnSort.SortColumnId.Value = configurationFileFormat.ColumnSort.SortColumnId;
|
|
UI.ColumnSort.SortColumnId.Value = configurationFileFormat.ColumnSort.SortColumnId;
|
|
|
UI.ColumnSort.SortAscending.Value = configurationFileFormat.ColumnSort.SortAscending;
|
|
UI.ColumnSort.SortAscending.Value = configurationFileFormat.ColumnSort.SortAscending;
|
|
|
UI.GameDirs.Value = configurationFileFormat.GameDirs;
|
|
UI.GameDirs.Value = configurationFileFormat.GameDirs;
|
|
|
- UI.AutoloadDirs.Value = configurationFileFormat.AutoloadDirs;
|
|
|
|
|
|
|
+ UI.AutoloadDirs.Value = configurationFileFormat.AutoloadDirs ?? [];
|
|
|
UI.ShownFileTypes.NSP.Value = configurationFileFormat.ShownFileTypes.NSP;
|
|
UI.ShownFileTypes.NSP.Value = configurationFileFormat.ShownFileTypes.NSP;
|
|
|
UI.ShownFileTypes.PFS0.Value = configurationFileFormat.ShownFileTypes.PFS0;
|
|
UI.ShownFileTypes.PFS0.Value = configurationFileFormat.ShownFileTypes.PFS0;
|
|
|
UI.ShownFileTypes.XCI.Value = configurationFileFormat.ShownFileTypes.XCI;
|
|
UI.ShownFileTypes.XCI.Value = configurationFileFormat.ShownFileTypes.XCI;
|
|
@@ -1611,12 +1611,7 @@ namespace Ryujinx.UI.Common.Configuration
|
|
|
Hid.EnableKeyboard.Value = configurationFileFormat.EnableKeyboard;
|
|
Hid.EnableKeyboard.Value = configurationFileFormat.EnableKeyboard;
|
|
|
Hid.EnableMouse.Value = configurationFileFormat.EnableMouse;
|
|
Hid.EnableMouse.Value = configurationFileFormat.EnableMouse;
|
|
|
Hid.Hotkeys.Value = configurationFileFormat.Hotkeys;
|
|
Hid.Hotkeys.Value = configurationFileFormat.Hotkeys;
|
|
|
- Hid.InputConfig.Value = configurationFileFormat.InputConfig;
|
|
|
|
|
-
|
|
|
|
|
- if (Hid.InputConfig.Value == null)
|
|
|
|
|
- {
|
|
|
|
|
- Hid.InputConfig.Value = new List<InputConfig>();
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ Hid.InputConfig.Value = configurationFileFormat.InputConfig ?? [];
|
|
|
|
|
|
|
|
Multiplayer.LanInterfaceId.Value = configurationFileFormat.MultiplayerLanInterfaceId;
|
|
Multiplayer.LanInterfaceId.Value = configurationFileFormat.MultiplayerLanInterfaceId;
|
|
|
Multiplayer.Mode.Value = configurationFileFormat.MultiplayerMode;
|
|
Multiplayer.Mode.Value = configurationFileFormat.MultiplayerMode;
|