mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-02-10 02:26:29 -05:00
23 lines
433 B
Go
23 lines
433 B
Go
package d2config
|
|
|
|
import "github.com/OpenDiablo2/OpenDiablo2/d2common/d2interface"
|
|
|
|
// TODO remove this shit
|
|
|
|
var singleton = getDefaultConfig()
|
|
|
|
// Load loads a configuration object from disk
|
|
func Load() error {
|
|
return singleton.Load()
|
|
}
|
|
|
|
// Save saves the configuration object to disk
|
|
func Save() error {
|
|
return singleton.Save()
|
|
}
|
|
|
|
// Get returns a configuration object
|
|
func Get() d2interface.Configuration {
|
|
return singleton
|
|
}
|