fs

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2020 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package fs implements Warcraft 3 file system utilities.

Index

Constants

View Source
const LocalDir = "./war3"

LocalDir overrides any global directory

Variables

This section is empty.

Functions

func FindInstallationDir

func FindInstallationDir() string

FindInstallationDir checks common Warcraft III installation directories and returns the first one that exists

func UserDir

func UserDir() string

UserDir returns the Warcraft III user directory

Types

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

Storage provider for Warcraft III file system

func Open

func Open(installPath string, userPaths ...string) *Storage

Open Warcraft III storage from installPath and userPath

func (*Storage) Close

func (stor *Storage) Close() error

Close storage

func (*Storage) Open

func (stor *Storage) Open(subFileName string) (io.ReadCloser, error)

Open subFileName from storage

Jump to

Keyboard shortcuts

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