GameBoy\Core::saveState PHP Method

saveState() public method

public saveState ( )
    public function saveState()
    {
        return [$this->fromTypedArray($this->ROM), $this->inBootstrap, $this->registerA, $this->FZero, $this->FSubtract, $this->FHalfCarry, $this->FCarry, $this->registerB, $this->registerC, $this->registerD, $this->registerE, $this->registersHL, $this->stackPointer, $this->programCounter, $this->halt, $this->IME, $this->hdmaRunning, $this->CPUTicks, $this->multiplier, $this->fromTypedArray($this->memory), $this->fromTypedArray($this->MBCRam), $this->fromTypedArray($this->VRAM), $this->currVRAMBank, $this->fromTypedArray($this->GBCMemory), $this->MBC1Mode, $this->MBCRAMBanksEnabled, $this->currMBCRAMBank, $this->currMBCRAMBankPosition, $this->cGBC, $this->gbcRamBank, $this->gbcRamBankPosition, $this->ROMBank1offs, $this->currentROMBank, $this->cartridgeType, $this->name, $this->gameCode, $this->lcdController->modeSTAT, $this->lcdController->LYCMatchTriggerSTAT, $this->lcdController->mode2TriggerSTAT, $this->lcdController->mode1TriggerSTAT, $this->lcdController->mode0TriggerSTAT, $this->lcdController->LCDisOn, $this->gfxWindowY, $this->gfxWindowDisplay, $this->gfxSpriteShow, $this->gfxSpriteDouble, $this->gfxBackgroundY, $this->gfxBackgroundX, $this->TIMAEnabled, $this->DIVTicks, $this->LCDTicks, $this->timerTicks, $this->TACClocker, $this->untilEnable, $this->lastIteration, $this->cMBC1, $this->cMBC2, $this->cMBC3, $this->cMBC5, $this->cSRAM, $this->cMMMO1, $this->cRUMBLE, $this->cCamera, $this->cTAMA5, $this->cHuC3, $this->cHuC1, $this->drewBlank, $this->tileData, $this->fromTypedArray($this->frameBuffer), $this->tileCount, $this->colorCount, $this->gbPalette, $this->gbcRawPalette, $this->gbcPalette, $this->transparentCutoff, $this->bgEnabled, $this->spritePriorityEnabled, $this->fromTypedArray($this->tileReadState), $this->windowSourceLine, $this->lcdController->actualScanLine, $this->RTCisLatched, $this->latchedSeconds, $this->latchedMinutes, $this->latchedHours, $this->latchedLDays, $this->latchedHDays, $this->RTCSeconds, $this->RTCMinutes, $this->RTCHours, $this->RTCDays, $this->RTCDayOverFlow, $this->RTCHALT, $this->gbColorizedPalette, $this->skipPCIncrement, $this->lcdController->STATTracker, $this->gbcRamBankPositionECHO, $this->numRAMBanks];
    }