mirror of
https://github.com/glest/glest-source.git
synced 2025-08-25 17:20:43 +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;
|
||||
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) {
|
||||
|
Reference in New Issue
Block a user