thunderstore

package
v2.0.0-...-00473d5 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

type Game struct {
}

type ModPackagingType

type ModPackagingType int
const (
	// ModPackagingTypeUnknown is the default packaging type. This means the packaging is unrecognized.
	ModPackagingTypeUnknown ModPackagingType = iota
	// ModPackagingTypeRoot means the zip has a BepInEx folder at the root. Mods will be extracted with their relative root being $(SERVER_DIR)
	ModPackagingTypeRoot
	// ModPackagingTypePlugin means the zip has a plugin folder in the root. Mods will be extracted with their relative root being $(SERVER_DIR)/BepinEx
	ModPackagingTypePlugin
	// ModPackagingTypePlugin means the zip has a dll in the root. Mods will be extracted with their relative root being $(SERVER_DIR)/BepinEx/plugins
	ModPackagingTypeRootDLL
)

func DeterminePackagingType

func DeterminePackagingType(modZipFilename string) (modType ModPackagingType, prefixToStrip string, err error)

func (ModPackagingType) Directory

func (d ModPackagingType) Directory() string

func (ModPackagingType) String

func (d ModPackagingType) String() string

Jump to

Keyboard shortcuts

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