mirror of
https://github.com/whscullin/apple2js.git
synced 2024-01-12 14:14:38 +00:00
5e224006e4
Before, the `drives` field was an `array[0..1]` of `Drive`, but all of the methods took a `DriveNumber`, which was `[1..2]`. This meant that code everywhere was always subtracting 1 from the drive number. Now, `drives` is a `Record<DriveNumber, Drive>`, which means tha it has indexes `1, 2` and there's no need to subtract 1 everywhere. This change updates the `DiskII` class and its tests. The motivation for this change is to slowly split the WOZ disk implementation from the nibble disk implementation. I've tried twice, but the change has always grown too big and hairy, so I'm starting very small this time and working my way up. |
||
---|---|---|
.. | ||
__image_snapshots__ | ||
__mocks__ | ||
applesoft | ||
cards | ||
formats | ||
ui | ||
base64.test.ts | ||
canvas.test.ts | ||
debugger.spec.ts | ||
gl.test.ts | ||
rom.test.ts | ||
util.test.ts |