trunk/src/emu/bus/pce/pce_slot.c
r32751 | r32752 | |
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 (!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 | | if(!memcmp(ROM + 0x29D1, "VER. 3.", 7)) { type = PCE_CDSYS3J; } // JP version |
316 | | else if(!memcmp(ROM + 0x29C4, "VER. 3.", 7 )) { type = PCE_CDSYS3U; } // US version |
| 315 | if (!memcmp(ROM + 0x29d1, "VER. 3.", 7)) { type = PCE_CDSYS3J; } // JP version |
| 316 | else if (!memcmp(ROM + 0x29c4, "VER. 3.", 7 )) { type = PCE_CDSYS3U; } // US version |
317 | 317 | } |
318 | 318 | |
319 | 319 | return type; |