We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b87d9c commit cbecec1Copy full SHA for cbecec1
1 file changed
FlashpointInstaller/src/Common.cs
@@ -62,13 +62,10 @@ public Component(XmlNode node) : base(node)
62
63
// Size
64
65
- long size;
+ long size = 0;
66
+ string stringSize = GetAttribute(node, "install-size", false);
67
- if (long.TryParse(GetAttribute(node, "install-size", true), out size))
68
- {
69
- Size = size;
70
- }
71
- else
+ if (stringSize != "" && !long.TryParse(stringSize, out size))
72
{
73
MessageBox.Show(
74
"An error occurred while parsing the component list XML. Please alert Flashpoint staff ASAP!\n\n" +
@@ -79,6 +76,8 @@ public Component(XmlNode node) : base(node)
79
76
Environment.Exit(1);
80
77
}
81
78
+ Size = size;
+
82
// Path
83
84
Path = GetAttribute(node, "path", false);
0 commit comments