| 187 | } |
| 188 | |
| 189 | export 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 | |
| 209 | export function isNonGameContent(filename, nonGameTerms) { |
| 210 | const pattern = new RegExp(nonGameTerms.terms.join('|'), 'i'); |