Skip to content

Commit

Permalink
change the internal Name property to use a null byte for delimiter to…
Browse files Browse the repository at this point in the history
… avoid some edge cases with duplicate key/value names
  • Loading branch information
tomysshadow committed Jun 4, 2024
1 parent b313b6b commit c1ed19d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion FlashpointSecurePlayer/Shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1634,6 +1634,10 @@ public string _ValueExpanded {
}
}

// this property is never stored in configurations
// and is only for internal use. The null byte is used
// as seperation since the backslash is not a good enough
// delimiter for a primary key (value names can contain them)
public string Name {
get {
string keyName = KeyName;
Expand All @@ -1647,7 +1651,7 @@ public string Name {
if (!String.IsNullOrEmpty(valueName)) {
valueName = valueName.ToUpperInvariant();
}
return keyName + "\\" + valueName;
return keyName + "\0" + valueName;
}
}

Expand Down

0 comments on commit c1ed19d

Please sign in to comment.