trunk/src/emu/bus/pce/pce_slot.c
r32752 | r32753 | |
305 | 305 | type = PCE_SF2; |
306 | 306 | |
307 | 307 | /* Check for Populous */ |
308 | | if (len >= 0x1f26 + 8 && !memcmp(ROM + 0x1f26, "POPULOUS", 8)) |
| 308 | if (len >= (0x1f26 + 8) && !memcmp(ROM + 0x1f26, "POPULOUS", 8)) |
309 | 309 | type = PCE_POPULOUS; |
310 | 310 | |
311 | 311 | // Check for CD system card v3 which adds on-cart RAM to the system |
312 | | if (len >= 0x3ffb6 + 23 && !memcmp(ROM + 0x3ffb6, "PC Engine CD-ROM SYSTEM", 23)) |
| 312 | if (len >= (0x3ffb6 + 23) && !memcmp(ROM + 0x3ffb6, "PC Engine CD-ROM SYSTEM", 23)) |
313 | 313 | { |
314 | 314 | /* Check if 192KB additional system card ram should be used */ |
315 | 315 | if (!memcmp(ROM + 0x29d1, "VER. 3.", 7)) { type = PCE_CDSYS3J; } // JP version |