mirror of https://github.com/bsnes-emu/bsnes.git
24 lines
714 B
C++
24 lines
714 B
C++
struct PCEngineCartridge {
|
|
PCEngineCartridge(string location, uint8_t* data, uint size);
|
|
|
|
string manifest;
|
|
|
|
//private:
|
|
struct Information {
|
|
} information;
|
|
};
|
|
|
|
PCEngineCartridge::PCEngineCartridge(string location, uint8_t* data, uint size) {
|
|
//skip header
|
|
if((size & 0x1fff) == 512) data += 512, size -= 512;
|
|
|
|
manifest.append("board\n");
|
|
manifest.append(" rom name=program.rom size=0x", hex(size), "\n");
|
|
manifest.append("\n");
|
|
manifest.append("information\n");
|
|
manifest.append(" title: ", Location::prefix(location), "\n");
|
|
manifest.append(" sha256: ", Hash::SHA256(data, size).digest(), "\n");
|
|
manifest.append("\n");
|
|
manifest.append("note: heuristically generated by icarus\n");
|
|
}
|