MCPcopy Index your code
hub / github.com/EmulatorJS/EmulatorJS / getCore

Method getCore

data/src/emulator.js:54–73  ·  view source on GitHub ↗
(generic)

Source from the content-addressed store, hash-verified

52 return requiresWebGL2.includes(core);
53 }
54 getCore(generic) {
55 const cores = this.getCores();
56 const core = this.config.system;
57 if (generic) {
58 for (const k in cores) {
59 if (cores[k].includes(core)) {
60 return k;
61 }
62 }
63 return core;
64 }
65 const gen = this.getCore(true);
66 if (cores[gen] && cores[gen].includes(this.preGetSetting("retroarch_core"))) {
67 return this.preGetSetting("retroarch_core");
68 }
69 if (cores[core]) {
70 return cores[core][0];
71 }
72 return core;
73 }
74 createElement(type) {
75 return document.createElement(type);
76 }

Callers 10

downloadGameCoreMethod · 0.95
supportsExtMethod · 0.95
gotGameDataMethod · 0.95
downloadFilesMethod · 0.95
createBottomMenuBarMethod · 0.95
getControlSchemeMethod · 0.95
getLocalStorageKeyMethod · 0.95
setupSettingsMenuMethod · 0.95
getFileNamesMethod · 0.80

Calls 2

getCoresMethod · 0.95
preGetSettingMethod · 0.95

Tested by

no test coverage detected