middle

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const BrowserVFSPathDefault = "computer://"

Variables

View Source
var InjectorCode = "" /* 4460-byte string literal not displayed */

Functions

func BrowserVFSLocationReal added in v1.3.0

func BrowserVFSLocationReal(vfsPath string) bool

func FetchRemotePlugins

func FetchRemotePlugins() []api.Plugin

func OpenURL

func OpenURL(url string) error

func WriteConfig

func WriteConfig(cfg Config)

Types

type BrowserLocation added in v1.3.0

type BrowserLocation struct {
	Location string
	Dir      bool
	Drive    string
}

func BrowserVFSList added in v1.3.0

func BrowserVFSList(vfsPath string) []BrowserLocation

type Config

type Config struct {
	DiscordPath string `json:"discordPath"`
}

func ReadConfig

func ReadConfig() Config

type DiscordInstance

type DiscordInstance struct {
	// Path to "resources" directory
	Path    string
	Channel string
}

func CheckDiscordLocation added in v1.3.0

func CheckDiscordLocation(dir string) *DiscordInstance

func GetChannels

func GetChannels() []DiscordInstance

func GetInstance

func GetInstance(channel string) (DiscordInstance, error)

func NewDiscordInstance

func NewDiscordInstance(path string) (*DiscordInstance, error)

type FinderLocation added in v1.3.0

type FinderLocation struct {
	BrowserLocation
	Instance *DiscordInstance
}

A BrowserLocation with the output of CheckDiscordLocation. The CCUpdaterUI code put the necessary information into GameInstance but Impregnate doesn't do that. So we use this instead to get the same data.

func DiscordFinderVFSList added in v1.3.0

func DiscordFinderVFSList(vfsPath string) []FinderLocation

type ReturnData

type ReturnData struct {
	Name string `json:"name"`
}

func CheckHealth

func CheckHealth() ReturnData

type Warning

type Warning struct {
	Text      string
	Action    WarningID
	Parameter string
}

Warning represents a warning to show the user on the primary view.

func FindWarnings

func FindWarnings(config Config) []Warning

type WarningID

type WarningID int
const (
	// NullActionWarningID cannot be automatically fixed.
	NullActionWarningID WarningID = iota
	// InstallOrUpdatePackageWarningID warnings can be solved by installing/updating the package Parameter.
	InstallOrUpdatePackageWarningID
	// URLAndCloseWarningID warnings can be solved manually by the user given navigation to a URL. The application closes.
	URLAndCloseWarningID
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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