Save config to temp file, overwrite from temp, then remove temp file
Reported by Scriptish | September 18th, 2011 @ 09:53 PM
My best guess here is that the user's config file got corrupted during a save, in order to solve this I think we should:
- save to a temp file
- overwrite the config file with the temp file
- remove the temp file
When loading we should check for the temp file first, and save immediately if we're using it.