MCPcopy
hub / github.com/fogleman/nes / Load

Method Load

nes/console.go:144–156  ·  view source on GitHub ↗
(decoder *gob.Decoder)

Source from the content-addressed store, hash-verified

142}
143
144func (console *Console) Load(decoder *gob.Decoder) error {
145 decoder.Decode(&console.RAM)
146 console.CPU.Load(decoder)
147 console.APU.Load(decoder)
148 console.PPU.Load(decoder)
149 console.Cartridge.Load(decoder)
150 console.Mapper.Load(decoder)
151 var dummy bool
152 if err := decoder.Decode(&dummy); err != nil {
153 return err
154 }
155 return nil
156}

Callers 1

LoadStateMethod · 0.95

Calls 1

LoadMethod · 0.65

Tested by

no test coverage detected