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 Dec 10, 2020
1 parent 83efd12 commit 2d42505
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 @@ -850,6 +850,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 2d42505

Please sign in to comment.