diff --git a/js/components/util/files.ts b/js/components/util/files.ts index 0f05829..e9eb00c 100644 --- a/js/components/util/files.ts +++ b/js/components/util/files.ts @@ -11,9 +11,9 @@ import { JSONDisk, MassStorage, } from 'js/formats/types'; +import { HttpBlockDisk } from 'js/formats/http_block_disk'; import { includes, word } from 'js/types'; import { initGamepad } from 'js/ui/gamepad'; -import { HttpBlockDisk } from './http_block_disk'; type ProgressCallback = (current: number, total: number) => void; diff --git a/js/components/util/http_block_disk.ts b/js/formats/http_block_disk.ts similarity index 99% rename from js/components/util/http_block_disk.ts rename to js/formats/http_block_disk.ts index bd804fb..8f03dbb 100644 --- a/js/components/util/http_block_disk.ts +++ b/js/formats/http_block_disk.ts @@ -61,7 +61,7 @@ export class HttpBlockDisk implements BlockDisk { } async read(blockNumber: number): Promise { - const blockShift = 5; + const blockShift = 6; if (!this.blocks[blockNumber]) { const fetchBlock = blockNumber >> blockShift; const deferred = this.fetchMap[fetchBlock]; diff --git a/js/ui/apple2.ts b/js/ui/apple2.ts index 406dd3a..9d97609 100644 --- a/js/ui/apple2.ts +++ b/js/ui/apple2.ts @@ -38,7 +38,7 @@ import { Screen, SCREEN_FULL_PAGE } from './screen'; import { JoyStick } from './joystick'; import { System } from './system'; import { Options } from '../options'; -import { HttpBlockDisk } from 'js/components/util/http_block_disk'; +import { HttpBlockDisk } from 'js/formats/http_block_disk'; let paused = false;