Skip to content

Commit

Permalink
Expose the first child of an appinfo section.
Browse files Browse the repository at this point in the history
Bump up assembly version to 1.2.0.
  • Loading branch information
voided committed Nov 4, 2012
1 parent a9a7b04 commit 67398e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SteamKit2/SteamKit2/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion( "1.1.0.*" )]
[assembly: AssemblyVersion( "1.2.0.*" )]
6 changes: 5 additions & 1 deletion SteamKit2/SteamKit2/Steam3/Handlers/SteamApps/Callbacks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,14 @@ internal App( CMsgClientAppInfoResponse.App app, AppInfoStatus status )
foreach ( var section in app.sections )
{
KeyValue kv = new KeyValue();

using ( MemoryStream ms = new MemoryStream( section.section_kv ) )
kv.ReadAsBinary( ms );

Sections.Add( ( EAppInfoSection )section.section_id, kv );
if ( kv.Children != null )
{
Sections.Add( ( EAppInfoSection )section.section_id, kv.Children.FirstOrDefault() );
}
}
}

Expand Down

0 comments on commit 67398e4

Please sign in to comment.