mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -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;
|
||||
}
|
||||
|
||||
if (writable && readOnly) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return new VirtualFileAccessor() {
|
||||
@Override
|
||||
public int read(int pos, byte[] buffer, int offset, int limit) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user