mirror of
https://github.com/mogzol/BrawlBuilder.git
synced 2024-11-16 14:49:21 +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"))
|
||||
{
|
||||
string line = s.Trim();
|
||||
|
||||
if (line.StartsWith("#"))
|
||||
continue; // ignore comments
|
||||
string line = s.Trim().Substring(0, s.IndexOf('#') < 0 ? s.Length : s.IndexOf('#')); // Trim whitespace, ignore comments
|
||||
|
||||
if (actions.Contains(line))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user