Versions in this module Expand all Collapse all v0 v0.5.0 Mar 18, 2026 Changes in this version type MetadataVariant + ConsoleID int v0.4.0 Mar 12, 2026 Changes in this version + const ButtonDown + const ButtonLeft + const ButtonRight + const ButtonUp + const MemorySaveRAM + const MemorySystemRAM + func DisplayAspectRatio(width, height int, par float64) float64 + type BIOSOption struct + Key string + Label string + Required bool + Variants []BIOSVariant + func (o BIOSOption) HasKnownHashes() bool + type BIOSVariant struct + Filename string + Label string + SHA256 string + type BatterySaver interface + GetSRAM func() []byte + HasSRAM func() bool + SetSRAM func(data []byte) + type Button struct + DefaultKey string + DefaultPad string + ID int + Name string + type CoreFactory interface + CreateEmulator func(rom []byte, region Region) (Emulator, error) + DetectRegion func(rom []byte) (Region, bool) + SystemInfo func() SystemInfo + type CoreOption struct + Category CoreOptionCategory + Default string + Description string + Key string + Label string + Max int + Min int + PerGame bool + Step int + Type CoreOptionType + Values []string + type CoreOptionCategory int + const CoreOptionCategoryAudio + const CoreOptionCategoryCore + const CoreOptionCategoryInput + const CoreOptionCategoryVideo + type CoreOptionType int + const CoreOptionBool + const CoreOptionRange + const CoreOptionSelect + type Emulator interface + Close func() + GetActiveHeight func() int + GetAudioSamples func() []int16 + GetFramebuffer func() []byte + GetFramebufferStride func() int + GetRegion func() Region + GetTiming func() Timing + RunFrame func() + SetBIOS func(key string, data []byte) + SetInput func(player int, buttons uint32) + SetOption func(key string, value string) + SetRegion func(region Region) + Start func() + type MemoryInspector interface + ReadMemory func(addr uint32, buf []byte) uint32 + type MemoryMapper interface + MemoryMap func() []MemoryRegion + ReadRegion func(regionType int) []byte + WriteRegion func(regionType int, data []byte) + type MemoryRegion struct + Size int + Type int + type MetadataVariant struct + Name string + RDBName string + ThumbnailRepo string + type Region int + const RegionNTSC + const RegionPAL + func (r Region) String() string + type SaveStater interface + Deserialize func(data []byte) error + Serialize func() ([]byte, error) + type SystemInfo struct + BIOSOptions []BIOSOption + BigEndianMemory bool + Buttons []Button + ConsoleID int + ConsoleName string + CoreName string + CoreOptions []CoreOption + CoreVersion string + DataDirName string + Extensions []string + MaxScreenHeight int + MetadataVariants []MetadataVariant + Name string + PixelAspectRatio float64 + Players int + SampleRate int + ScreenWidth int + SerializeSize int + type Timing struct + FPS int + Scanlines int