diff --git a/src/main/services/achievements/find-steam-game-achivement-files.ts b/src/main/services/achievements/find-steam-game-achivement-files.ts index 7cc5bc6a..1f4a0a86 100644 --- a/src/main/services/achievements/find-steam-game-achivement-files.ts +++ b/src/main/services/achievements/find-steam-game-achivement-files.ts @@ -93,14 +93,10 @@ export const findAchievementFileInExecutableDirectory = ( "user_stats.ini" ); - if (fs.existsSync(steamDataPath)) { - return { - type: Cracker.generic, - filePath: steamDataPath, - }; - } - - return null; + return { + type: Cracker.generic, + filePath: steamDataPath, + }; }; export const findAllSteamGameAchievementFiles = () => { diff --git a/src/main/services/achievements/game-achievements-observer.ts b/src/main/services/achievements/game-achievements-observer.ts index cdc2178b..fd582e91 100644 --- a/src/main/services/achievements/game-achievements-observer.ts +++ b/src/main/services/achievements/game-achievements-observer.ts @@ -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[]) => {