From 10befe493819ace153aacd2782ee046cbaf9c2f2 Mon Sep 17 00:00:00 2001 From: Bart Trzynadlowski Date: Mon, 27 Mar 2017 03:10:36 +0000 Subject: [PATCH] No need to enclose values in quotes when writing INI file. Print that file was saved to console and log. --- Src/Util/ConfigBuilders.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Src/Util/ConfigBuilders.cpp b/Src/Util/ConfigBuilders.cpp index 1a5c9f2..9931c2c 100644 --- a/Src/Util/ConfigBuilders.cpp +++ b/Src/Util/ConfigBuilders.cpp @@ -208,7 +208,7 @@ namespace Util for (auto it = section.begin(); it != section.end(); ++it) { if (it->IsLeaf()) //TODO: check if value exists? - file << it->Key() << " = \"" << it->ValueAs() << "\"" << std::endl; + file << it->Key() << " = " << it->ValueAs() << std::endl; } file << std::endl << std::endl; } @@ -230,6 +230,8 @@ namespace Util if (it->HasChildren()) WriteSection(file, *it); } + printf("Configuration successfully saved to '%s'.\n", filename.c_str()); + InfoLog("Configuration successfully saved to '%s'.", filename.c_str()); } } }