mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2026-02-06 11:17:36 +00:00
Improve ROM loading UX (#1105)
Make cores that require threads only available if threads are enabled Make ROMs whose extensions are the name of a core use that core
This commit is contained in:
parent
8184ba800b
commit
54d7dfbc1f
12
index.html
12
index.html
@ -205,9 +205,19 @@
|
||||
"Commodore VIC20": "vice_xvic",
|
||||
"Commodore Plus/4": "vice_xplus4",
|
||||
"Commodore PET": "vice_xpet",
|
||||
"DOSBOX-PURE": "dosbox_pure"
|
||||
}
|
||||
|
||||
if (enableThreads) {
|
||||
coreValues["DOSBOX-PURE"] = "dosbox_pure";
|
||||
coreValues["PlayStation Portable"] = "ppsspp";
|
||||
}
|
||||
|
||||
for (let core in coreValues) {
|
||||
if (core.toLowerCase() === ext) {
|
||||
resolve(core)
|
||||
}
|
||||
}
|
||||
|
||||
const cores = Object.keys(coreValues).sort().reduce(
|
||||
(obj, key) => {
|
||||
obj[key] = coreValues[key];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user