Merge pull request #3 from CaitSith2/master

hactool uses both comma AND equal for seperators on all key sets.
This commit is contained in:
Alex Barney 2018-08-22 13:21:00 -06:00 committed by GitHub
commit dce63507d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -110,7 +110,7 @@ namespace libhac
string line; string line;
while ((line = reader.ReadLine()) != null) while ((line = reader.ReadLine()) != null)
{ {
var a = line.Split('='); var a = line.Split(',', '=');
if (a.Length != 2) continue; if (a.Length != 2) continue;
var key = a[0].Trim(); var key = a[0].Trim();
@ -144,7 +144,7 @@ namespace libhac
string line; string line;
while ((line = reader.ReadLine()) != null) while ((line = reader.ReadLine()) != null)
{ {
var a = line.Split(','); var a = line.Split(',', '=');
if (a.Length != 2) continue; if (a.Length != 2) continue;
var rightsId = a[0].Trim().ToBytes(); var rightsId = a[0].Trim().ToBytes();