Small improvements in deserialization
This commit is contained in:
parent
52cd570ac0
commit
b67a94263e
|
@ -276,13 +276,10 @@ class Core : private Cpu
|
||||||
// TIME Block
|
// TIME Block
|
||||||
if (TIMEBlockEnabled == true)
|
if (TIMEBlockEnabled == true)
|
||||||
{
|
{
|
||||||
nes_state_t nesState;
|
const auto outputData = (uint8_t*) &nes;
|
||||||
|
|
||||||
const auto outputData = (uint8_t*) &nesState;
|
|
||||||
const auto inputDataSize = sizeof(nes_state_t);
|
const auto inputDataSize = sizeof(nes_state_t);
|
||||||
deserializer.popContiguous(outputData, inputDataSize);
|
deserializer.popContiguous(outputData, inputDataSize);
|
||||||
|
|
||||||
nes = nesState;
|
|
||||||
nes.timestamp /= 5;
|
nes.timestamp /= 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue