Hide unneeded buttons from the emulator (#324)

Closes #317

Removes the save and load file buttons - leaving the save and load state buttons
This commit is contained in:
Michael Green
2024-03-06 22:38:32 +11:00
committed by GitHub
parent 95b52c47dd
commit 16cb0c89dc
2 changed files with 9 additions and 0 deletions

View File

@@ -40,6 +40,11 @@
EJS_threads = false;
EJS_Buttons = {
saveSavFiles: false,
loadSavFiles: false
}
EJS_onSaveState = function(e) {
var returnValue = {
"ScreenshotByteArrayBase64": btoa(Uint8ToString(e.screenshot)),

View File

@@ -53,10 +53,14 @@
emuBios = '';
} else {
emuBios = '/api/v1.1/Bios/zip/' + platformId;
console.log("Using BIOS link: " + emuBios);
}
switch (getQueryString('engine', 'string')) {
case 'EmulatorJS':
console.log("Emulator: " + getQueryString('engine', 'string'));
console.log("Core: " + getQueryString('core', 'string'));
$('#emulator').load('/emulators/EmulatorJS.html?v=' + AppVersion);
break;
}