mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
vdp, fix for gfx save/load menu bg
This commit is contained in:
parent
8e4ab3c62c
commit
e721f80136
5 changed files with 29 additions and 15 deletions
|
@ -710,6 +710,8 @@ int PicoStateLoadGfx(const char *fname)
|
|||
areaRead(&Pico.video, 1, sizeof(Pico.video), afile);
|
||||
}
|
||||
areaClose(afile);
|
||||
|
||||
PicoVideoCacheSAT();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -719,6 +721,7 @@ struct PicoTmp
|
|||
unsigned short vram[0x8000];
|
||||
unsigned short cram[0x40];
|
||||
unsigned short vsram[0x40];
|
||||
unsigned int satcache[0x80];
|
||||
|
||||
//struct PicoMisc m;
|
||||
struct PicoVideo video;
|
||||
|
@ -741,6 +744,7 @@ void *PicoTmpStateSave(void)
|
|||
memcpy(t->vram, PicoMem.vram, sizeof(PicoMem.vram));
|
||||
memcpy(t->cram, PicoMem.cram, sizeof(PicoMem.cram));
|
||||
memcpy(t->vsram, PicoMem.vsram, sizeof(PicoMem.vsram));
|
||||
memcpy(t->satcache, VdpSATCache, sizeof(VdpSATCache));
|
||||
memcpy(&t->video, &Pico.video, sizeof(Pico.video));
|
||||
|
||||
#ifndef NO_32X
|
||||
|
@ -763,6 +767,7 @@ void PicoTmpStateRestore(void *data)
|
|||
memcpy(PicoMem.vram, t->vram, sizeof(PicoMem.vram));
|
||||
memcpy(PicoMem.cram, t->cram, sizeof(PicoMem.cram));
|
||||
memcpy(PicoMem.vsram, t->vsram, sizeof(PicoMem.vsram));
|
||||
memcpy(VdpSATCache, t->satcache, sizeof(VdpSATCache));
|
||||
memcpy(&Pico.video, &t->video, sizeof(Pico.video));
|
||||
Pico.m.dirtyPal = 1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue