Add files via upload

This commit is contained in:
alyosha-tas 2017-06-24 16:03:55 -04:00 committed by GitHub
parent 4bae91b4f5
commit 70900cfadb
3 changed files with 3 additions and 4 deletions

View File

@ -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);
}
}

View File

@ -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
{

View File

@ -78,6 +78,7 @@ struct SaveState {
bool enableRam;
bool rambankMode;
bool hdmaTransfer;
bool using_bios;
} mem;
struct PPU {