mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2026-02-06 11:17:36 +00:00
Catch undefined EJS_Runtime as a start error
This commit is contained in:
parent
3a3eee7d85
commit
a8d0284e06
@ -989,6 +989,11 @@ class EmulatorJS {
|
||||
})();
|
||||
}
|
||||
initModule(wasmData, threadData) {
|
||||
if (typeof window.EJS_Runtime !== "function") {
|
||||
console.warn("EJS_Runtime is not defined!");
|
||||
this.startGameError(this.localization("Failed to start game"));
|
||||
return;
|
||||
}
|
||||
window.EJS_Runtime({
|
||||
noInitialRun: true,
|
||||
onRuntimeInitialized: null,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user