summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/initfile.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/initfile.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/initfile.cc')
-rw-r--r--crawl-ref/source/initfile.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc
index f37ac9da9b..5fc1f998ba 100644
--- a/crawl-ref/source/initfile.cc
+++ b/crawl-ref/source/initfile.cc
@@ -50,8 +50,6 @@ game_options Options;
const static char *obj_syms = ")([/%.?=!.+\\0}X$";
const static int obj_syms_len = 16;
-static void read_startup_prefs();
-
template<class A, class B> void append_vector(A &dest, const B &src)
{
dest.insert( dest.end(), src.begin(), src.end() );
@@ -1016,14 +1014,11 @@ std::string read_init_file(bool runscript)
}
read_options(f, runscript);
- if (!runscript)
- read_startup_prefs();
-
fclose(f);
return std::string(name_buff);
} // end read_init_file()
-static void read_startup_prefs()
+void read_startup_prefs()
{
#ifndef DISABLE_STICKY_STARTUP_OPTIONS
std::string fn = get_prefs_filename();
@@ -1589,11 +1584,13 @@ void game_options::read_option_line(const std::string &str, bool runscript)
}
}
}
+#ifndef DGAMELAUNCH
else if (key == "name")
{
// field is already cleaned up from trim_string()
player_name = field;
}
+#endif
else if (key == "char_set" || key == "ascii_display")
{
bool valid = true;