Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscoverCompiler ¶
DiscoverCompiler tries to find the compiler starting from a gamePath. it returns the path to PapyrusCompiler.exe if it was found
func GetSkyrimSEInstallPath ¶
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
Click to show internal directories.
Click to hide internal directories.