Documentation ¶
Index ¶
- Constants
- Variables
- type Console
- func (c *Console) CheckInput()
- func (c *Console) Close() error
- func (c *Console) CreateUndoLoadState() error
- func (c *Console) CreateUndoSaveState(oldState []byte) error
- func (c *Console) Draw(screen *ebiten.Image)
- func (c *Console) Layout(_, _ int) (int, int)
- func (c *Console) LoadSRAM() error
- func (c *Console) LoadState(r io.Reader) error
- func (c *Console) LoadStateNum(num uint8) error
- func (c *Console) Reset()
- func (c *Console) SaveSRAM() error
- func (c *Console) SaveState(w io.Writer) error
- func (c *Console) SaveStateNum(num uint8, createUndo bool) error
- func (c *Console) SetDebug(v bool)
- func (c *Console) SetRate(rate uint8)
- func (c *Console) SetTrace(v bool)
- func (c *Console) SetUpdateAction(action UpdateAction)
- func (c *Console) Step(render bool)
- func (c *Console) Trace() string
- func (c *Console) UndoLoadState() error
- func (c *Console) UndoSaveState() error
- func (c *Console) Update() error
- type Debug
- type UpdateAction
Constants ¶
View Source
const ( DebugDisabled = iota DebugWait DebugStepFrame DebugRunRender )
View Source
const AutoSaveNum = 0
Variables ¶
View Source
var ErrExit = errors.New("exit")
View Source
var ErrNoPreviousState = errors.New("no previous state available")
Functions ¶
This section is empty.
Types ¶
type Console ¶
type Console struct { CPU *cpu.CPU Bus *bus.Bus PPU *ppu.PPU APU *apu.APU Cartridge *cartridge.Cartridge Mapper cartridge.Mapper // contains filtered or unexported fields }
func (*Console) CheckInput ¶
func (c *Console) CheckInput()
func (*Console) CreateUndoLoadState ¶
func (*Console) CreateUndoSaveState ¶
func (*Console) LoadStateNum ¶
func (*Console) SetUpdateAction ¶
func (c *Console) SetUpdateAction(action UpdateAction)
func (*Console) UndoLoadState ¶
func (*Console) UndoSaveState ¶
type UpdateAction ¶
type UpdateAction uint8
const ( ActionNone UpdateAction = iota ActionExit ActionSaveState ActionLoadState )
Click to show internal directories.
Click to hide internal directories.