mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: log deleted achievement files
This commit is contained in:
parent
e2f798c627
commit
9672e649e4
1 changed files with 5 additions and 0 deletions
|
@ -18,6 +18,11 @@ const resetGameAchievements = async (
|
||||||
const achievementFiles = findAchievementFiles(game);
|
const achievementFiles = findAchievementFiles(game);
|
||||||
|
|
||||||
if (achievementFiles.length) {
|
if (achievementFiles.length) {
|
||||||
|
achievementsLogger.info(
|
||||||
|
`deleting achievement files: ${achievementFiles
|
||||||
|
.map((file) => file.filePath)
|
||||||
|
.join(", ")}`
|
||||||
|
);
|
||||||
for (const achievementFile of achievementFiles) {
|
for (const achievementFile of achievementFiles) {
|
||||||
await fs.promises.rm(achievementFile.filePath);
|
await fs.promises.rm(achievementFile.filePath);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue