settings

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectSM added in v1.1.0

func DetectSM()

func Load

func Load() error

func Save

func Save() error

func Update

func Update(newSettings Settings)

Types

type AutoDownloadMode

type AutoDownloadMode int
const (
	AutoDownloadOff AutoDownloadMode = iota
	AutoDownloadOnly
	AutoDownloadAndUnpack
)

func (AutoDownloadMode) MarshalJSON

func (m AutoDownloadMode) MarshalJSON() ([]byte, error)

func (*AutoDownloadMode) UnmarshalJSON

func (m *AutoDownloadMode) UnmarshalJSON(b []byte) error

type Settings

type Settings struct {
	FirstLaunch      bool `json:"-"`
	SmExePath        string
	SmSaveDir        string
	SmSongsDir       string
	SmLogsDir        string
	AutoDownloadMode AutoDownloadMode
	UserUnlocks      bool
	AutoLaunch       bool

	// debug settings, not stored in the json
	Debug                  bool   `json:"-"`
	FakeGs                 bool   `json:"-"`
	FakeGsNetworkError     bool   `json:"-"`
	FakeGsNetworkDelay     int    `json:"-"`
	FakeGsNewSessionResult string `json:"-"`
	FakeGsSubmitResult     string `json:"-"`
	FakeGsRpg              bool   `json:"-"`
	FakeGsItl              bool   `json:"-"`
	GrooveStatsUrl         string `json:"-"`

	// backwards compatibility fields
	SmDataDir string `json:",omitempty"`
}

func Get

func Get() Settings

Jump to

Keyboard shortcuts

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