Skip to content

Commit b53ec90

Browse files
committed
Move HttpBlockDisk to formats
1 parent a7ce79e commit b53ec90

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

js/components/util/files.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import {
1111
JSONDisk,
1212
MassStorage,
1313
} from 'js/formats/types';
14+
import { HttpBlockDisk } from 'js/formats/http_block_disk';
1415
import { includes, word } from 'js/types';
1516
import { initGamepad } from 'js/ui/gamepad';
16-
import { HttpBlockDisk } from './http_block_disk';
1717

1818
type ProgressCallback = (current: number, total: number) => void;
1919

js/components/util/http_block_disk.ts js/formats/http_block_disk.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class HttpBlockDisk implements BlockDisk {
6161
}
6262

6363
async read(blockNumber: number): Promise<Uint8Array> {
64-
const blockShift = 5;
64+
const blockShift = 6;
6565
if (!this.blocks[blockNumber]) {
6666
const fetchBlock = blockNumber >> blockShift;
6767
const deferred = this.fetchMap[fetchBlock];

js/ui/apple2.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import { Screen, SCREEN_FULL_PAGE } from './screen';
3838
import { JoyStick } from './joystick';
3939
import { System } from './system';
4040
import { Options } from '../options';
41-
import { HttpBlockDisk } from 'js/components/util/http_block_disk';
41+
import { HttpBlockDisk } from 'js/formats/http_block_disk';
4242

4343
let paused = false;
4444

0 commit comments

Comments
 (0)