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

Function getCores

build.js:93–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91 };
92
93 const getCores = async () => {
94 const coresJsonPath = path.resolve('data', 'cores', 'cores.json');
95 if (!fs.existsSync(coresJsonPath)) {
96 console.error(`Cores JSON file not found at ${coresJsonPath}`);
97 return;
98 }
99 return JSON.parse(fs.readFileSync(coresJsonPath, 'utf8'));
100 };
101
102 if (build_type === "emulatorjs") {
103 console.log(`Current EmulatorJS Version: ${version}`);

Callers 1

build.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected