Skip to content

Commit

Permalink
Need larger MaximumTokenSize value
Browse files Browse the repository at this point in the history
* Profiles with a larger localconfig.vdf require a larger buffer for reading all values #187
  • Loading branch information
rex706 committed May 14, 2024
1 parent ceb62ae commit ae903f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/AccountUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ public static void SetFriendsOnlineMode(FriendsLoginStatus loginMode, string ste
else
{
VdfSerializerSettings vdfSerializerSettings = new VdfSerializerSettings();
vdfSerializerSettings.MaximumTokenSize = 4096 * 2;
vdfSerializerSettings.MaximumTokenSize = 4096 * 4;
vdfSerializerSettings.UsesEscapeSequences = true;
localconfig = VdfConvert.Deserialize(File.ReadAllText(configFile),vdfSerializerSettings);
}
Expand Down

0 comments on commit ae903f5

Please sign in to comment.