summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/files.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-24 20:08:10 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-24 20:08:10 +0000
commit6760750eb72b4507db1f7660bab88e013dc3fa94 (patch)
tree9b4b3d500e4facdab61b5b7ed975f69e2067b009 /crawl-ref/source/files.cc
parentfa22f87e8ff71520801954ebeebff2e4499709c8 (diff)
downloadcrawl-ref-6760750eb72b4507db1f7660bab88e013dc3fa94.tar.gz
crawl-ref-6760750eb72b4507db1f7660bab88e013dc3fa94.zip
Added DGL_STARTUP_PREFS_BY_NAME to store new character options by username
for dgamelaunch. Dropped ice statue hitpoints to compensate for their immunity to disintegration. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2195 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/files.cc')
-rw-r--r--crawl-ref/source/files.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc
index 20a0a93579..b428ea85b1 100644
--- a/crawl-ref/source/files.cc
+++ b/crawl-ref/source/files.cc
@@ -547,7 +547,12 @@ std::string get_savedir_filename(const std::string &prefix,
std::string get_prefs_filename()
{
+#ifdef DGL_STARTUP_PREFS_BY_NAME
+ return get_savedir_filename("start-" + Options.player_name + "-",
+ "ns", "prf", true);
+#else
return get_savedir_filename("start", "ns", "prf");
+#endif
}
static std::string get_level_suffix(int level, branch_type where,