Documentation
¶
Overview ¶
Package datapath implements automatic detection of Nox game data directory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Log = log.New("path")
Functions ¶
func Data ¶
Data returns the current Nox data dir. If additional args are provided, they will be joined with the data dir. If no data directory was set, it will try to locate it automatically using FindData.
func FindData ¶
func FindData() string
FindData locates Nox game data path. It returns empty string if not found. It does not affect data path returned by Data.
func Maps ¶
Maps returns the current Nox maps dir. If additional args are provided, they will be joined with the maps dir.
func Save ¶
Save returns the current Nox save dir. If additional args are provided, it will be joined with the save dir.
func SaveNameFromPath ¶
SaveNameFromPath gives a save directory name based on a path to player save file.
Types ¶
This section is empty.