aboutsummaryrefslogtreecommitdiff
path: root/Emu8000.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Emu8000.cpp')
-rw-r--r--Emu8000.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Emu8000.cpp b/Emu8000.cpp
index a28f0dd..6636c2b 100644
--- a/Emu8000.cpp
+++ b/Emu8000.cpp
@@ -377,9 +377,9 @@ static DECLCALLBACK(int) emuR3SaveExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSM)
pHlp->pfnSSMPutU32(pSSM, pThis->uRAMSize);
pHlp->pfnSSMPutMem(pSSM, pThis->ram, pThis->uRAMSize);
- // TODO Should save the rest of the device state, too.
+ pHlp->pfnSSMPutStruct(pSSM, pThis->emu, g_emu8k_fields);
- return 0;
+ return 0;
}
/**
@@ -403,6 +403,8 @@ static DECLCALLBACK(int) emuR3LoadExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSM, uint
pHlp->pfnSSMSkip(pSSM, uRAMSize);
}
+ pHlp->pfnSSMGetStruct(pSSM, pThis->emu, g_emu8k_fields);
+
pThis->tmLastWrite = RTTimeSystemMilliTS();
if (uVersion > EMU_SAVED_STATE_VERSION)