mirror of
https://github.com/mogzol/BrawlBuilder.git
synced 2025-02-23 03:57:10 +01:00
Fix comments in CodePatches.txt not counting as blank lines
This commit is contained in:
parent
5fe4d69868
commit
ba4b6f6708
@ -170,10 +170,7 @@ namespace BrawlBuilder
|
|||||||
|
|
||||||
foreach (string s in File.ReadLines(@".\Resources\CodePatches.txt"))
|
foreach (string s in File.ReadLines(@".\Resources\CodePatches.txt"))
|
||||||
{
|
{
|
||||||
string line = s.Trim();
|
string line = s.Trim().Substring(0, s.IndexOf('#') < 0 ? s.Length : s.IndexOf('#')); // Trim whitespace, ignore comments
|
||||||
|
|
||||||
if (line.StartsWith("#"))
|
|
||||||
continue; // ignore comments
|
|
||||||
|
|
||||||
if (actions.Contains(line))
|
if (actions.Contains(line))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user