modzip

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractSpecificFilesFromZip

func ExtractSpecificFilesFromZip(
	zipPath string,
	fileNames []string,
	targetDir string,
)

Types

type ModData

type ModData struct {
	Mods []ModDataEntry `json:"Mods"`
	MD5  string         `json:"MD5"`
}

func InspectModZip

func InspectModZip(
	zipPath string,
) (ModData ModData, PakFiles []string)

func ReadInfoJson

func ReadInfoJson(path string) ModData

func (ModData) Entry

func (m ModData) Entry() ModDataEntry

type ModDataEntry

type ModDataEntry struct {
	Author       string `json:"Author"`
	Name         string `json:"Name"`
	Folder       string `json:"Folder"`
	Version      string `json:"Version"`
	Description  string `json:"Description"`
	UUID         string `json:"UUID"`
	Created      string `json:"Created"`
	Dependencies []any  `json:"Dependencies"`
	Group        string `json:"Group"`
}

Jump to

Keyboard shortcuts

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