DollEditRegion. Also, if the target file (dolls.txt) within settings/ is writing protected create the file locally instead.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10678 c06c8d41-db1a-0410-9941-cceddc491573
A2LNTNSZT5XRFPHU5SUQ47PLR4VAOBVKMPAUJLWDYWLWEDTPZJZAC const char *dollsTxt = (dollsTxtString.c_str()[0] == 0) ?"dolls.txt" : dollsTxtString.c_str();
struct stat stFileInfo;stat(dollsTxtString.c_str(), &stFileInfo);// Write into the current directory instead if we didn't find the file// or don't have write permissions.const char *dollsTxt = (dollsTxtString.c_str()[0] == 0|| !(stFileInfo.st_mode & S_IWUSR)) ? "dolls.txt": dollsTxtString.c_str();
const char *dollsTxt = (dollsTxtString.c_str()[0] == 0) ?"dolls.txt" : dollsTxtString.c_str();
struct stat stFileInfo;stat(dollsTxtString.c_str(), &stFileInfo);// Try to read from the current directory instead if we didn't find the// file or don't have reading permissions.const char *dollsTxt = (dollsTxtString.c_str()[0] == 0|| !(stFileInfo.st_mode & S_IRUSR)) ? "dolls.txt": dollsTxtString.c_str();