From 907c0de7037e8c834db99032a91bdd559463bc6f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com>
Date: Sun, 20 Nov 2022 02:10:43 +0000
Subject: [PATCH] refactor: small code refactor

---
 frontends/web/ts/gb.ts | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/frontends/web/ts/gb.ts b/frontends/web/ts/gb.ts
index 79ceadd8..aed272d6 100644
--- a/frontends/web/ts/gb.ts
+++ b/frontends/web/ts/gb.ts
@@ -8,6 +8,7 @@ import {
     Size
 } from "emukit";
 import { PALETTES, PALETTES_MAP } from "./palettes";
+import { base64ToBuffer, bufferToBase64 } from "./util";
 
 import {
     Cartridge,
@@ -15,9 +16,8 @@ import {
     GameBoy,
     PadKey,
     PpuMode
-} from "../lib/boytacean.js";
+} from "../lib/boytacean";
 import info from "../package.json";
-import { base64ToBuffer, bufferToBase64 } from "./util";
 
 declare const require: any;
 
@@ -384,16 +384,17 @@ export class GameboyEmulator extends EmulatorBase implements Emulator {
             Feature.Palettes,
             Feature.Benchmark,
             Feature.Keyboard,
-            Feature.KeyboardGB
+            Feature.KeyboardGB,
+            Feature.RomTypeInfo
         ];
     }
 
-    get engines() {
+    get engines(): string[] {
         return ["neo"];
     }
 
-    get engine() {
-        return this._engine;
+    get engine(): string {
+        return this._engine || "neo";
     }
 
     get romExts(): string[] {
-- 
GitLab