@@ -17,6 +17,7 @@ public class Algo : SubConfigClass
17
17
public string UsePassword ;
18
18
public double BenchmarkSpeed ;
19
19
public bool Skip ;
20
+ public bool [ ] DisabledDevices ;
20
21
#pragma warning restore 649
21
22
}
22
23
@@ -27,6 +28,7 @@ public class Group : SubConfigClass
27
28
public int APIBindPort ;
28
29
public string ExtraLaunchParameters ;
29
30
public string UsePassword ;
31
+ public double MinimumProfit ;
30
32
public int [ ] DisabledDevices ;
31
33
public Algo [ ] Algorithms ;
32
34
#pragma warning restore 649
@@ -73,6 +75,9 @@ public class Config
73
75
public int LogLevel ;
74
76
public long LogMaxFileSize ; // in bytes
75
77
public bool ShowDriverVersionWarning ;
78
+ public bool DisableWindowsErrorReporting ;
79
+ public bool UseNewSettingsPage ;
80
+ public bool NVIDIAP0State ;
76
81
public Group [ ] Groups ;
77
82
#pragma warning restore 649
78
83
@@ -104,6 +109,9 @@ static Config()
104
109
ConfigData . LogLevel = 1 ;
105
110
ConfigData . LogMaxFileSize = 1048576 ;
106
111
ConfigData . ShowDriverVersionWarning = true ;
112
+ ConfigData . DisableWindowsErrorReporting = false ;
113
+ ConfigData . UseNewSettingsPage = true ;
114
+ ConfigData . NVIDIAP0State = false ;
107
115
108
116
try { ConfigData = JsonConvert . DeserializeObject < Config > ( File . ReadAllText ( "config.json" ) ) ; }
109
117
catch { }
@@ -151,6 +159,7 @@ public static void RebuildGroups()
151
159
CG [ i ] . APIBindPort = Form1 . Miners [ i ] . APIPort ;
152
160
CG [ i ] . ExtraLaunchParameters = Form1 . Miners [ i ] . ExtraLaunchParameters ;
153
161
CG [ i ] . UsePassword = Form1 . Miners [ i ] . UsePassword ;
162
+ CG [ i ] . MinimumProfit = Form1 . Miners [ i ] . MinimumProfit ;
154
163
CG [ i ] . Algorithms = new Algo [ Form1 . Miners [ i ] . SupportedAlgorithms . Length ] ;
155
164
for ( int k = 0 ; k < Form1 . Miners [ i ] . SupportedAlgorithms . Length ; k ++ )
156
165
{
@@ -160,6 +169,12 @@ public static void RebuildGroups()
160
169
CG [ i ] . Algorithms [ k ] . ExtraLaunchParameters = Form1 . Miners [ i ] . SupportedAlgorithms [ k ] . ExtraLaunchParameters ;
161
170
CG [ i ] . Algorithms [ k ] . UsePassword = Form1 . Miners [ i ] . SupportedAlgorithms [ k ] . UsePassword ;
162
171
CG [ i ] . Algorithms [ k ] . Skip = Form1 . Miners [ i ] . SupportedAlgorithms [ k ] . Skip ;
172
+
173
+ CG [ i ] . Algorithms [ k ] . DisabledDevices = new bool [ Form1 . Miners [ i ] . CDevs . Count ] ;
174
+ for ( int j = 0 ; j < Form1 . Miners [ i ] . CDevs . Count ; j ++ )
175
+ {
176
+ CG [ i ] . Algorithms [ k ] . DisabledDevices [ j ] = Form1 . Miners [ i ] . SupportedAlgorithms [ k ] . DisabledDevice [ j ] ;
177
+ }
163
178
}
164
179
List < int > DD = new List < int > ( ) ;
165
180
for ( int k = 0 ; k < Form1 . Miners [ i ] . CDevs . Count ; k ++ )
0 commit comments