Closed ExDomino closed 6 years ago
http://ocdoc.cil.li/component:eeprom
see makeReadonly
if readonly, set
and setLabel
cannot be modified, though setData
can
there is currently no way, short of trying to use set
or setLabel
, to determine if the eeprom is ro
And to make Lua Eeeprom (made from crafted eeprom and manual) readonly by default?
Eh, that might cause confusion though...
OpenOS floppy disks are already readonly.
we're not going to change the default, and there is a workaround to detect isReadonly (That is: eeprom.set(eeeprom.get()) succeeded if it is rw)
Ok, so keep base floppy disks readonly and base eeeprom not readonly. It's confusing but don't worry, you are the author.
Hello,
I suggest to make that the Lua BIOS eeprom is readonly by default. Also, adding a new method isReadOnly() to see if an eeprom is readonly or not. And a return value for set() that returns the same value of isReadOnly().
Thank you in advance.