Documentation
¶
Overview ¶
Package svfind finds WoWCompanion.lua and ForeverScribe.lua in the standard WoW: Forever install folders.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Files = []string{"WoWCompanion.lua", "ForeverScribe.lua"}
Files are the SavedVariables files searched for: the WoW Companion addon's own capture and ForeverScribe's (optional now). Either one finds the folder; the loader reads both.
var Flavors = []string{"_forever_", "_classic_era_", "_retail_"}
Flavors are the game folders searched under a WoW root, in preference order.
Functions ¶
Types ¶
type Result ¶
type Result struct {
Path string // the file picked; empty when none was found
Others []string // the other matches in the same game folder, newest first
Tried []string // the WoW roots that were searched
}
Result is the outcome of a search.
func Detect ¶
func Detect() Result
Detect searches the standard install folders of the running system.
func Find ¶
Find looks under each root, game folder by game folder in Flavors order, for WTF/Account/*/SavedVariables/{WoWCompanion,ForeverScribe}.lua. The first game folder with a match wins, and its most recently modified file is the pick.