DS: Copy cartridge header

This commit is contained in:
Vicki Pfau 2017-02-20 19:34:32 -08:00
parent 2c3a1c6f71
commit 41975eb338
1 changed files with 1 additions and 0 deletions

View File

@ -278,6 +278,7 @@ void DS7Reset(struct ARMCore* cpu) {
struct DSCartridge* header = ds->romVf->map(ds->romVf, sizeof(*header), MAP_READ);
if (header) {
memcpy(&ds->memory.ram[0x3FFE00 >> 2], header, 0x170);
// TODO: Error check
ds->romVf->seek(ds->romVf, header->arm7Offset, SEEK_SET);
uint32_t base = header->arm7Base - DS_BASE_RAM;