Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command int
Command is a command that is sent to the emulator to control it.
const ( // CommandPause pauses the emulator. CommandPause Command = iota // CommandResume resumes the emulator. CommandResume // CommandClose closes the emulator. CommandClose // CommandReset resets the emulator. CommandReset // CommandLoadROM loads a ROM into the emulator. CommandLoadROM // CommandLoadSave loads a save file into the emulator. CommandLoadSave // CommandSetSpeed sets the speed of the emulator. CommandSetSpeed )
type CommandPacket ¶
CommandPacket is a command packet that is sent to the emulator to control it.
type ResponsePacket ¶
ResponsePacket is a response packet that is sent from the emulator to the client.
type Save ¶
type Save struct { Path string // the path to the save file // contains filtered or unexported fields }
Save represents a save file.
type State ¶
type State int
State represents the status of the emulator. It can be one of the following:
- Running
- Paused
type Status ¶
type Status int
Status represents the status of the emulator's CPU. It can be one of the following:
- Execution
- Halted
- Errored
func (Status) IsExecuting ¶
Click to show internal directories.
Click to hide internal directories.