ocvm
ocvm copied to clipboard
component.drive.readByte(-1) and component.drive.writeByte(-1) cause crash the emulator
This doesn't resemble the OpenComputer it should send error to the Guest OS (Or OpenOS) instead of crashing the VM usually in OpenComputer it output lua error not C/C++ aborted error
The output when using component.drive.readByte(-1) https://imgur.com/6wk6YoX.png
The output when using component.drive.writeByte(-1) https://imgur.com/gmWfGGb.png
Can someone fix this instead of crashing the VM/Emulator just throw lua error to the Guest OS (Or OpenOS) and component.drive.readSector(-1) and component.writeSector(-1, "") are fine showing "invalid offset not in usable sector"