mirror of
https://github.com/aNNiMON/Own-Programming-Language-Tutorial.git
synced 2024-09-20 08:44:20 +03:00
Исправление загрузчика ресурсов (#7)
Исправлен путь к внутренним ресурсам
This commit is contained in:
parent
69e1a562fc
commit
b82596cd87
@ -10,7 +10,7 @@ public final class SourceLoader {
|
|||||||
private SourceLoader() { }
|
private SourceLoader() { }
|
||||||
|
|
||||||
public static String readSource(String name) throws IOException {
|
public static String readSource(String name) throws IOException {
|
||||||
InputStream is = SourceLoader.class.getResourceAsStream(name);
|
InputStream is = SourceLoader.class.getResourceAsStream("/" + name);
|
||||||
if (is != null) return readAndCloseStream(is);
|
if (is != null) return readAndCloseStream(is);
|
||||||
|
|
||||||
is = new FileInputStream(name);
|
is = new FileInputStream(name);
|
||||||
|
Loading…
Reference in New Issue
Block a user