mirror of
https://github.com/holub/mame
synced 2025-04-23 17:00:53 +03:00
I don't think these are really needed, but let's try to use more parentheses ;) nw.
This commit is contained in:
parent
2e451cdf36
commit
46911ceb9f
@ -305,11 +305,11 @@ int pce_cart_slot_device::get_cart_type(UINT8 *ROM, UINT32 len)
|
||||
type = PCE_SF2;
|
||||
|
||||
/* Check for Populous */
|
||||
if (len >= 0x1f26 + 8 && !memcmp(ROM + 0x1f26, "POPULOUS", 8))
|
||||
if (len >= (0x1f26 + 8) && !memcmp(ROM + 0x1f26, "POPULOUS", 8))
|
||||
type = PCE_POPULOUS;
|
||||
|
||||
// Check for CD system card v3 which adds on-cart RAM to the system
|
||||
if (len >= 0x3ffb6 + 23 && !memcmp(ROM + 0x3ffb6, "PC Engine CD-ROM SYSTEM", 23))
|
||||
if (len >= (0x3ffb6 + 23) && !memcmp(ROM + 0x3ffb6, "PC Engine CD-ROM SYSTEM", 23))
|
||||
{
|
||||
/* Check if 192KB additional system card ram should be used */
|
||||
if (!memcmp(ROM + 0x29d1, "VER. 3.", 7)) { type = PCE_CDSYS3J; } // JP version
|
||||
|
Loading…
Reference in New Issue
Block a user