dir

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: MPL-2.0 Imports: 2 Imported by: 3

Documentation

Overview

Package dir locates the Warcraft III installation and user directories.

Index

Constants

View Source
const (
	EnvUser    = "WC3_USER_DIR"
	EnvInstall = "WC3_INSTALL_DIR"
)

Environment variables

View Source
const Local = "./war3"

Local directory that overrides any global directory

Variables

This section is empty.

Functions

func InstallDir

func InstallDir() string

InstallDir 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

This section is empty.

Jump to

Keyboard shortcuts

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