diff --git a/examples/web/index.ts b/examples/web/index.ts index 6f37cdaace33294439fe8aae2ca413098f85337c..cd5b0100d1a86bd0d4586c210f75ce7f70885288 100644 --- a/examples/web/index.ts +++ b/examples/web/index.ts @@ -891,10 +891,6 @@ class GameboyEmulator extends Observable implements Emulator { span.textContent = "Pause"; } - /** - * Resets the emulator machine to the start state and loads - * the ROM that is currently set in the emulator. - */ reset() { this.boot({ engine: null }); } diff --git a/examples/web/react/app.tsx b/examples/web/react/app.tsx index 3640ebfed80d9e90b3cf20d2eeb897152479ec33..723b29503999db268962174b6e981e03bcd6fe53 100644 --- a/examples/web/react/app.tsx +++ b/examples/web/react/app.tsx @@ -66,8 +66,29 @@ export interface ObservableI { * Should allow typical hardware operations to be performed. */ export interface Emulator extends ObservableI { + /** + * Obtains the descriptive name of the emulator. + * + * @returns The descriptive name of the emulator. + */ getName(): string; + + /** + * Obtains a semantic version string for the current + * version of the emulator. + * + * @returns The semantic version string. + * @see {@link https://semver.org} + */ getVersion(): string; + + /** + * Obtains a URL to the page describing the current version + * of the emulator. + * + * @returns A URL to the page describing the current version + * of the emulator. + */ getVersionUrl(): string; /** @@ -117,6 +138,11 @@ export interface Emulator extends ObservableI { toggleRunning(): void; pause(): void; resume(): void; + + /** + * Resets the emulator machine to the start state and + * re-loads the ROM that is currently set in the emulator. + */ reset(): void; }