MCPcopy Create free account
hub / github.com/alexankitty/Myrient-Search-Engine / getEmulatorConfig

Function getEmulatorConfig

lib/emulator/emulatorConfig.js:189–207  ·  view source on GitHub ↗
(category)

Source from the content-addressed store, hash-verified

187}
188
189export function getEmulatorConfig(category) {
190 debugPrint(`[EmulatorConfig] Configuring emulator for category: ${category}`);
191
192 const systemConfig = systemConfigs[category];
193 if (!systemConfig) {
194 debugPrint(`[EmulatorConfig] No configuration found for category: ${category}`, 'warn');
195 return null;
196 }
197
198 const config = {
199 core: systemConfig.core,
200 system: category,
201 unpackRoms: systemConfig.unpackRoms,
202 bios: systemConfig.bios || null
203 };
204
205 debugPrint(`[EmulatorConfig] Final configuration:`, config);
206 return config;
207}
208
209export function isNonGameContent(filename, nonGameTerms) {
210 const pattern = new RegExp(nonGameTerms.terms.join('|'), 'i');

Callers 1

server.jsFile · 0.90

Calls 1

debugPrintFunction · 0.85

Tested by

no test coverage detected