Whitespace fixes

This commit is contained in:
Vudjun 2024-10-26 22:03:28 +01:00
parent 53e066aab7
commit 3e51a22742
4 changed files with 25 additions and 12 deletions

View File

@ -641,13 +641,26 @@ namespace Ryujinx.Ava.UI.Windows
{ {
switch (fileType) switch (fileType)
{ {
case "NSP": ConfigurationState.Instance.UI.ShownFileTypes.NSP.Toggle(); break; case "NSP":
case "PFS0": ConfigurationState.Instance.UI.ShownFileTypes.PFS0.Toggle(); break; ConfigurationState.Instance.UI.ShownFileTypes.NSP.Toggle();
case "XCI": ConfigurationState.Instance.UI.ShownFileTypes.XCI.Toggle(); break; break;
case "NCA": ConfigurationState.Instance.UI.ShownFileTypes.NCA.Toggle(); break; case "PFS0":
case "NRO": ConfigurationState.Instance.UI.ShownFileTypes.NRO.Toggle(); break; ConfigurationState.Instance.UI.ShownFileTypes.PFS0.Toggle();
case "NSO": ConfigurationState.Instance.UI.ShownFileTypes.NSO.Toggle(); break; break;
default: throw new ArgumentOutOfRangeException(fileType); case "XCI":
ConfigurationState.Instance.UI.ShownFileTypes.XCI.Toggle();
break;
case "NCA":
ConfigurationState.Instance.UI.ShownFileTypes.NCA.Toggle();
break;
case "NRO":
ConfigurationState.Instance.UI.ShownFileTypes.NRO.Toggle();
break;
case "NSO":
ConfigurationState.Instance.UI.ShownFileTypes.NSO.Toggle();
break;
default:
throw new ArgumentOutOfRangeException(fileType);
} }
ConfigurationState.Instance.ToFileFormat().SaveConfig(Program.ConfigurationPath); ConfigurationState.Instance.ToFileFormat().SaveConfig(Program.ConfigurationPath);