Documentation
¶
Index ¶
- func CheckForUpdates(install bool) bool
- func GetDownloadedModVersions(modID string) ([]string, error)
- func GetLatestDownloadedVersion(modID string) (string, error)
- func Install(modID string, modVersion string, smlPath string) bool
- func Remove(modID string, modVersion string) bool
- func Uninstall(modID string, modVersion string, smlPath string) bool
- func Update(modID string) bool
- type DataJSON
- type ModFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckForUpdates ¶
CheckForUpdates compares the installed version with the newest available and optionally downloads it
func GetDownloadedModVersions ¶
GetDownloadedModVersions Returns the downloaded versions of the mod
func GetLatestDownloadedVersion ¶
GetLatestDownloadedVersion Returns the latest downloaded version of the mod
Types ¶
type DataJSON ¶
type DataJSON struct {
ModID string `json:"mod_id"`
Name string `json:"name"`
Version string `json:"version"`
Description string `json:"description"`
Authors []string `json:"authors"`
Objects []ModFile `json:"objects"`
}
DataJSON contains the data.json information
func GetDataFromZip ¶
GetDataFromZip returns the data.json file in the zip
func GetDownloadedMods ¶
func GetDownloadedMods() []DataJSON
GetDownloadedMods returns all mods found in the smlauncher mods dir
func GetInstalledMods ¶
GetInstalledMods returns all mods found in the sml mods dir
Click to show internal directories.
Click to hide internal directories.