core

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Version            string
	ConfigDir          string
	Rest               rest.Client
	ProfileManager     *profile.Manager
	EpicSessionManager *aumgr.EpicSessionManager
	EpicApi            *aumgr.EpicApi
	// contains filtered or unexported fields
}

func New

func New(version string, restClient rest.Client) (*App, error)

func (*App) ClearModCache

func (a *App) ClearModCache() error

func (*App) DetectGamePath

func (a *App) DetectGamePath() (string, error)

func (*App) DetectLauncherType

func (a *App) DetectLauncherType(path string) aumgr.LauncherType

func (*App) ExecuteLaunch

func (a *App) ExecuteLaunch(gamePath string, dllDir string) error

ExecuteLaunch launches the game and blocks until it exits.

func (*App) ExportProfile

func (a *App) ExportProfile(prof profile.Profile) (string, error)

func (*App) GetInstallationStatus

func (a *App) GetInstallationStatus(gamePath string, checkUpdates bool) *InstallationInfo

func (*App) HandleSharedProfile

func (a *App) HandleSharedProfile(uri string) (*profile.Profile, error)

func (*App) IsGameRunning

func (a *App) IsGameRunning() (bool, error)

func (*App) PrepareLaunch

func (a *App) PrepareLaunch(gamePath string, profileID uuid.UUID) (string, func() error, error)

PrepareLaunch prepares the game for launch by preparing the profile directory.

func (*App) ResolveDependencies

func (a *App) ResolveDependencies(initialMods []modmgr.ModVersion) ([]modmgr.ModVersion, error)

func (*App) ResolveProfileDependencies

func (a *App) ResolveProfileDependencies(profileID uuid.UUID) ([]modmgr.ModVersion, error)

ResolveProfileDependencies resolves all required dependencies for the given profile.

func (*App) SyncProfile

func (a *App) SyncProfile(profileID uuid.UUID, binaryType aumgr.BinaryType, gameVersion string) error

SyncProfile forces a re-sync of the profile directory by clearing it and re-installing mods.

func (*App) UninstallMod

func (a *App) UninstallMod(gamePath string, progressListener progress.Progress) error

type InstallStatus

type InstallStatus int
const (
	StatusNotInstalled InstallStatus = iota
	StatusInstalled
	StatusBroken
	StatusIncompatible
)

type InstallationInfo

type InstallationInfo struct {
	Status               InstallStatus
	GameVersion          string
	InstalledGameVersion string
	InstalledMods        []modmgr.InstalledVersionInfo
	OutdatedMods         []OutdatedMod
	Error                error
}

type OutdatedMod

type OutdatedMod struct {
	ID             string
	CurrentVersion string
	LatestVersion  string
}

Jump to

Keyboard shortcuts

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