Versions in this module Expand all Collapse all v3 v3.0.5 Apr 16, 2023 Changes in this version + const CallSerialize + const CallUnserialize v3.0.4 Mar 16, 2023 Changes in this version + const KeyPressed + const KeyReleased + func Init(localPath string) + func LoadGame(path string) error + func SetLibretroLogger(log *logger.Logger) + type ArchInfo struct + Arch string + LibExt string + Os string + Vendor string + func GetCoreExt() (ArchInfo, error) + type CoreProperties struct + func ReadProperties(filename string) (*CoreProperties, error) + func (c *CoreProperties) Free() + func (c *CoreProperties) Get(key string) (*C.char, bool) + type Frontend struct + func NewFrontend(conf conf.Emulator, log *logger.Logger) (*Frontend, error) + func (f *Frontend) Close() + func (f *Frontend) GetAudio() func(*emulator.GameAudio) + func (f *Frontend) GetFps() uint + func (f *Frontend) GetFrameSize() (int, int) + func (f *Frontend) GetHashPath() string + func (f *Frontend) GetSRAMPath() string + func (f *Frontend) GetSampleRate() uint + func (f *Frontend) GetVideo() func(*emulator.GameFrame) + func (f *Frontend) HasVerticalFrame() bool + func (f *Frontend) Input(player int, data []byte) + func (f *Frontend) Load() error + func (f *Frontend) LoadGame(path string) error + func (f *Frontend) LoadGameState() error + func (f *Frontend) LoadMetadata(emu string) + func (f *Frontend) Save() error + func (f *Frontend) SaveGameState() error + func (f *Frontend) SetAudio(ff func(*emulator.GameAudio)) + func (f *Frontend) SetMainSaveName(name string) + func (f *Frontend) SetVideo(ff func(*emulator.GameFrame)) + func (f *Frontend) SetViewport(width int, height int) + func (f *Frontend) Start() + func (f *Frontend) ToggleMultitap() + type InputState [maxPort]State + func NewGameSessionInput() InputState + type State struct + type StateStorage struct + MainSave string + Path string + func (s *StateStorage) GetSRAMPath() string + func (s *StateStorage) GetSavePath() string + func (s *StateStorage) Load(path string) ([]byte, error) + func (s *StateStorage) Save(path string, dat []byte) error + func (s *StateStorage) SetMainSaveName(name string) + type Storage interface + GetSRAMPath func() string + GetSavePath func() string + Load func(path string) ([]byte, error) + Save func(path string, data []byte) error + SetMainSaveName func(name string) + type ZipStorage struct + func (z *ZipStorage) GetSRAMPath() string + func (z *ZipStorage) GetSavePath() string + func (z *ZipStorage) Load(path string) ([]byte, error) + func (z *ZipStorage) Save(path string, data []byte) error