aboutsummaryrefslogtreecommitdiff
path: root/internal/item
diff options
context:
space:
mode:
Diffstat (limited to 'internal/item')
-rw-r--r--internal/item/store.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/item/store.go b/internal/item/store.go
index d73d6fe..b6e5567 100644
--- a/internal/item/store.go
+++ b/internal/item/store.go
@@ -76,3 +76,8 @@ func (s *ItemStore) IDSet() map[string]bool {
}
return ids
}
+
+func (s *ItemStore) Reload(dataDir string) {
+ s.cache = make(map[string]*ItemDef)
+ s.pathIndex = behavior.BuildPathIndex(filepath.Join(dataDir, "items"))
+}