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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user