Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Avoid overwriting an invalid/corrupt preferences file. #4361
Example: $ mkdir /tmp/foo $ echo '[foo]' > /tmp/foo/preferences $ ./wesnoth --userconfig-dir=/tmp/foo Before this patch, /tmp/foo/preferences would be overwritten. With this patch, it would be preserved.
so wesnoth now just closes? for people that don't know how to access this file this would mean that wesnoth is then permanently broken for them right?
I think it'd be better if wesnoth would just make a backup of the corrupted file and then overwrites it as it did before.
The error message gives the path of the file.
#1326 (comment), third paragraph.