Reverts some changes

This commit is contained in:
Maël Nison 2025-09-29 10:24:38 +02:00 committed by Fabian
parent 9b2e65166f
commit 946819902b

49
v86.d.ts vendored
View file

@ -35,7 +35,7 @@ export type V86Image =
//| { buffer: File; async?: boolean; }; // only in browsers: https://developer.mozilla.org/en-US/docs/Web/API/File //| { buffer: File; async?: boolean; }; // only in browsers: https://developer.mozilla.org/en-US/docs/Web/API/File
| { buffer: ArrayBuffer }; | { buffer: ArrayBuffer };
export const enum LogLevel { export enum LogLevel {
LOG_ALL = -1, LOG_ALL = -1,
LOG_NONE = 0, LOG_NONE = 0,
LOG_OTHER = 0x000001, LOG_OTHER = 0x000001,
@ -64,7 +64,7 @@ export const enum LogLevel {
LOG_SB16 = 0x800000, LOG_SB16 = 0x800000,
} }
export const enum BootOrder { export enum BootOrder {
AUTO = 0, AUTO = 0,
CD_FLOPPY_HARDDISK = 0x213, CD_FLOPPY_HARDDISK = 0x213,
CD_HARDDISK_FLOPPY = 0x123, CD_HARDDISK_FLOPPY = 0x123,
@ -73,29 +73,28 @@ export const enum BootOrder {
HARDDISK_CD_FLOPPY = 0x132, HARDDISK_CD_FLOPPY = 0x132,
} }
export const enum Event { export type Event =
FS_ATTACH = "9p-attach", | "9p-attach"
FS_READ_END = "9p-read-end", | "9p-read-end"
FS_READ_START = "9p-read-start", | "9p-read-start"
FS_WRITE_END = "9p-write-end", | "9p-write-end"
DOWNLOAD_ERROR = "download-error", | "download-error"
DOWNLOAD_PROGRESS = "download-progress", | "download-progress"
EMULATOR_LOADED = "emulator-loaded", | "emulator-loaded"
EMULATOR_READY = "emulator-ready", | "emulator-ready"
EMULATOR_STARTED = "emulator-started", | "emulator-started"
EMULATOR_STOPPED = "emulator-stopped", | "emulator-stopped"
ETH_RECEIVE_END = "eth-receive-end", | "eth-receive-end"
ETH_TRANSMIT_END = "eth-transmit-end", | "eth-transmit-end"
IDE_READ_END = "ide-read-end", | "ide-read-end"
IDE_READ_START = "ide-read-start", | "ide-read-start"
IDE_WRITE_END = "ide-write-end", | "ide-write-end"
MOUSE_ENABLE = "mouse-enable", | "mouse-enable"
NET0_SEND = "net0-send", | "net0-send"
SCREEN_PUT_CHAR = "screen-put-char", | "screen-put-char"
SCREEN_SET_SIZE = "screen-set-size", | "screen-set-size"
SERIAL0_OUTPUT_BYTE = "serial0-output-byte", | "serial0-output-byte"
VIRTIO_CONSOLE0_OUTPUT_BYTES = "virtio-console0-output-bytes", | "virtio-console0-output-bytes";
}
/** /**
* emulator instance constructor options. * emulator instance constructor options.