예제 #1
0
PakInfo::PakInfo(bool multipak, unsigned rombanks, unsigned char const romheader[])
: flags_(  multipak * FLAG_MULTIPAK
         + isHeaderChecksumOk(romheader) * FLAG_HEADER_CHECKSUM_OK),
  rombanks_(rombanks)
{
	std::memcpy(h144x_, romheader + 0x144, sizeof h144x_);
}
예제 #2
0
PakInfo::PakInfo(bool multipak, unsigned rombanks, unsigned char const romheader[])
    : flags_(  multipak * flag_multipak
               + isHeaderChecksumOk(romheader) * flag_header_checksum_ok),
      rombanks_(rombanks)
{
    std::memcpy(h144x_, romheader + 0x144, sizeof h144x_);
}