Skip to main content

pacenotes_installer\cache/
location.rs

1/// `<game dir>\.pacenotes\cache`, beside the ledger, since this installer writes
2/// nothing outside the folder it was pointed at.
3///
4/// Deleting the game takes everything this tool wrote with it, and a folder
5/// moved elsewhere brings its downloads along. The cost is accepted: two game
6/// folders no longer share a cache, so a package wanted in both is fetched
7/// twice, and that second copy keeps the first folder's restore points working
8/// after the second folder is gone.
9pub fn dir_for(game_dir: &std::path::Path) -> std::path::PathBuf {
10    game_dir.join(crate::ledger::STATE_DIR).join("cache")
11}