Fix core path
Some checks failed
Make Latest Folder On EmulatorJS CDN / run (push) Has been cancelled

This commit is contained in:
Ethan O'Brien 2024-08-08 10:27:36 -05:00
parent b30c5f42a8
commit 469b9fcc4e

View file

@ -570,7 +570,7 @@ class EmulatorJS {
this.downloadFile(corePath, (res) => { this.downloadFile(corePath, (res) => {
if (res === -1) { if (res === -1) {
console.log("File not found, attemping to fetch from emulatorjs cdn"); console.log("File not found, attemping to fetch from emulatorjs cdn");
this.downloadFile("https://cdn.emulatorjs.org/latest/data/"+corePath, (res) => { this.downloadFile("https://cdn.emulatorjs.org/stable/data/"+corePath, (res) => {
if (res === -1) { if (res === -1) {
if (!this.supportsWebgl2) { if (!this.supportsWebgl2) {
this.startGameError(this.localization('Outdated graphics driver')); this.startGameError(this.localization('Outdated graphics driver'));
@ -579,7 +579,7 @@ class EmulatorJS {
} }
return; return;
} }
console.warn("File was not found locally, but was found on the emulatorjs cdn.\nIt is recommended to download the latest release from here: https://cdn.emulatorjs.org/releases/"); console.warn("File was not found locally, but was found on the emulatorjs cdn.\nIt is recommended to download the stable release from here: https://cdn.emulatorjs.org/releases/");
gotCore(res.data); gotCore(res.data);
this.storage.core.put(filename, { this.storage.core.put(filename, {
version: rep.buildStart, version: rep.buildStart,