MCPcopy Create free account
hub / github.com/lxn/walk / SetRootDirPath

Method SetRootDirPath

resourcemanager.go:40–49  ·  view source on GitHub ↗

SetRootDirPath sets the root directory path where resources are to be loaded from.

(rootDirPath string)

Source from the content-addressed store, hash-verified

38
39// SetRootDirPath sets the root directory path where resources are to be loaded from.
40func (rm *ResourceManager) SetRootDirPath(rootDirPath string) error {
41 path, err := filepath.Abs(rootDirPath)
42 if err != nil {
43 return err
44 }
45
46 rm.rootDirPath = path
47
48 return nil
49}
50
51// Bitmap loads a bitmap from file or resource identified by name, or an error if it could not be
52// found. When bitmap is loaded, 96dpi is assumed.

Callers 2

mainFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected