Add pack-root option (fixes #27)

This commit is contained in:
comp500
2021-06-04 02:10:29 +01:00
parent d6bed7ad4c
commit 8cbe7d4c61
7 changed files with 26 additions and 15 deletions

View File

@@ -205,9 +205,9 @@ func installVersion(mod Mod, version Version, pack core.Pack) error {
}
var path string
if mod.Slug != "" {
path = modMeta.SetMetaName(mod.Slug)
path = modMeta.SetMetaName(mod.Slug, index)
} else {
path = modMeta.SetMetaName(mod.Title)
path = modMeta.SetMetaName(mod.Title, index)
}
// If the file already exists, this will overwrite it!!!