svfind

package
v0.7.13 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package svfind finds ForeverScribe.lua in the standard WoW: Forever install folders.

Index

Constants

This section is empty.

Variables

View Source
var Flavors = []string{"_forever_", "_classic_era_", "_retail_"}

Flavors are the game folders searched under a WoW root, in preference order.

Functions

func Roots

func Roots(goos string, driveExists func(root string) bool) []string

Roots lists the WoW install folders to search, in order, for an OS. driveExists says whether a Windows drive root such as `D:\` is present; it is not used on other systems.

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

func Find(roots []string) Result

Find looks under each root, game folder by game folder in Flavors order, for WTF/Account/*/SavedVariables/ForeverScribe.lua. The first game folder with a match wins, and its most recently modified file is the pick.

func (Result) NotFound

func (r Result) NotFound(envName string) string

NotFound is the error text for an empty search, naming the folders searched.

func (Result) Note

func (r Result) Note(envName string) string

Note is the one line saying which file was picked and how to override it; empty when none was.

Jump to

Keyboard shortcuts

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