mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
Merge branch 'feature/game-achievements' into chore/test-preview
This commit is contained in:
commit
96b15d341a
1 changed files with 8 additions and 1 deletions
|
@ -79,7 +79,14 @@ const compareFile = async (game: Game, file: AchievementFile) => {
|
||||||
const previousStat = fileStats.get(file.filePath);
|
const previousStat = fileStats.get(file.filePath);
|
||||||
fileStats.set(file.filePath, currentStat.mtimeMs);
|
fileStats.set(file.filePath, currentStat.mtimeMs);
|
||||||
|
|
||||||
if (!previousStat || previousStat === currentStat.mtimeMs) {
|
if (!previousStat) {
|
||||||
|
if (currentStat.mtimeMs) {
|
||||||
|
await processAchievementFileDiff(game, file);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (previousStat === currentStat.mtimeMs) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue