only:getReaderState(String boardConfig)
This commit is contained in:
parent
a3b51585b3
commit
453cecd81b
|
@ -23,11 +23,16 @@ public class MetaHelper {
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
static ReaderStateImpl getReaderState() throws IOException {
|
static ReaderStateImpl getReaderState() throws IOException {
|
||||||
|
return getReaderState("tunerstudio/empty_board_options.ini");
|
||||||
|
}
|
||||||
|
|
||||||
|
@NotNull
|
||||||
|
static ReaderStateImpl getReaderState(String boardConfig) throws IOException {
|
||||||
List<String> options = Files.readAllLines(Paths.get(RootHolder.ROOT + "../" + ConfigDefinition.CONFIG_PATH));
|
List<String> options = Files.readAllLines(Paths.get(RootHolder.ROOT + "../" + ConfigDefinition.CONFIG_PATH));
|
||||||
// add default (empty) board config
|
// add default (empty) board config
|
||||||
options.add(ConfigDefinition.READFILE_OPTION);
|
options.add(ConfigDefinition.READFILE_OPTION);
|
||||||
options.add(BoardConfigStrategy.BOARD_CONFIG_FROM_FILE);
|
options.add(BoardConfigStrategy.BOARD_CONFIG_FROM_FILE);
|
||||||
options.add("tunerstudio/empty_board_options.ini");
|
options.add(boardConfig);
|
||||||
|
|
||||||
options.add(ConfigDefinition.READFILE_OPTION);
|
options.add(ConfigDefinition.READFILE_OPTION);
|
||||||
options.add("BOARD_ENGINE_CONFIGURATION_FROM_FILE");
|
options.add("BOARD_ENGINE_CONFIGURATION_FROM_FILE");
|
||||||
|
|
Loading…
Reference in New Issue