Skip to content

Commit

Permalink
Reading the Hash Keys from a file, small update
Browse files Browse the repository at this point in the history
  • Loading branch information
d0vgan committed Dec 10, 2020
1 parent 8fee283 commit 83efd12
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions SharpKeys/Dialog_Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -863,16 +863,12 @@ private bool ReadHashKeysFromFile(string pathToKeysFile)
n = param2.IndexOf("//", n);
if (n != -1)
{
param2 = param2.Remove(n);
param2 = param2.TrimEnd();
param2 = param2.Remove(n).TrimEnd();
}
}

param2 = UnquoteString(param2);
param2 = Regex.Unescape(param2);

param1 = UnquoteString(param1);
param1 = Regex.Unescape(param1);
param2 = Regex.Unescape(UnquoteString(param2));
param1 = Regex.Unescape(UnquoteString(param1));

m_hashKeys.Add(param1, param2);
}
Expand Down

0 comments on commit 83efd12

Please sign in to comment.