@@ -49,12 +49,15 @@ public static void LoadSettings() {
49
49
50
50
//Load IX86 Versioning Settings
51
51
for (int x = 0 ; x < Constants .prods .length ; x ++){
52
- Constants .IX86files [x ][0 ] = Ini .ReadIni (file , Constants .prods [x ] + "-IX86" , "HashPath" , Constants .IX86files [x ][0 ]);
53
- Constants .IX86files [x ][1 ] = Ini .ReadIni (file , Constants .prods [x ] + "-IX86" , "Exe" , Constants .IX86files [x ][1 ]);
54
- Constants .IX86files [x ][2 ] = Ini .ReadIni (file , Constants .prods [x ] + "-IX86" , "Storm" , Constants .IX86files [x ][2 ]);
55
- Constants .IX86files [x ][3 ] = Ini .ReadIni (file , Constants .prods [x ] + "-IX86" , "Network" , Constants .IX86files [x ][3 ]);
56
- Constants .IX86files [x ][4 ] = Ini .ReadIni (file , Constants .prods [x ] + "-IX86" , "Screen" , Constants .IX86files [x ][4 ]);
57
- Constants .IX86verbytes [x ] = Integer .parseInt (Ini .ReadIni (file , Constants .prods [x ] + "-IX86" , "VerByte" , Integer .toHexString (Constants .IX86verbytes [x ])), 16 );
52
+ String header = Constants .prods [x ] + "-IX86" ;
53
+ Constants .IX86files [x ][0 ] = Ini .ReadIni (file , header , "HashPath" , Constants .IX86files [x ][0 ]);
54
+ Constants .IX86files [x ][1 ] = Ini .ReadIni (file , header , "Exe" , Constants .IX86files [x ][1 ]);
55
+ Constants .IX86files [x ][2 ] = Ini .ReadIni (file , header , "Storm" , Constants .IX86files [x ][2 ]);
56
+ Constants .IX86files [x ][3 ] = Ini .ReadIni (file , header , "Network" , Constants .IX86files [x ][3 ]);
57
+ Constants .IX86files [x ][4 ] = Ini .ReadIni (file , header , "Screen" , Constants .IX86files [x ][4 ]);
58
+ Constants .IX86verbytes [x ] = Integer .parseInt (Ini .ReadIni (file , header , "VerByte" , Integer .toHexString (Constants .IX86verbytes [x ])), 16 );
59
+ Constants .IX86versions [x ] = Ini .ReadIni (file , header , "Version" , Constants .IX86versions [x ]);
60
+ Constants .IX86certs [x ] = Ini .ReadIni (file , header , "Cert" , Constants .IX86certs [x ]);
58
61
}
59
62
}
60
63
public static void SaveSettings (){
@@ -94,13 +97,16 @@ public static void SaveSettings(){
94
97
95
98
//Save IX86 Versioning Settings
96
99
for (int x = 0 ; x < Constants .prods .length ; x ++){
97
- Ini .WriteIni (file , Constants .prods [x ] + "-IX86" , "HashPath" , Constants .IX86files [x ][0 ]);
98
- Ini .WriteIni (file , Constants .prods [x ] + "-IX86" , "Exe" , Constants .IX86files [x ][1 ]);
99
- Ini .WriteIni (file , Constants .prods [x ] + "-IX86" , "Storm" , Constants .IX86files [x ][2 ]);
100
- Ini .WriteIni (file , Constants .prods [x ] + "-IX86" , "Network" , Constants .IX86files [x ][3 ]);
101
- Ini .WriteIni (file , Constants .prods [x ] + "-IX86" , "Screen" , Constants .IX86files [x ][4 ]);
102
- Ini .WriteIni (file , Constants .prods [x ] + "-IX86" , "VerByte" ,
100
+ String header = Constants .prods [x ] + "-IX86" ;
101
+ Ini .WriteIni (file , header , "HashPath" , Constants .IX86files [x ][0 ]);
102
+ Ini .WriteIni (file , header , "Exe" , Constants .IX86files [x ][1 ]);
103
+ Ini .WriteIni (file , header , "Storm" , Constants .IX86files [x ][2 ]);
104
+ Ini .WriteIni (file , header , "Network" , Constants .IX86files [x ][3 ]);
105
+ Ini .WriteIni (file , header , "Screen" , Constants .IX86files [x ][4 ]);
106
+ Ini .WriteIni (file , header , "VerByte" ,
103
107
PadString .padString (Integer .toHexString (Constants .IX86verbytes [x ]), 2 , '0' ));
108
+ Ini .WriteIni (file , header , "Version" , Constants .IX86versions [x ]);
109
+ Ini .WriteIni (file , header , "Cert" , Constants .IX86certs [x ]);
104
110
}
105
111
106
112
}
0 commit comments