Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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
Click to show internal directories.
Click to hide internal directories.