KnuckleCracker / CW4-bug-tracker

The gathering point for bugs and supporting information, or suggestions about additional features.
Creative Commons Attribution Share Alike 4.0 International
13 stars 1 forks source link

achievements.dat being written out continuously #1073

Closed knucracker closed 1 year ago

knucracker commented 1 year ago

After a hold objective is obtained (and maybe some others), the game goes from 0MB/s disk access to 0.1MB/s disk access. It appears to be writing out the achievements.dat file repeatedly.

knucracker commented 1 year ago

In Achievements.UnlockAchievement, there was a dirty flag that was always being set regardless of any changes being made. So even though a hold achievement was obtained already, repeated calls to acquire the objective would still cause the dirty flag to be set and the achievements.dat file to be written out.