First commit is correcting some warnings clang was complaining about. The other I think might be a solution to your issue where the scores get wiped on a full partition or when the machine shuts down during writing of scores. Basically the strategy is write to a temp file, then rename it over the scores file afterward.
First commit is correcting some warnings clang was complaining about. The other I think might be a solution to your issue where the scores get wiped on a full partition or when the machine shuts down during writing of scores. Basically the strategy is write to a temp file, then rename it over the scores file afterward.