Add files via upload
This commit is contained in:
parent
4bae91b4f5
commit
70900cfadb
|
@ -98,10 +98,7 @@ void GB::reset(const std::uint32_t now) {
|
|||
{
|
||||
p_->cpu.reset_bios(0);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
}
|
||||
setInitState(state, p_->cpu.isCgb(), p_->gbaCgbMode, now, use_bios);
|
||||
p_->cpu.loadState(state);
|
||||
if (length > 0)
|
||||
|
@ -237,6 +234,7 @@ SYNCFUNC(GB)
|
|||
SSS(p_->cpu);
|
||||
NSS(p_->gbaCgbMode);
|
||||
NSS(p_->vbuff);
|
||||
NSS(use_bios);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1182,7 +1182,7 @@ void gambatte::setInitState(SaveState &state, const bool cgb, const bool gbaCgbM
|
|||
state.cpu.cycleCounter = 0;
|
||||
state.mem.ioamhram.ptr[0x140] = 0x00;
|
||||
state.mem.ioamhram.ptr[0x104] = 0x00;
|
||||
|
||||
state.mem.using_bios = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -78,6 +78,7 @@ struct SaveState {
|
|||
bool enableRam;
|
||||
bool rambankMode;
|
||||
bool hdmaTransfer;
|
||||
bool using_bios;
|
||||
} mem;
|
||||
|
||||
struct PPU {
|
||||
|
|
Loading…
Reference in New Issue