MCPcopy Index your code
hub / github.com/EmulatorJS/EmulatorJS / checkSupportedOpts

Method checkSupportedOpts

data/src/emulator.js:1164–1175  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1162 this.gamepad.on("buttonup", this.gamepadEvent.bind(this));
1163 }
1164 checkSupportedOpts() {
1165 if (!this.gameManager.supportsStates()) {
1166 this.elements.bottomBar.saveState[0].style.display = "none";
1167 this.elements.bottomBar.loadState[0].style.display = "none";
1168 this.elements.bottomBar.netplay[0].style.display = "none";
1169 this.elements.contextMenu.save.style.display = "none";
1170 this.elements.contextMenu.load.style.display = "none";
1171 }
1172 if (typeof this.config.gameId !== "number" || !this.config.netplayUrl || this.netplayEnabled === false) {
1173 this.elements.bottomBar.netplay[0].style.display = "none";
1174 }
1175 }
1176 updateGamepadLabels() {
1177 for (let i = 0; i < this.gamepadLabels.length; i++) {
1178 this.gamepadLabels[i].innerHTML = ""

Callers 1

startGameMethod · 0.95

Calls 1

supportsStatesMethod · 0.80

Tested by

no test coverage detected