mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
JavaScript: fix filesystem issue
This commit is contained in:
parent
91de1f6ca7
commit
c8676f7ffe
|
@ -53,6 +53,10 @@ public class InMemoryVirtualFile extends AbstractInMemoryVirtualFile {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (writable && readOnly) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return new VirtualFileAccessor() {
|
return new VirtualFileAccessor() {
|
||||||
@Override
|
@Override
|
||||||
public int read(int pos, byte[] buffer, int offset, int limit) {
|
public int read(int pos, byte[] buffer, int offset, int limit) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user