When loading the configuration, verify that the player names are unique. If they are not, use the default ones. (#96)

This commit is contained in:
lotodore
2012-01-09 18:40:51 +00:00
parent b9793bbb25
commit 92ba846d30
2 changed files with 38 additions and 1 deletions
+4
View File
@@ -36,6 +36,7 @@ public:
~ConfigFile();
void fillBuffer();
void checkAndCorrectBuffer();
void writeBuffer() const;
void updateConfig(ConfigState);
@@ -51,6 +52,9 @@ public:
void writeConfigIntList(std::string varName, std::list<int> varCont);
void deleteConfigFile();
protected:
void checkAndCorrectPlayerNames();
private:
mutable boost::recursive_mutex m_configMutex;