private void ReloadIfValidPac(string file, CustomSSSCodeset sssIfOtherFileValid = null) { ResourceNode node = NodeFactory.FromFile(null, file); ResourceNode p1icon = node.FindChild("MenSelmapCursorPly.1", true); BRRESNode candidate = (p1icon != null) ? p1icon.Parent.Parent as BRRESNode : null; if (candidate == null) { MessageBox.Show(this, "No SSS icons were found in the selected file.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } else { if (md80 != null) { md80.Dispose(); } md80 = candidate; sss = sssIfOtherFileValid ?? sss; ReloadData(); } }