Add autoswap = true replacement in launch.ini
This commit is contained in:
1 parent
299007a8e3
commit
07cb18d955
1 file changed
+9
@@ -272,6 +272,15 @@ namespace BadBuilder
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < launchIniLines.Count; i++)
|
||||
{
|
||||
if (launchIniLines[i].TrimStart().StartsWith("autoswap", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
launchIniLines[i] = "autoswap = true";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
File.WriteAllLines(launchIniPath, launchIniLines);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user