diff --git a/PCK-Studio/Internal/PckNodeSorter.cs b/PCK-Studio/Internal/PckNodeSorter.cs
index af2390ad..934bc1be 100644
--- a/PCK-Studio/Internal/PckNodeSorter.cs
+++ b/PCK-Studio/Internal/PckNodeSorter.cs
@@ -21,9 +21,9 @@ namespace PckStudio.Internal
public int Compare(object x, object y)
{
- TreeNode tx = x as TreeNode;
- TreeNode ty = y as TreeNode;
- return Compare(tx, ty);
+ if (x is TreeNode tx && y is TreeNode ty)
+ return Compare(tx, ty);
+ return 0;
}
public int Compare(TreeNode x, TreeNode y)
diff --git a/PCK-Studio/MainForm.cs b/PCK-Studio/MainForm.cs
index 82dc8621..5e7a875a 100644
--- a/PCK-Studio/MainForm.cs
+++ b/PCK-Studio/MainForm.cs
@@ -136,7 +136,7 @@ namespace PckStudio
catch (OverflowException ex)
{
MessageBox.Show(this, "Failed to open pck\n" +
- "Try checking the 'Open/Save as Switch/Vita/PS4 pck' checkbox in the upper right corner.",
+ "Try checking the 'Open/Save as Switch/Vita/PS4/Xbox One pck' checkbox in the upper right corner.",
"Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
Debug.WriteLine(ex.Message);
}
@@ -292,7 +292,7 @@ namespace PckStudio
catch (OverflowException ex)
{
MessageBox.Show(this, "Failed to open pck\n" +
- $"Try {(LittleEndianCheckBox.Checked ? "unchecking" : "checking")} the 'Open/Save as Switch/Vita/PS4 pck' check box in the upper right corner.",
+ $"Try {(LittleEndianCheckBox.Checked ? "unchecking" : "checking")} the 'Open/Save as Switch/Vita/PS4/Xbox One pck' check box in the upper right corner.",
"Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
Debug.WriteLine(ex.Message);
}
diff --git a/PCK-Studio/MainForm.resx b/PCK-Studio/MainForm.resx
index 53843773..7f0dec53 100644
--- a/PCK-Studio/MainForm.resx
+++ b/PCK-Studio/MainForm.resx
@@ -5000,7 +5000,7 @@
21
- Open/Save as Switch/Vita/PS4 PCK
+ Open/Save as Switch/Vita/PS4/Xbox One PCK
LittleEndianCheckBox