mirror of
https://github.com/packwiz/packwiz.git
synced 2025-11-19 01:24:32 +01:00
Switch to forward slashes, add metafile bool
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user