Implement update routines for CF

This commit is contained in:
comp500
2019-06-16 15:05:47 +01:00
parent b77e2080c7
commit b6c71191d4
3 changed files with 87 additions and 12 deletions

View File

@@ -125,7 +125,7 @@ func cmdInstall(flags core.Flags, mod string, modArgsTail []string) error {
fileInfoObtained := false
var fileInfoData modFileInfo
if fileID == 0 {
// TODO: how do we decide which version to use?
// TODO: change to timestamp-based comparison??
for _, v := range modInfoData.GameVersionLatestFiles {
// Choose "newest" version by largest ID
if v.GameVersion == mcVersion && v.ID > fileID {