Small improvements in deserialization

This commit is contained in:
SergioMartin86 2024-03-11 19:47:41 +01:00
parent 52cd570ac0
commit b67a94263e
1 changed files with 1 additions and 4 deletions

View File

@ -276,13 +276,10 @@ class Core : private Cpu
// TIME Block
if (TIMEBlockEnabled == true)
{
nes_state_t nesState;
const auto outputData = (uint8_t*) &nesState;
const auto outputData = (uint8_t*) &nes;
const auto inputDataSize = sizeof(nes_state_t);
deserializer.popContiguous(outputData, inputDataSize);
nes = nesState;
nes.timestamp /= 5;
}