@@ -16,6 +16,7 @@ public class Component : Category
1616 public string URL { get ; set ; }
1717 public string Hash { get ; set ; }
1818 public long Size { get ; set ; }
19+ public string Path { get ; set ; }
1920 public string [ ] Depends { get ; set ; } = new string [ ] { } ;
2021
2122 public Component ( XmlNode node ) : base ( node )
@@ -77,6 +78,10 @@ public Component(XmlNode node) : base(node)
7778 Environment . Exit ( 1 ) ;
7879 }
7980
81+ // Path
82+
83+ Path = GetAttribute ( node , "path" , false ) ;
84+
8085 // Depends
8186
8287 string depends = GetAttribute ( node , "depends" , false ) ;
@@ -116,7 +121,7 @@ public Category(XmlNode node)
116121
117122 Title = GetAttribute ( node , "title" , true ) ;
118123 Description = GetAttribute ( node , "description" , true ) ;
119- Required = ID . StartsWith ( "required " ) ;
124+ Required = ID . StartsWith ( "core " ) ;
120125 }
121126
122127 protected static string GetAttribute ( XmlNode node , string attribute , bool throwError )
@@ -168,9 +173,6 @@ public static string SourcePath2
168173 set { Main . SourcePath2 . Text = value ; }
169174 }
170175
171- // Path to launcher executable based on selection
172- public static string LauncherPath { get ; set ; } = "" ;
173-
174176 // Flag to control how operation window will function
175177 // 0 is for downloading Flashpoint
176178 // 1 is for adding/removing components
@@ -251,7 +253,7 @@ public static TreeNode AddNodeToList(XmlNode child, TreeNodeCollection parent, b
251253 listNode . Text = component . Title ;
252254 listNode . Name = component . ID ;
253255
254- if ( component . ID . StartsWith ( "required" ) )
256+ if ( component . Required )
255257 {
256258 listNode . ForeColor = Color . FromArgb ( 255 , 96 , 96 , 96 ) ;
257259 }
@@ -265,7 +267,7 @@ public static TreeNode AddNodeToList(XmlNode child, TreeNodeCollection parent, b
265267 listNode . Text = category . Title ;
266268 listNode . Name = category . ID ;
267269
268- if ( category . ID . StartsWith ( "required" ) )
270+ if ( category . Required )
269271 {
270272 listNode . ForeColor = Color . FromArgb ( 255 , 96 , 96 , 96 ) ;
271273 }
0 commit comments