Skip to content

Commit

Permalink
performance rewrite of manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
maradotwebp committed Apr 17, 2022
1 parent 05dc9e1 commit b968735
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modpack/manifest.nim
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ proc updateAddon*(manifest: var Manifest, file: ManifestFile): void =

proc updateAddon*(manifest: var Manifest, projectId: int, fileId: int): void =
## update a mod with the given `projectId` to the given `fileId`
var modToUpdate = removeAddon(manifest, projectId)
modToUpdate.fileId = fileId
installAddon(manifest, modToUpdate)
for file in manifest.files:
if file.projectId == projectId:
file.fileId = fileId

template isPaxProject*(path = packFolder): bool =
## returns true if the current folder is a pax project folder
Expand Down

0 comments on commit b968735

Please sign in to comment.