mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2024-09-20 10:56:30 +00:00
add ejs thread variable (for testing)
This commit is contained in:
parent
3dcd8c91c3
commit
b8fd074f7f
2 changed files with 4 additions and 2 deletions
|
@ -598,7 +598,8 @@ class EmulatorJS {
|
||||||
gotCore(result.data);
|
gotCore(result.data);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.downloadFile('cores/'+this.getCore()+'-wasm.data', (res) => {
|
let corePath = 'cores/'+this.getCore()+(this.config.threads ? "-thread" : "")+'-wasm.data';
|
||||||
|
this.downloadFile(corePath, (res) => {
|
||||||
if (res === -1) {
|
if (res === -1) {
|
||||||
this.textElem.innerText = this.localization('Network Error');
|
this.textElem.innerText = this.localization('Network Error');
|
||||||
this.textElem.style.color = "red";
|
this.textElem.style.color = "red";
|
||||||
|
|
|
@ -77,6 +77,7 @@
|
||||||
config.backgroundBlur = window.EJS_backgroundBlur;
|
config.backgroundBlur = window.EJS_backgroundBlur;
|
||||||
config.backgroundColor = window.EJS_backgroundColor;
|
config.backgroundColor = window.EJS_backgroundColor;
|
||||||
config.controlScheme = window.EJS_controlScheme;
|
config.controlScheme = window.EJS_controlScheme;
|
||||||
|
config.threads = window.EJS_threads;
|
||||||
|
|
||||||
if (typeof window.EJS_language === "string" && window.EJS_language !== "en-US") {
|
if (typeof window.EJS_language === "string" && window.EJS_language !== "en-US") {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue