public override void Apply(List<string> lines)
{
bool found = false;
for (int i = 0; i < lines.Count; i++)
{
if (lines[i] == OldLine)
{
lines[i] = NewLine;
found = true;
break;
}
}
if (!found)
throw new Exception("Failed to apply patch for " + FilePath);
}