Versions in this module Expand all Collapse all v0 v0.7.2 Nov 15, 2026 v0.7.1 Nov 14, 2026 v0.7.0 Nov 14, 2026 Changes in this version + const DataEnv + func Lifecycle(ctx context.Context, call string, args wittymodule.LifecycleArgs) error + func ReadyEmulator(offers []rpc.Offer) *rpc.Offer + func Routes(mux *http.ServeMux) + func SDUIItems(req sdui.ItemsRequest) (sdui.ItemsAnswer, error) + func ScanHooks() *service.ScanHooks + func StandaloneWords(c *wittyplay.Console, offers []rpc.Offer) string + func Watch() + type AchievementView struct + Badge string + Description string + ID int + Points int + Title string + type AchievementsAnswer struct + Achievements []AchievementView + Game *AchievementsGame + Message string + State string + type AchievementsGame struct + ID int + Points int + Title string + URL string + type App struct + DB *store.DB + Dir string + Host *host.Client + Log *slog.Logger + func Get() (*App, error) + func (a *App) CheckCustomCore(ctx context.Context, core *cores.Core) error + func (a *App) CheckGame(ctx context.Context, it *service.Item, console *wittyplay.Console) map[string]any + func (a *App) Config(ctx context.Context, key string, v any) (bool, error) + func (a *App) Configure(ctx context.Context) error + func (a *App) ConsoleOffers(ctx context.Context) map[string][]rpc.Offer + func (a *App) ConsoleViews(ctx context.Context) []ConsoleView + func (a *App) CoreStartFailed(ctx context.Context, p *Plan, item int64, on host.On, err error) + func (a *App) Cores() *cores.Manager + func (a *App) CustomFor(ctx context.Context, console string) bool + func (a *App) FindBIOSNear(ctx context.Context, gamePath string) + func (a *App) GPUMissing(ctx context.Context) string + func (a *App) GPUStatus(ctx context.Context) stream.GPUProbe + func (a *App) NoteCorePlay(ctx context.Context, core string, item int64, starts, failures int, ...) + func (a *App) PickCore(ctx context.Context, console *wittyplay.Console, itemID int64) Pick + func (a *App) PlanGame(ctx context.Context, it *service.Item) (*Plan, *Refusal) + func (a *App) PlanOnly(ctx context.Context, p *Plan, core cores.Core) + func (a *App) PreferredCore(ctx context.Context, console *wittyplay.Console, itemID int64) string + func (a *App) PreferredCores(ctx context.Context) map[string]string + func (a *App) Runner(ctx context.Context) (path string, args []string) + func (a *App) SetConfig(ctx context.Context, key string, v any) error + func (a *App) StartOptions(ctx context.Context, consoleID, coreID string) map[string]string + func (a *App) SystemDir() string + func (a *App) WatchCorePlay(sess *stream.Session, core *cores.Core, on host.On, item int64) + type ConsoleCapabilities struct + Input InputCaps + Media MediaCaps + Picture PictureCaps + Play PlayCaps + Screens ScreenCaps + type ConsoleView struct + BIOSMissing string + BiosFiles []biosFileView + BiosFound []string + Blocked string + Capabilities *ConsoleCapabilities + CoreAbout map[string]coreNote + CoreSupport map[string]coreSupport + Count int + Custom []cores.Core + DefaultCore string + Emulators []rpc.Offer + Ended int + Era string + GPUCores []string + GPUMissing string + Installed []cores.Core + Launched int + LogoName string + Media string + Message string + NeedsGPU bool + Notice string + Pad wittyplay.PadLayout + PlaysOn string + Ready bool + Reason string + Shelf *ShelfLook + Software bool + SoftwareWhy string + Standalone string + TotalGames int + type CorePickOption struct + ID string + Name string + type CorePlays struct + Failures int + LastAt int64 + LastError string + Seconds float64 + Starts int + type CoreReport struct + Arch string + Assets int + BIOS []cores.Firmware + BIOSKnown bool + Binary cores.Binary + BlockExtract bool + Consoles []string + Extensions []string + File string + GPUWhy string + HasInfo bool + ID string + Ignored []string + License string + LicenseSource string + Name string + NeedFullPath bool + NeedsGPU string + NoGame bool + NonCommercial bool + Notes string + Options int + SHA256 string + SandboxNote string + Size int64 + Source string + SourceURL string + System string + SystemFiles int + Version string + Warnings []string + type CoreVersion struct + AddedAt int64 + Current bool + SHA256 string + Version string + type CustomConsoleView struct + Games int + Libraries int + type CustomCore struct + AddedAt int64 + AddedBy string + Consoles []string + DefaultFor []string + ID string + License string + LicenseSource string + Name string + NonCommercial bool + Note string + Plays CorePlays + Report CoreReport + Running int + SHA256 string + Size int64 + Source string + SourceURL string + State cores.CoreFileState + UpdatedAt int64 + Version string + Versions []CoreVersion + type CustomStatus struct + Audit []host.AuditRow + CanEnable bool + Consoles []CustomConsoleView + Cores []*CustomCore + CoresDir string + Enabled bool + HaveRunner bool + LibraryExt string + Locked bool + MaxUploadMB int64 + NeedsSwitch bool + OtherCores []CorePickOption + PadChoices []CorePickOption + Placed []cores.PlacedFile + Platform string + Sandbox string + SystemDir string + type GameBackground struct + Dim int + Fit string + Version int64 + X int + Y int + type GameBezel struct + CreatedAt int64 + Height int + ID int64 + Name string + Size int64 + Width int + type GamePatch struct + CreatedAt int64 + Enabled bool + ID int64 + Kind string + Name string + Size int64 + type GamePersonal struct + Cheats []wittyplay.Cheat + Favourite bool + HasBattery bool + LastPlayed int64 + Note string + Plays int + type InputCaps struct + AnalogTriggers bool + Keyboard bool + LightGun bool + Mic bool + Motion bool + Mouse bool + Multitap int + Ports int + Sticks int + Touch bool + type MediaCaps struct + BIOS string + Discs bool + MemoryCards int + Region map[string]string + type Pick struct + Blocked *cores.Core + Core *cores.Core + NoGPU string + Notice string + Software bool + type PictureCaps struct + Aspect string + Integer bool + Look string + type Plan struct + CPUOptions map[string]string + Console *wittyplay.Console + Core *cores.Core + CoreAssets string + CoreID string + CoreOptions map[string]string + CorePath string + Fallbacks []stream.CoreChoice + GPU bool + LoadLimit time.Duration + Notices []string + RunnerArgs []string + Software bool + SystemDir string + type PlayCaps struct + RewindByDefault bool + Rumble bool + type Presence struct + Online bool + Playing bool + type Refusal struct + Body map[string]any + Status int + func GPURefusal(console *wittyplay.Console, why string) *Refusal + func StartRefusal(console *wittyplay.Console, err error) *Refusal + func (r *Refusal) Error() string + func (r *Refusal) Write(w http.ResponseWriter) + type ScreenCaps struct + Count int + Frame []ScreenRect + Layouts []string + Options map[string]ScreenOptions + Touch int + type ScreenOptions struct + Layout string + Swap string + SwapValues *[2]string + Values map[string][2]string + type ScreenRect struct + H float64 + W float64 + X float64 + Y float64 + type ShelfLook struct + Cart ShelfShape + Case ShelfShape + type ShelfShape struct + Aspect float64 + Height float64 + Kind string