From 4757bd3bb8cdf11aa407a564a406de5e425ca1f3 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 11 Mar 2011 01:22:24 +0000 Subject: [PATCH] - bugfix for user ini files whne missing, we auto-create them and set proper flags (thanks Muwum) --- source/glest_game/global/config.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/glest_game/global/config.cpp b/source/glest_game/global/config.cpp index 59153615..6dec5dbd 100644 --- a/source/glest_game/global/config.cpp +++ b/source/glest_game/global/config.cpp @@ -149,6 +149,9 @@ Config::Config(std::pair type, std::pair f std::ofstream userFile; userFile.open(fileName.second.c_str(), ios_base::out | ios_base::trunc); userFile.close(); + + fileLoaded.second = true; + properties.second.load(fileName.second); } } catch(const exception &ex) {