summaryrefslogtreecommitdiff
path: root/src/defaults.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-12 23:19:23 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-12 23:19:23 +0300
commita18645643144058d67301435505a506e36e0aa6b (patch)
treeab7c333c3e2c2ffc7ee4ebfb98ae63f1edda13bd /src/defaults.cpp
parente82b08179b74bd8bf54157897ee06626422f72b8 (diff)
downloadplus-a18645643144058d67301435505a506e36e0aa6b.tar.gz
plus-a18645643144058d67301435505a506e36e0aa6b.tar.bz2
plus-a18645643144058d67301435505a506e36e0aa6b.tar.xz
plus-a18645643144058d67301435505a506e36e0aa6b.zip
add features configuration file to enable/disable features per server.
Diffstat (limited to 'src/defaults.cpp')
-rw-r--r--src/defaults.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/defaults.cpp b/src/defaults.cpp
index 92ef24627..c5fd20828 100644
--- a/src/defaults.cpp
+++ b/src/defaults.cpp
@@ -71,7 +71,6 @@ VariableData* createData(const bool defData)
DefaultsData* getConfigDefaults()
{
DefaultsData *const configData = new DefaultsData;
- // Init main config defaults
AddDEF("OverlayDetail", 2);
AddDEF("speechBubbleAlpha", 1.0f);
AddDEF("MostUsedServerName0", "server.themanaworld.org");
@@ -369,7 +368,6 @@ void getConfigDefaults2(DefaultsData *const configData)
DefaultsData* getBrandingDefaults()
{
DefaultsData *const configData = new DefaultsData;
- // Init config defaults
AddDEF("wallpapersPath", "");
AddDEF("wallpapersFile", "");
AddDEF("appName", "ManaPlus");
@@ -384,7 +382,6 @@ DefaultsData* getBrandingDefaults()
AddDEF("appShort", "mana");
AddDEF("defaultUpdateHost", "");
AddDEF("helpPath", "");
-// AddDEF("onlineServerList", "");
AddDEF("theme", "");
AddDEF("font", "fonts/dejavusans.ttf");
AddDEF("boldFont", "fonts/dejavusans-bold.ttf");
@@ -408,7 +405,6 @@ DefaultsData* getBrandingDefaults()
DefaultsData* getPathsDefaults()
{
DefaultsData *const configData = new DefaultsData;
- // Init paths.xml defaults
AddDEF("itemIcons", "graphics/items/");
AddDEF("unknownItemFile", "unknown-item.png");
AddDEF("sprites", "graphics/sprites/");
@@ -440,4 +436,10 @@ DefaultsData* getPathsDefaults()
return configData;
}
+DefaultsData* getFeaturesDefaults()
+{
+ DefaultsData *const configData = new DefaultsData;
+ AddDEF("languageTab", false);
+}
+
#undef AddDEF