Switch to forward slashes, add metafile bool

This commit is contained in:
comp500
2019-04-26 18:23:52 +01:00
parent 2f3b80f251
commit e2c772ee30
3 changed files with 25 additions and 20 deletions

View File

@@ -13,15 +13,3 @@ func ResolveMod(modName string, flags Flags) string {
return filepath.Join(flags.ModsFolder, fileName)
}
// ResolveIndex returns the path to the index file
func ResolveIndex(flags Flags) (string, error) {
pack, err := LoadPack(flags)
if err != nil {
return "", err
}
if filepath.IsAbs(pack.Index.File) {
return pack.Index.File, nil
}
return filepath.Join(filepath.Dir(flags.PackFile), pack.Index.File), nil
}