Skip to content

Commit

Permalink
Version 1.02
Browse files Browse the repository at this point in the history
  • Loading branch information
Mentrillum committed Sep 30, 2022
1 parent 3153bba commit 27ec90a
Showing 1 changed file with 115 additions and 5 deletions.
120 changes: 115 additions & 5 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2093,7 +2093,29 @@ static void RewriteConfig(string fileName)
}
else
{
rewriteSections = true;
int bracketIndex = 0, bracketLine = i;
while (bracketLine < globalLine.Count && !globalLine[bracketLine].Contains('{'))
{
bracketLine++;
}
bracketLine++;
while (bracketIndex >= 0 && bracketLine < globalLine.Count)
{
if (globalLine[bracketLine].Contains('{'))
{
bracketIndex++;
}
else if (globalLine[bracketLine].Contains('}'))
{
bracketIndex--;
}
bracketLine++;
}
bracketLine--;
if (bracketCheck != bracketLine)
{
rewriteSections = true;
}
}
}
}
Expand Down Expand Up @@ -2180,7 +2202,29 @@ static void RewriteConfig(string fileName)
}
else
{
rewriteSections = true;
int bracketIndex = 0, bracketLine = i;
while (bracketLine < globalLine.Count && !globalLine[bracketLine].Contains('{'))
{
bracketLine++;
}
bracketLine++;
while (bracketIndex >= 0 && bracketLine < globalLine.Count)
{
if (globalLine[bracketLine].Contains('{'))
{
bracketIndex++;
}
else if (globalLine[bracketLine].Contains('}'))
{
bracketIndex--;
}
bracketLine++;
}
bracketLine--;
if (bracketCheck != bracketLine)
{
rewriteSections = true;
}
}
}
}
Expand Down Expand Up @@ -2267,7 +2311,29 @@ static void RewriteConfig(string fileName)
}
else
{
rewriteSections = true;
int bracketIndex = 0, bracketLine = i;
while (bracketLine < globalLine.Count && !globalLine[bracketLine].Contains('{'))
{
bracketLine++;
}
bracketLine++;
while (bracketIndex >= 0 && bracketLine < globalLine.Count)
{
if (globalLine[bracketLine].Contains('{'))
{
bracketIndex++;
}
else if (globalLine[bracketLine].Contains('}'))
{
bracketIndex--;
}
bracketLine++;
}
bracketLine--;
if (bracketCheck != bracketLine)
{
rewriteSections = true;
}
}
}
}
Expand Down Expand Up @@ -2354,7 +2420,29 @@ static void RewriteConfig(string fileName)
}
else
{
rewriteSections = true;
int bracketIndex = 0, bracketLine = i;
while (bracketLine < globalLine.Count && !globalLine[bracketLine].Contains('{'))
{
bracketLine++;
}
bracketLine++;
while (bracketIndex >= 0 && bracketLine < globalLine.Count)
{
if (globalLine[bracketLine].Contains('{'))
{
bracketIndex++;
}
else if (globalLine[bracketLine].Contains('}'))
{
bracketIndex--;
}
bracketLine++;
}
bracketLine--;
if (bracketCheck != bracketLine)
{
rewriteSections = true;
}
}
}
}
Expand Down Expand Up @@ -2441,7 +2529,29 @@ static void RewriteConfig(string fileName)
}
else
{
rewriteSections = true;
int bracketIndex = 0, bracketLine = i;
while (bracketLine < globalLine.Count && !globalLine[bracketLine].Contains('{'))
{
bracketLine++;
}
bracketLine++;
while (bracketIndex >= 0 && bracketLine < globalLine.Count)
{
if (globalLine[bracketLine].Contains('{'))
{
bracketIndex++;
}
else if (globalLine[bracketLine].Contains('}'))
{
bracketIndex--;
}
bracketLine++;
}
bracketLine--;
if (bracketCheck != bracketLine)
{
rewriteSections = true;
}
}
}
}
Expand Down

0 comments on commit 27ec90a

Please sign in to comment.