Work around very brittle snapshot code

This commit is contained in:
Snesrev
2023-03-06 03:42:00 +01:00
parent e3d2202053
commit 75ff49d4f2
5 changed files with 12 additions and 5 deletions

View File

@@ -65,7 +65,7 @@ void dma_reset(Dma* dma) {
}
void dma_saveload(Dma *dma, SaveLoadFunc *func, void *ctx) {
func(ctx, &dma->channel, sizeof(Dma) - offsetof(Dma, channel));
func(ctx, &dma->channel, offsetof(Dma, pad) + 7 - offsetof(Dma, channel));
}
uint8_t dma_read(Dma* dma, uint16_t adr) {