all repos — mgba @ b950f45652b840014dc43d1a08bfca1a05c80cc0

mGBA Game Boy Advance Emulator

GBA Hardware: Fix serialization of flags
Jeffrey Pfau jeffrey@endrift.com
Sat, 24 Oct 2015 18:06:01 -0700
commit

b950f45652b840014dc43d1a08bfca1a05c80cc0

parent

636f5575589f42d28a47a45b89b9368028139c42

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/gba/hardware.csrc/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) {