GBA Hardware: Fix serialization of flags
Jeffrey Pfau jeffrey@endrift.com
Sat, 24 Oct 2015 18:06:01 -0700
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/gba/hardware.c
→
src/gba/hardware.c
@@ -618,8 +618,8 @@ flags1 = GBASerializedHWFlags1SetLightEdge(flags1, hw->lightEdge);
flags2 = GBASerializedHWFlags2SetGbpInputsPosted(flags2, hw->gbpInputsPosted); flags2 = GBASerializedHWFlags2SetGbpTxPosition(flags2, hw->gbpTxPosition); STORE_32(hw->gbpNextEvent, 0, &state->hw.gbpNextEvent); - STORE_32(flags1, 0, &state->hw.flags1); - STORE_32(flags2, 0, &state->hw.flags2); + STORE_16(flags1, 0, &state->hw.flags1); + state->hw.flags2 = flags2; } void GBAHardwareDeserialize(struct GBACartridgeHardware* hw, const struct GBASerializedState* state) {