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