diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-31 22:26:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-31 22:26:15 +0300 |
commit | 0ccff23713518cbb237dd636ec68320aa097730c (patch) | |
tree | d3d842903ab9fb318b2bab97bf088526a93b4c98 /src | |
parent | 63de3d28f5df5aadddcd4a926cc79ebae27ddd2b (diff) | |
download | manaplus-0ccff23713518cbb237dd636ec68320aa097730c.tar.gz manaplus-0ccff23713518cbb237dd636ec68320aa097730c.tar.bz2 manaplus-0ccff23713518cbb237dd636ec68320aa097730c.tar.xz manaplus-0ccff23713518cbb237dd636ec68320aa097730c.zip |
Add logging about to set config default values.
Diffstat (limited to 'src')
-rw-r--r-- | src/defaults.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/defaults.cpp b/src/defaults.cpp index b77bf1875..d0412e397 100644 --- a/src/defaults.cpp +++ b/src/defaults.cpp @@ -88,6 +88,8 @@ VariableData* createData(const bool defData) void setConfigDefaults(Configuration &cfg) { + logger->log("Set config default values to configuration %s", + cfg.getFileName().c_str()); cfg.cleanDefaults(); DefaultsData &configData = cfg.getDefaultValues(); AddDEF("OverlayDetail", 2); @@ -416,6 +418,8 @@ void setConfigDefaults(Configuration &cfg) void setConfigDefaults2(Configuration &cfg) { + logger->log("Add config default values to configuration %s", + cfg.getFileName().c_str()); DefaultsData &configData = cfg.getDefaultValues(); const int density = graphicsManager.getDensity(); int size = 12; @@ -461,6 +465,8 @@ void setConfigDefaults2(Configuration &cfg) void setBrandingDefaults(Configuration &cfg) { + logger->log("Set branding default values to configuration %s", + cfg.getFileName().c_str()); cfg.cleanDefaults(); DefaultsData &configData = cfg.getDefaultValues(); AddDEF("wallpapersPath", ""); @@ -519,6 +525,8 @@ void setBrandingDefaults(Configuration &cfg) void setPathsDefaults(Configuration &cfg) { + logger->log("Set path default values to configuration %s", + cfg.getFileName().c_str()); cfg.cleanDefaults(); DefaultsData &configData = cfg.getDefaultValues(); AddDEF("itemIcons", "graphics/items/"); @@ -715,6 +723,8 @@ void setPathsDefaults(Configuration &cfg) void setFeaturesDefaults(Configuration &cfg) { + logger->log("Set features default values to configuration %s", + cfg.getFileName().c_str()); cfg.cleanDefaults(); DefaultsData &configData = cfg.getDefaultValues(); AddDEF("languageTab", false); |