From b67a94263e0d85da878d44af680417a8dcdcdbb5 Mon Sep 17 00:00:00 2001 From: SergioMartin86 Date: Mon, 11 Mar 2024 19:47:41 +0100 Subject: [PATCH] Small improvements in deserialization --- source/quickerNES/core/core.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/source/quickerNES/core/core.hpp b/source/quickerNES/core/core.hpp index 49e3127..be08a69 100644 --- a/source/quickerNES/core/core.hpp +++ b/source/quickerNES/core/core.hpp @@ -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; }