Enable psx software renderer

This commit is contained in:
Ethan O'Brien 2023-07-17 12:25:30 -05:00
parent 66748511b9
commit 24766a6c47
2 changed files with 7 additions and 4 deletions

View file

@ -29,6 +29,9 @@ class EJS_GameManager {
this.mkdir("/home/web_user"); this.mkdir("/home/web_user");
this.mkdir("/home/web_user/retroarch"); this.mkdir("/home/web_user/retroarch");
this.mkdir("/home/web_user/retroarch/userdata"); this.mkdir("/home/web_user/retroarch/userdata");
this.mkdir("/home/web_user/retroarch/userdata/config");
this.mkdir("/home/web_user/retroarch/userdata/Beetle PSX HW");
this.FS.writeFile("/home/web_user/retroarch/userdata/config/Beetle PSX HW/Beetle PSX HW.opt", 'beetle_psx_hw_renderer = "software"\n');
this.mkdir("/data"); this.mkdir("/data");
this.mkdir("/data/saves"); this.mkdir("/data/saves");

View file

@ -905,14 +905,14 @@ class EmulatorJS {
} }
checkSupportedOpts() { checkSupportedOpts() {
if (!this.gameManager.supportsStates()) { if (!this.gameManager.supportsStates()) {
this.elements.bottomBar.saveState.style.display = "none"; this.elements.bottomBar.saveState[0].style.display = "none";
this.elements.bottomBar.loadState.style.display = "none"; this.elements.bottomBar.loadState[0].style.display = "none";
this.elements.bottomBar.netplay.style.display = "none"; this.elements.bottomBar.netplay[0].style.display = "none";
this.elements.contextMenu.save.style.display = "none"; this.elements.contextMenu.save.style.display = "none";
this.elements.contextMenu.load.style.display = "none"; this.elements.contextMenu.load.style.display = "none";
} }
if (typeof this.config.gameId !== "number" || !this.config.netplayUrl) { if (typeof this.config.gameId !== "number" || !this.config.netplayUrl) {
this.elements.bottomBar.netplay.style.display = "none"; this.elements.bottomBar.netplay[0].style.display = "none";
} }
} }
updateGamepadLabels() { updateGamepadLabels() {