emulators
Version:
Emulators (dos) with standartized API
21 lines (20 loc) • 623 B
TypeScript
import { WasmModule } from "../../impl/modules";
export interface DosArchiveSource {
url: string;
path: string;
type?: "zip";
}
export default class DosBundle {
dosboxConf: string;
jsdosConf: {
version: string;
};
sources: DosArchiveSource[];
private libzipWasm;
constructor(libzipWasm: WasmModule);
autoexec(...lines: string[]): DosBundle;
extract(url: string, path?: string, type?: "zip"): DosBundle;
extractAll(sources: DosArchiveSource[]): DosBundle;
toUint8Array(overwriteConfig?: boolean): Promise<Uint8Array>;
}
export declare const defaultConfig: string;