Skip to content

Commit

Permalink
Update to handle replay build 85027 (HotS Overwatch Cosplay event)
Browse files Browse the repository at this point in the history
  • Loading branch information
barrett777 committed May 18, 2021
1 parent 7ce8b00 commit b925035
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Heroes.ReplayParser/MPQFiles/ReplayInitData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,21 @@ public static void Parse(Replay replay, byte[] buffer)
reader.ReadBoolean(); // m_isPremadeFFA
reader.ReadBoolean(); // m_isCoopMode

if (replay.ReplayBuild >= 85027)
{
reader.ReadBoolean(); // m_isRandomTestValue

// m_disabledHeroList
var disabledHeroListLength = reader.Read(10);

// TODO: This has been '0' in all my games, so nothing to see here
// I'm not sure what it is for. Maybe it is just for ranked games, or something yet to be implemented in the game client
for (var i = 0; i < disabledHeroListLength; i++)
{
var disabledHero = new string(BitConverter.GetBytes(reader.Read(32)).Select(k => (char)k).Reverse().ToArray());
}
}

#region m_lobbyState

reader.Read(3); // m_phase
Expand Down

0 comments on commit b925035

Please sign in to comment.