Updated SGB border, add “2” to SGB2

This commit is contained in:
Lior Halphon 2018-11-23 14:16:48 +02:00
parent 6160f513aa
commit 558f9b9bae
2 changed files with 581 additions and 581 deletions

View File

@ -510,6 +510,16 @@ void GB_sgb_load_default_data(GB_gameboy_t *gb)
}
}
if (gb->model != GB_MODEL_SGB2) {
/* Delete the "2" */
gb->sgb->border.map[25 * 32 + 25] = gb->sgb->border.map[25 * 32 + 26] =
gb->sgb->border.map[26 * 32 + 25] = gb->sgb->border.map[26 * 32 + 26] =
gb->sgb->border.map[27 * 32 + 25] = gb->sgb->border.map[27 * 32 + 26] =
gb->sgb->border.map[0];
/* Re-center */
memmove(&gb->sgb->border.map[25 * 32 + 1], &gb->sgb->border.map[25 * 32], (32 * 3 - 1) * sizeof(gb->sgb->border.map[0]));
}
gb->sgb->effective_palettes[0] = 0x639E;
gb->sgb->effective_palettes[1] = 0x263A;
gb->sgb->effective_palettes[2] = 0x10D4;

File diff suppressed because it is too large Load Diff