From 946819902b7480626c123cfb73a0c038a19a2803 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Nison?= Date: Mon, 29 Sep 2025 10:24:38 +0200 Subject: [PATCH] Reverts some changes --- v86.d.ts | 49 ++++++++++++++++++++++++------------------------- 1 file changed, 24 insertions(+), 25 deletions(-) diff --git a/v86.d.ts b/v86.d.ts index e5234183..3fdaafdc 100644 --- a/v86.d.ts +++ b/v86.d.ts @@ -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.