refactoring
This commit is contained in:
parent
96880543ca
commit
6a46df98a1
|
@ -99,7 +99,7 @@ public class ConfigDefinition {
|
|||
needZeroInit = Boolean.parseBoolean(args[i + 1]);
|
||||
break;
|
||||
case KEY_WITH_C_DEFINES:
|
||||
state.withC_Defines = Boolean.parseBoolean(args[i + 1]);
|
||||
state.setWithC_Defines(Boolean.parseBoolean(args[i + 1]));
|
||||
break;
|
||||
case KEY_C_DEFINES:
|
||||
destCDefinesFileName = args[i + 1];
|
||||
|
|
|
@ -42,13 +42,17 @@ public class ReaderState {
|
|||
// well, technically those should be a builder for state, not this state class itself
|
||||
public String tsFileOutputName = "rusefi.ini";
|
||||
String definitionInputFile = null;
|
||||
public boolean withC_Defines = true;
|
||||
private boolean withC_Defines = true;
|
||||
List<String> prependFiles = new ArrayList<>();
|
||||
List<ConfigurationConsumer> destinations = new ArrayList<>();
|
||||
|
||||
public final EnumsReader enumsReader = new EnumsReader();
|
||||
public final VariableRegistry variableRegistry = new VariableRegistry();
|
||||
|
||||
public void setWithC_Defines(boolean withC_Defines) {
|
||||
this.withC_Defines = withC_Defines;
|
||||
}
|
||||
|
||||
private static void handleBitLine(ReaderState state, String line) {
|
||||
line = line.substring(BIT.length() + 1).trim();
|
||||
|
||||
|
|
|
@ -102,7 +102,7 @@ public class LiveDataProcessor {
|
|||
|
||||
ReaderState state = new ReaderState();
|
||||
state.setDefinitionInputFile(folder + File.separator + name + ".txt");
|
||||
state.withC_Defines = withCDefines;
|
||||
state.setWithC_Defines(withCDefines);
|
||||
|
||||
state.addDestination(javaSensorsConsumer,
|
||||
outputsSections,
|
||||
|
|
Loading…
Reference in New Issue