Skip to content

Commit

Permalink
Reading the Hash Keys from a file, allowing commented lines
Browse files Browse the repository at this point in the history
  • Loading branch information
d0vgan committed Feb 15, 2022
1 parent fa8e38e commit 45e8faf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions SharpKeys/Dialog_Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,9 @@ private bool ReadHashKeysFromFile(string pathToKeysFile)

foreach (string line in lines)
{
if (line.TrimStart().StartsWith("//"))
continue; // skipping a comment

string[] items = line.Split(new char[]{','}, 2);
if (items.GetLength(0) == 2)
{
Expand Down

0 comments on commit 45e8faf

Please sign in to comment.