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

Method checkCoreCompatibility

data/src/emulator.js:506–511  ·  view source on GitHub ↗
(version)

Source from the content-addressed store, hash-verified

504 }, fileCbFunc);
505 }
506 checkCoreCompatibility(version) {
507 if (this.versionAsInt(version.minimumEJSVersion) > this.versionAsInt(this.ejs_version)) {
508 this.startGameError(this.localization("Outdated EmulatorJS version"));
509 throw new Error("Core requires minimum EmulatorJS version of " + version.minimumEJSVersion);
510 }
511 }
512 startGameError(message) {
513 console.log(message);
514 this.textElem.innerText = message;

Callers 1

gotCoreMethod · 0.95

Calls 3

versionAsIntMethod · 0.95
startGameErrorMethod · 0.95
localizationMethod · 0.95

Tested by

no test coverage detected