Skip to content
Snippets Groups Projects
Verified Commit 907c0de7 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

refactor: small code refactor

parent 6f1e67d1
No related branches found
No related tags found
No related merge requests found
Pipeline #1739 passed
......@@ -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[] {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment