mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
deal with some strict aliasing issues
This commit is contained in:
parent
a76fad4129
commit
895d15121b
6 changed files with 38 additions and 17 deletions
|
@ -290,7 +290,8 @@ static int state_save(void *file)
|
|||
SekPackCpu(buff, 1);
|
||||
if (Pico_mcd->s68k_regs[3] & 4) // 1M mode?
|
||||
wram_1M_to_2M(Pico_mcd->word_ram2M);
|
||||
Pico_mcd->m.hint_vector = *(unsigned short *)(Pico_mcd->bios + 0x72);
|
||||
memcpy(&Pico_mcd->m.hint_vector, Pico_mcd->bios + 0x72,
|
||||
sizeof(Pico_mcd->m.hint_vector));
|
||||
|
||||
CHECKED_WRITE_BUFF(CHUNK_S68K, buff);
|
||||
CHECKED_WRITE_BUFF(CHUNK_PRG_RAM, Pico_mcd->prg_ram);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue