aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/config.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/config.go b/config/config.go
index e11b17a..b025115 100644
--- a/config/config.go
+++ b/config/config.go
@@ -38,11 +38,11 @@ type Config struct {
}
// NewConfig creates a config that loads data from the given directory.
-func NewConfig(dir string) *Config {
+func NewConfig(configDir, cacheDir string) *Config {
return &Config{
- Dir: dir,
- HistoryDir: filepath.Join(dir, "history"),
- MediaDir: filepath.Join(dir, "media"),
+ Dir: configDir,
+ HistoryDir: filepath.Join(cacheDir, "history"),
+ MediaDir: filepath.Join(cacheDir, "media"),
}
}