(file)
| 54 | } |
| 55 | |
| 56 | async function filesmissing(file) { |
| 57 | console.error("Failed to load " + file); |
| 58 | let minifiedFailed = file.includes(".min.") && !file.includes("socket"); |
| 59 | console[minifiedFailed ? "warn" : "error"]("Failed to load " + file + " beacuse it's likly that the minified files are missing.\nTo fix this you have 3 options:\n1. You can download the zip from the latest release here: https://github.com/EmulatorJS/EmulatorJS/releases/latest - Stable\n2. You can download the zip from here: https://cdn.emulatorjs.org/latest/data/emulator.min.zip and extract it to the data/ folder. (easiest option) - Beta\n3. You can build the files by running `npm i && npm run build` in the data/minify folder. (hardest option) - Beta\nNote: you will probably need to do the same for the cores, extract them to the data/cores/ folder."); |
| 60 | if (minifiedFailed) { |
| 61 | console.log("Attempting to load non-minified files"); |
| 62 | if (file === "emulator.min.js") { |
| 63 | for (let i = 0; i < scripts.length; i++) { |
| 64 | await loadScript(scripts[i]); |
| 65 | } |
| 66 | } else { |
| 67 | await loadStyle("emulator.css"); |
| 68 | } |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | if (("undefined" != typeof EJS_DEBUG_XX && true === EJS_DEBUG_XX)) { |
| 73 | for (let i = 0; i < scripts.length; i++) { |
no test coverage detected