diff --git a/sources/Cartridge/Cartridge.cpp b/sources/Cartridge/Cartridge.cpp index 58e7348..d0ae7f5 100644 --- a/sources/Cartridge/Cartridge.cpp +++ b/sources/Cartridge/Cartridge.cpp @@ -132,7 +132,6 @@ namespace ComSquare::Cartridge if (info.checksum + info.checksumComplement == 0xFFFF && info.checksum != 0 && info.checksumComplement != 0) score += 8; - //Fail here if (info.emulationInterrupts.reset < 0x8000u) // The reset vector is the first thing called by the SNES so It must execute the code inside the ROM (the rom starts at 0x8000). continue; uint8_t resetOpCode = this->_data[info.emulationInterrupts.reset - 0x8000u]; @@ -176,7 +175,7 @@ namespace ComSquare::Cartridge this->header = this->_mapHeader(headerAddress); this->header.gameName = std::string(reinterpret_cast(&this->_data[headerAddress]), 21); - if (headerAddress & 0x200u) { + if (headerAddress & 0x1C0u) { this->_romStart = 0x200u; this->_size -= 0x200u; return true;