config

package
v0.0.0-...-e7c4f5f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Home string
	Data ConfigData
}

func New

func New() Config

func (Config) DefaultData

func (c Config) DefaultData() ConfigData

func (Config) DefaultPlatformData

func (c Config) DefaultPlatformData() PlatformData

func (Config) DefaultStorageData

func (c Config) DefaultStorageData() StorageData

type ConfigData

type ConfigData struct {
	Storage   StorageData  `json:"storage"`
	Platforms PlatformData `json:"platforms"`
}

type Platform

type Platform struct {
	Enabled bool   `json:"enabled"`
	Label   string `json:"label"`
	Dir     string `json:"dir"`
}

type PlatformData

type PlatformData struct {
	HBMAME Platform `json:"HBMAME"`
	MAME   Platform `json:"MAME"`

	// ATARI
	Atari2600   Platform `json:"Atari2600"`
	Atari5200   Platform `json:"Atari5200"`
	Atari7800   Platform `json:"Atari7800"`
	Atari8Bit   Platform `json:"Atari8Bit"`
	AtariJaguar Platform `json:"AtariJaguar"`
	AtariLynx   Platform `json:"AtariLynx"`

	Xbox        Platform `json:"Xbox"`
	Xbox360     Platform `json:"Xbox360"`
	XboxOne     Platform `json:"XboxOne"`
	XboxSeriesX Platform `json:"XboxSeriesX"`

	Nintendo64             Platform `json:"Nintendo64"`
	NintendoGameBoy        Platform `json:"NintendoGameBoy"`
	NintendoGameBoyAdvance Platform `json:"NintendoGameBoyAdvance"`
	NintendoGameBoyColor   Platform `json:"NintendoGameBoyColor"`
	NintendoGameCube       Platform `json:"NintendoGameCube"`
	NintendoGameWatch      Platform `json:"NintendoGameWatch"`
	NintendoDS             Platform `json:"NintendoDS"`
	NintendoDSi            Platform `json:"NintendoDSi"`
	NintendoPlayStation    Platform `json:"NintendoPlayStation"`
	NintendoFamicom        Platform `json:"NintendoFamicom"`
	NintendoSuperFamicom   Platform `json:"NintendoSuperFamicom"`
	NintendoNES            Platform `json:"NintendoNES"`
	NintendoSNES           Platform `json:"NintendoSNES"`
	NintendoSwitch         Platform `json:"NintendoSwitch"`
	NintendoWii            Platform `json:"NintendoWii"`
	NintendoWiiU           Platform `json:"NintendoWiiU"`

	Sega32X              Platform `json:"Sega32X"`
	SegaDreamcast        Platform `json:"SegaDreamcast"`
	SegaGameGear         Platform `json:"SegaGameGear"`
	SegaGenesisMegadrive Platform `json:"SegaGenesisMegadrive"`
	SegaMasterSystem     Platform `json:"SegaMasterSystem"`
	SegaMegaCD           Platform `json:"SegaMegaCD"`
	SegaPico             Platform `json:"SegaPico"`
	SegaSaturn           Platform `json:"SegaSaturn"`

	PlayStation1        Platform `json:"PlayStation1"`
	PlayStation2        Platform `json:"PlayStation2"`
	PlayStation3        Platform `json:"PlayStation3"`
	PlayStation4        Platform `json:"PlayStation4"`
	PlayStation5        Platform `json:"PlayStation5"`
	PlayStationNow      Platform `json:"PlayStationNow"`
	PlayStationPortable Platform `json:"PlayStationPortable"`

	TurboGrafxCD Platform `json:"TurboGrafxCD"`
	TurboGrafx16 Platform `json:"TurboGrafx16"`
}

type StorageData

type StorageData struct {
	CacheDir string `json:"cacheDir"`
	BiosDir  string `json:"biosDir"`
	RomsDir  string `json:"romsDir"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL