Skip to content

Commit

Permalink
Merge pull request #75 from MrAwesomeRocks/patch-1
Browse files Browse the repository at this point in the history
fix caching on windows
  • Loading branch information
froehlichA committed Jun 13, 2022
2 parents eec6259 + 86f7638 commit 6039bb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/api/cfcache.nim
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ const

proc getAddonFilename*(projectId: int): string {.inline.} =
## get the filename of an addon in the cache.
return getCacheDir("pax") / ("addon:" & $projectId)
return getCacheDir("pax") / ("addon-" & $projectId)

proc getAddonFileFilename*(fileId: int): string {.inline.} =
## get the filename of an addon file in the cache.
return getCacheDir("pax") / ("file:" & $fileId)
return getCacheDir("pax") / ("file-" & $fileId)

proc putAddon*(addon: CfAddon): void =
## put an addon in the cache.
Expand Down Expand Up @@ -115,4 +115,4 @@ template withCachedAddonFile*(c: untyped, fileId: int, body: untyped) =
let addonFile = getAddonFile(fileId)
if addonFile.isSome:
let c: JsonNode = addonFile.get()
body
body

0 comments on commit 6039bb4

Please sign in to comment.