Skip to content

Commit

Permalink
Move HttpBlockDisk to formats
Browse files Browse the repository at this point in the history
  • Loading branch information
whscullin committed Jan 20, 2025
1 parent a7ce79e commit b53ec90
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/components/util/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class HttpBlockDisk implements BlockDisk {
}

async read(blockNumber: number): Promise<Uint8Array> {
const blockShift = 5;
const blockShift = 6;
if (!this.blocks[blockNumber]) {
const fetchBlock = blockNumber >> blockShift;
const deferred = this.fetchMap[fetchBlock];
Expand Down
2 changes: 1 addition & 1 deletion js/ui/apple2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b53ec90

Please sign in to comment.