Skip to content

Commit 748a8ae

Browse files
committed
feat: WIP separate handling for game feature plugins
1 parent 875835b commit 748a8ae

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

cli/installations.go

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,8 +639,18 @@ func downloadAndExtractMod(modReference string, version string, link string, has
639639
}()
640640
}
641641

642+
// TODO determine GameFeature or not from mod data
643+
isGameFeaturePlugin := false
644+
645+
var location string
646+
if isGameFeaturePlugin {
647+
location = filepath.Join(modsDirectory, "GameFeatures", modReference)
648+
} else {
649+
location = filepath.Join(modsDirectory, modReference)
650+
}
651+
642652
slog.Info("extracting mod", slog.String("mod_reference", modReference), slog.String("version", version), slog.String("link", link))
643-
if err := utils.ExtractMod(reader, size, filepath.Join(modsDirectory, modReference), hash, extractUpdates, d); err != nil {
653+
if err := utils.ExtractMod(reader, size, location, hash, extractUpdates, d); err != nil {
644654
return fmt.Errorf("could not extract %s: %w", modReference, err)
645655
}
646656

0 commit comments

Comments
 (0)