Skip to content

Commit

Permalink
Add EJS_forceLegacyCores
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanaobrien committed Feb 18, 2024
1 parent 43d151b commit 0d892cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion data/emulator.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ class EmulatorJS {
this.bindListeners();
this.config.netplayUrl = this.config.netplayUrl || "https://netplay.emulatorjs.org";
this.fullscreen = false;
this.supportsWebgl2 = !!document.createElement('canvas').getContext('webgl2');
this.supportsWebgl2 = !!document.createElement('canvas').getContext('webgl2') && (this.config.forceLegacyCores !== true);
this.isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
if (this.config.disableDatabases) {
this.storage = {
Expand Down
1 change: 1 addition & 0 deletions data/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@
config.externalFiles = window.EJS_externalFiles;
config.disableDatabases = window.EJS_disableDatabases;
config.disableLocalStorage = window.EJS_disableLocalStorage;
config.forceLegacyCores = window.EJS_forceLegacyCores;

if (typeof window.EJS_language === "string" && window.EJS_language !== "en-US") {
try {
Expand Down

0 comments on commit 0d892cc

Please sign in to comment.