Closed iflan closed 3 years ago
This is mostly a straightforward conversion of cards/disk2.js to Typescript, with the following exceptions:
cards/disk2.js
setState() did not restore the drive light state correctly because the callback was called with the old on value.
setState()
on
setPhase() did not work for WOZ images.
setPhase()
getBinary() did not work for nib files.
getBinary()
nib
getBase64() did not work for nib files and maybe didn't work right at all.
getBase64()
Even with these fixes, local storage still doesn't work correctly.
I have also added several TODOs where methods don't support WOZ disks.
This is mostly a straightforward conversion of
cards/disk2.js
to Typescript, with the following exceptions:setState()
did not restore the drive light state correctly because the callback was called with the oldon
value.setPhase()
did not work for WOZ images.getBinary()
did not work fornib
files.getBase64()
did not work fornib
files and maybe didn't work right at all.Even with these fixes, local storage still doesn't work correctly.
I have also added several TODOs where methods don't support WOZ disks.