Documentation
¶
Index ¶
- func DetectGameDir() (string, error)
- func NewConsolePrinter(colorOutput bool, stdout io.Writer, stderr io.Writer) *printer
- func ParseHashes(str string) []string
- func VerifyGameDir(path string) error
- type App
- func (a *App) ExtractFile(ctx context.Context, id stingray.FileID, outDir string, ...) ([]string, error)
- func (a *App) LookupHash(hash stingray.Hash) string
- func (a *App) LookupThinHash(hash stingray.ThinHash) string
- func (a *App) MatchingFiles(includeGlob string, excludeGlob string, includeOnlyTypes []string, ...) (map[stingray.FileID]struct{}, error)
- type Printer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectGameDir ¶ added in v0.3.1
Returns error if steam path couldn't be found.
func NewConsolePrinter ¶ added in v0.5.17
func ParseHashes ¶ added in v0.3.1
func VerifyGameDir ¶ added in v0.3.1
Types ¶
type App ¶
type App struct {
Hashes map[stingray.Hash]string
ThinHashes map[stingray.ThinHash]string
ArmorSets map[stingray.Hash]dlbin.ArmorSet
DataDir *stingray.DataDir
}
func OpenGameDir ¶ added in v0.3.1
func OpenGameDir(ctx context.Context, gameDir string, hashStrings []string, thinhashes []string, armorStrings stingray.Hash, onProgress func(curr, total int)) (*App, error)
Open game dir and read metadata.
func (*App) ExtractFile ¶
func (a *App) ExtractFile(ctx context.Context, id stingray.FileID, outDir string, extrCfg appconfig.Config, runner *exec.Runner, gltfDoc *gltf.Document, archiveIDs []stingray.Hash, printer Printer) ([]string, error)
Returns path to extracted file/directory.
func (*App) LookupHash ¶ added in v0.4.2
Prints hash if human-readable name is unknown.
func (*App) LookupThinHash ¶ added in v0.6.0
Prints hash if human-readable name is unknown.
Click to show internal directories.
Click to hide internal directories.