utils

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const GameId = "1966720"

Variables

View Source
var KnownModManagersList = map[string]string{
	"thunderstore": "Thunderstore Mod Manager\\DataFolder\\LethalCompany\\profiles",
	"r2modman":     "r2modmanPlus-local\\LethalCompany\\profiles",
}

map of the mod manager name to the path of the profiles directory

Functions

func CloneOtherProfiles

func CloneOtherProfiles(modManagers map[string]string) error

CloneOtherProfiles accepts a map of mod manager names to their profiles directory paths. It copies all profiles for each specified mod manager to a new location.

func LaunchGameProfile

func LaunchGameProfile(profile string) error

LaunchGameProfile launches the game with the specified profile.

func ParseThunderstoreModUrl added in v0.0.7

func ParseThunderstoreModUrl(modUrl string) (string, string, error)

Retusn mod author and name from the Thunderstore mod URL.

Types

This section is empty.

Jump to

Keyboard shortcuts

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