config

package
v0.0.0-...-e9ecd38 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscoverCompiler

func DiscoverCompiler(gamePath string) (string, error)

DiscoverCompiler tries to find the compiler starting from a gamePath. it returns the path to PapyrusCompiler.exe if it was found

func GetSkyrimSEInstallPath

func GetSkyrimSEInstallPath() (string, error)

GetSkyrimSEInstallPath returns the Skyrim SE root path from registry. if there's no skyrim se path in the registry, it returns an error

Types

type Configuration

type Configuration struct {
	// CompilerPath is the path to PapyrusCompiler.exe
	CompilerPath string `mapstructure:"compiler_path"`

	// GamePath is the path to the game root folder (where SkyrimSE.exe is)
	GamePath string `mapstructure:"game_path"`
}

Configuration represents the global config file structure

func AutoSetup

func AutoSetup() (*Configuration, error)

AutoSetup tries to create a Configuration struct by looking for the game path in the registry and then checking for the compiler

func ManualSetup

func ManualSetup() (*Configuration, error)

ManualSetup asks the user for their skyrim se path then it tries to locate PapyrusCompiler.exe in it if it's not able to, it asks the user for the path to PapyrusCompiler.exe

func (Configuration) String

func (c Configuration) String() string

Jump to

Keyboard shortcuts

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