Skip to content

Commit

Permalink
fix power.log stored in .hdtreplay
Browse files Browse the repository at this point in the history
with the previous implementation entity creations to be missing from the log
  • Loading branch information
Alexander Zeier committed Nov 23, 2015
1 parent 8389be8 commit ee301de
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions Hearthstone Deck Tracker/LogReader/LogReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,6 @@ private void ReadLogFile()
{
if(!line.StartsWith("D ") || (!sr.EndOfStream && sr.Peek() != 'D'))
break;
if(_info.Name == "Power")
GameV2.AddHSLogLine(line);
if(!_info.HasFilters || _info.StartsWithFilters.Any(x => line.Substring(19).StartsWith(x))
|| _info.ContainsFilters.Any(x => line.Substring(19).Contains(x)))
{
Expand Down
1 change: 1 addition & 0 deletions Hearthstone Deck Tracker/LogReader/LogReaderManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ private static void ProcessNewLines()
{
case "Power":
PowerGameStateLineHandler.Handle(line.Line, _gameState, _game);
GameV2.AddHSLogLine(line.Line);
API.LogEvents.OnPowerLogLine.Execute(line.Line);
break;
case "Zone":
Expand Down

0 comments on commit ee301de

Please sign in to comment.