private DateTime GetStartingPoint(string logDirectory) { var powerEntry = PowerLogWatcher.FindEntryPoint(logDirectory, new[] { "tag=GOLD_REWARD_STATE", "End Spectator" }); var lsEntry = LoadingScreenLogWatcher.FindEntryPoint(logDirectory, "Gameplay.Start"); return(lsEntry > powerEntry ? lsEntry : powerEntry); }
private DateTime GetStartingRow() { DateTime startingPowerRow = PowerLogWatcher.FindEntryPoint(Config.HearthstoneLogDirectory(), new[] { "tag=GOLD_REWARD_STATE", "End Spectator" }); DateTime startingLoadingScreenRow = LoadingScreenLogWatcher.FindEntryPoint(Config.HearthstoneLogDirectory(), new[] { "Gameplay.Start" }); if (startingLoadingScreenRow > startingPowerRow) { return(startingLoadingScreenRow); } return(startingPowerRow); }