From b13d4ff02825abc4d19f4f87331f93667a77f1ea Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com>
Date: Sat, 8 Oct 2022 19:39:43 +0100
Subject: [PATCH] feat: more interface changes

---
 examples/web/index.ts      | 12 ++++++++++++
 examples/web/react/app.tsx |  9 ++++++---
 2 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/examples/web/index.ts b/examples/web/index.ts
index e2799249..6839cae2 100644
--- a/examples/web/index.ts
+++ b/examples/web/index.ts
@@ -983,6 +983,18 @@ class GameboyEmulator implements Emulator {
         this.start({ engine: null });
     }
 
+    name() {
+        return "Boytacean";
+    }
+
+    version() {
+        return info.version;
+    }
+
+    versionUrl() {
+        return "https://gitlab.stage.hive.pt/joamag/boytacean/-/blob/master/CHANGELOG.md"";
+    }
+
     toggleWindow() {
         this.maximize();
     }
diff --git a/examples/web/react/app.tsx b/examples/web/react/app.tsx
index 95f5f3d1..5cf547a1 100644
--- a/examples/web/react/app.tsx
+++ b/examples/web/react/app.tsx
@@ -20,6 +20,9 @@ import "./app.css";
 
 export interface Emulator {
     reset(): void;
+    name(): string;
+    version(): string;
+    versionUrl(): string;
 }
 
 type AppProps = {
@@ -52,9 +55,9 @@ export const App: FC<AppProps> = ({ emulator, backgrounds = ["264653"] }) => {
             </Footer>
             <PanelSplit left={<div>This is the left panel</div>}>
                 <Title
-                    text="Boytacean"
-                    version="0.3.0"
-                    versionUrl="https://gitlab.stage.hive.pt/joamag/boytacean/-/blob/master/CHANGELOG.md"
+                    text={emulator.name()}
+                    version={emulator.version()}
+                    versionUrl={emulator.versionUrl()}
                     iconSrc={require("../res/thunder.png")}
                 ></Title>
                 <Section>
-- 
GitLab