apparently console was more broken
This commit is contained in:
parent
ac25b8becc
commit
8bf8b21045
|
@ -6,7 +6,7 @@ import java.net.URL;
|
|||
import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
public class rusEFIVersion {
|
||||
public static final int CONSOLE_VERSION = 20211014;
|
||||
public static final int CONSOLE_VERSION = 20211015;
|
||||
public static AtomicReference<String> firmwareVersion = new AtomicReference<>("N/A");
|
||||
|
||||
public static long classBuildTimeMillis() {
|
||||
|
|
|
@ -106,11 +106,11 @@ public class LiveDataParserPanel {
|
|||
}
|
||||
|
||||
public static String getContent(Class<?> clazz, String fileName) throws IOException, URISyntaxException {
|
||||
URL cpp = clazz.getResource("/c_sources/" + fileName);
|
||||
InputStream cpp = clazz.getResourceAsStream("/c_sources/" + fileName);
|
||||
String line;
|
||||
|
||||
StringBuilder result = new StringBuilder();
|
||||
try (BufferedReader br = new BufferedReader(new FileReader(new File(cpp.toURI())))) {
|
||||
try (BufferedReader br = new BufferedReader(new InputStreamReader(cpp))) {
|
||||
while ((line = br.readLine()) != null) {
|
||||
result.append(line + "\n");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue