mirror of https://github.com/mgba-emu/mgba.git
GB Serialize: Fix switching speed modes when loading a state (fixes #2097)
This commit is contained in:
parent
fee8255611
commit
927b70e6fd
1
CHANGES
1
CHANGES
|
@ -1,6 +1,7 @@
|
|||
0.9.1: (Future)
|
||||
Emulation fixes:
|
||||
- Core: Fix first event scheduling after loading savestate
|
||||
- GB Serialize: Fix switching speed modes when loading a state (fixes mgba.io/i/2097)
|
||||
- GBA Memory: Fix loading Thumb savestates when in ARM mode
|
||||
Other fixes:
|
||||
- GBA: Fix FireRed revision misdetecting as a ROM hack
|
||||
|
|
|
@ -172,6 +172,7 @@ bool GBDeserialize(struct GB* gb, const struct GBSerializedState* state) {
|
|||
gb->cpu->condition = GBSerializedCpuFlagsGetCondition(flags);
|
||||
gb->cpu->irqPending = GBSerializedCpuFlagsGetIrqPending(flags);
|
||||
gb->doubleSpeed = GBSerializedCpuFlagsGetDoubleSpeed(flags);
|
||||
gb->cpu->tMultiplier = 2 - gb->doubleSpeed;
|
||||
gb->cpu->halted = GBSerializedCpuFlagsGetHalted(flags);
|
||||
gb->cpuBlocked = GBSerializedCpuFlagsGetBlocked(flags);
|
||||
|
||||
|
|
Loading…
Reference in New Issue