mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-01-23 13:34:54 +03:00
fix: adjustment to get achievements when file is created after watcher started
This commit is contained in:
parent
05652d9c1b
commit
d5b1bcdc7f
@ -93,14 +93,10 @@ export const findAchievementFileInExecutableDirectory = (
|
||||
"user_stats.ini"
|
||||
);
|
||||
|
||||
if (fs.existsSync(steamDataPath)) {
|
||||
return {
|
||||
type: Cracker.generic,
|
||||
filePath: steamDataPath,
|
||||
};
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
export const findAllSteamGameAchievementFiles = () => {
|
||||
|
@ -54,7 +54,9 @@ const compareFile = async (game: Game, file: AchievementFile) => {
|
||||
fileStats.get(file.filePath)
|
||||
);
|
||||
await processAchievementFile(game, file);
|
||||
} catch (err) {}
|
||||
} catch (err) {
|
||||
fileStats.set(file.filePath, -1);
|
||||
}
|
||||
};
|
||||
|
||||
export const startGameAchievementObserver = async (games: Game[]) => {
|
||||
|
Loading…
Reference in New Issue
Block a user