()
| 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}`); |