summaryrefslogtreecommitdiff
path: root/src/configmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-07 04:05:07 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-07 04:05:07 +0300
commit37dfcd854b76707dbf783fc0d371081f5fcaf7d2 (patch)
treeea04b542cffa92c5fbc67f39b5b5183c12917a5b /src/configmanager.cpp
parentd2ed5ba429329d435e6d010acad3b14ae9179c7d (diff)
downloadmanaverse-37dfcd854b76707dbf783fc0d371081f5fcaf7d2.tar.gz
manaverse-37dfcd854b76707dbf783fc0d371081f5fcaf7d2.tar.bz2
manaverse-37dfcd854b76707dbf783fc0d371081f5fcaf7d2.tar.xz
manaverse-37dfcd854b76707dbf783fc0d371081f5fcaf7d2.zip
Fix tests after last changes.
Diffstat (limited to 'src/configmanager.cpp')
-rw-r--r--src/configmanager.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/configmanager.cpp b/src/configmanager.cpp
index e79753a66..953a7c2e7 100644
--- a/src/configmanager.cpp
+++ b/src/configmanager.cpp
@@ -69,6 +69,12 @@ void ConfigManager::initServerConfig(const std::string &serverName)
{
configFile = fopen(configPath.c_str(), "wt");
logger->log("Creating new server config: " + configPath);
+ if (configFile)
+ {
+ fputs("<?xml version=\"1.0\"?>\n", configFile);
+ fputs("<configuration>\n", configFile);
+ fputs("</configuration>\n", configFile);
+ }
}
if (configFile)
{