launcher: fix config not saving when new ini file needs to be created for it (regression created when switching to simpleini)
This commit is contained in:
@@ -37,14 +37,12 @@ namespace Launcher {
|
||||
if (!IsLineInFile("[components]", COMPONENTS_FILE))
|
||||
{
|
||||
PrependFile("[components]\n", COMPONENTS_FILE);
|
||||
*ComponentsConfigChanged = true;
|
||||
}
|
||||
|
||||
// if playerdata.ini has no section name, add one
|
||||
if (!IsLineInFile("[playerdata]", PLAYERDATA_FILE))
|
||||
{
|
||||
PrependFile("[playerdata]\n", PLAYERDATA_FILE);
|
||||
*PlayerdataConfigChanged = true;
|
||||
}
|
||||
|
||||
// if keyconfig.ini has no section name, add one
|
||||
|
||||
Reference in New Issue
Block a user