GB: Added missing variables in save states
This commit is contained in:
parent
18c96c8402
commit
4274c481d7
4 changed files with 5 additions and 3 deletions
|
@ -1376,6 +1376,7 @@ void GbCpu::Serialize(Serializer& s)
|
|||
{
|
||||
s.Stream(
|
||||
_state.CycleCount, _state.PC, _state.SP, _state.A, _state.Flags, _state.B,
|
||||
_state.C, _state.D, _state.E, _state.H, _state.L, _state.IME, _state.Halted
|
||||
_state.C, _state.D, _state.E, _state.H, _state.L, _state.IME, _state.Halted,
|
||||
_state.EiPending
|
||||
);
|
||||
}
|
||||
|
|
|
@ -701,7 +701,7 @@ void GbPpu::Serialize(Serializer& s)
|
|||
_state.Scanline, _state.Cycle, _state.Mode, _state.LyCompare, _state.BgPalette, _state.ObjPalette0, _state.ObjPalette1,
|
||||
_state.ScrollX, _state.ScrollY, _state.WindowX, _state.WindowY, _state.Control, _state.LcdEnabled, _state.WindowTilemapSelect,
|
||||
_state.WindowEnabled, _state.BgTileSelect, _state.BgTilemapSelect, _state.LargeSprites, _state.SpritesEnabled, _state.BgEnabled,
|
||||
_state.Status, _state.FrameCount, _lastFrameTime,
|
||||
_state.Status, _state.FrameCount, _lastFrameTime, _state.LyCoincidenceFlag,
|
||||
_state.CgbBgPalAutoInc, _state.CgbBgPalPosition,
|
||||
_state.CgbObjPalAutoInc, _state.CgbObjPalPosition, _state.CgbVramBank
|
||||
);
|
||||
|
|
|
@ -131,5 +131,5 @@ void GbTimer::Write(uint16_t addr, uint8_t value)
|
|||
|
||||
void GbTimer::Serialize(Serializer& s)
|
||||
{
|
||||
s.Stream(_divider, _counter, _modulo, _control, _timerEnabled, _timerDivider);
|
||||
s.Stream(_divider, _counter, _modulo, _control, _timerEnabled, _timerDivider, _needReload, _reloaded);
|
||||
}
|
||||
|
|
|
@ -64,6 +64,7 @@ SOURCES_CXX := $(LIBRETRO_DIR)/libretro.cpp \
|
|||
$(CORE_DIR)/GameServerConnection.cpp \
|
||||
$(CORE_DIR)/Gameboy.cpp \
|
||||
$(CORE_DIR)/GbCpu.cpp \
|
||||
$(CORE_DIR)/GbDmaController.cpp \
|
||||
$(CORE_DIR)/GbPpu.cpp \
|
||||
$(CORE_DIR)/GbApu.cpp \
|
||||
$(CORE_DIR)/GbTimer.cpp \
|
||||
|
|
Loading…
Add table
Reference in a new issue