AIO: Merge Vista/7/10, don't delete existing config when updating

This commit is contained in:
nastys
2020-09-24 00:31:09 +02:00
parent 3141c651b6
commit c23bb3d016
28 changed files with 161 additions and 168 deletions
+2 -1
View File
@@ -33,17 +33,18 @@ namespace Launcher {
this->ClientSize = Drawing::Size(444, 323);
TabPadding^ tabpad = gcnew TabPadding(tabControl);
// if components.ini has no section name, add one
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