mirror of
https://github.com/glest/glest-source.git
synced 2025-08-26 09:24:24 +02:00
- bugfix for user ini files whne missing, we auto-create them and set proper flags (thanks Muwum)
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user