ocvm icon indicating copy to clipboard operation
ocvm copied to clipboard

component.drive.readByte(-1) and component.drive.writeByte(-1) cause crash the emulator

Open FoxieFlakey opened this issue 5 years ago • 0 comments

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"

FoxieFlakey avatar Jul 22 '20 03:07 FoxieFlakey