- bugfix for user ini files whne missing, we auto-create them and set proper flags (thanks Muwum)
This commit is contained in:
parent
ee773ef96b
commit
4757bd3bb8
|
@ -149,6 +149,9 @@ Config::Config(std::pair<ConfigType,ConfigType> type, std::pair<string,string> f
|
||||||
std::ofstream userFile;
|
std::ofstream userFile;
|
||||||
userFile.open(fileName.second.c_str(), ios_base::out | ios_base::trunc);
|
userFile.open(fileName.second.c_str(), ios_base::out | ios_base::trunc);
|
||||||
userFile.close();
|
userFile.close();
|
||||||
|
|
||||||
|
fileLoaded.second = true;
|
||||||
|
properties.second.load(fileName.second);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch(const exception &ex) {
|
catch(const exception &ex) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user