Skip to main content

Module cache

Module cache 

Source
Expand description

The package cache inside the game folder: payloads named <sha256>.zip, which gives integrity, dedupe and an old version still reachable after the index has moved on, plus a cache.json index keyed by game/directory/name. The root is injected, so it is testable anywhere.

Modulesยง

index ๐Ÿ”’
location ๐Ÿ”’
payloads ๐Ÿ”’

Structsยง

Cache
Swept
What a sweep removed, for the run log.

Enumsยง

IndexState
How cache.json was found. Only Missing means the payloads on disk are really unreferenced; after Unreadable every one of them would look orphaned.

Constantsยง

INDEX_FILE ๐Ÿ”’

Functionsยง

dir_for
<game dir>\.pacenotes\cache, beside the ledger, since this installer writes nothing outside the folder it was pointed at.