From e8b492074d7865186c338c06c4e7f79af7425a4b Mon Sep 17 00:00:00 2001 From: eble_lars Date: Sat, 19 Nov 2022 01:05:33 +0100 Subject: [PATCH] Fix #204 Remove LCU listener for game end state, use process only --- LeagueBroadcast/Common/Controllers/AppStateController.cs | 3 +++ LeagueBroadcast/LeagueBroadcast.csproj | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/LeagueBroadcast/Common/Controllers/AppStateController.cs b/LeagueBroadcast/Common/Controllers/AppStateController.cs index f693f78..c2ad908 100644 --- a/LeagueBroadcast/Common/Controllers/AppStateController.cs +++ b/LeagueBroadcast/Common/Controllers/AppStateController.cs @@ -153,10 +153,13 @@ private void ClientStateChanged(object sender, LeagueEvent e) string eventType = e.Data.ToString(); Log.Info($"League State: {eventType}"); + /* Detect game end via process close instead of the client if the LCU is going to be buggy -.- if (!eventType.Equals("InProgress") && BroadcastController.CurrentLeagueState.HasFlag(LeagueState.InProgress)) { GameStop?.Invoke(this, EventArgs.Empty); } + + */ if (!eventType.Equals("ChampSelect") && BroadcastController.CurrentLeagueState.HasFlag(LeagueState.ChampSelect)) { ChampSelectStop?.Invoke(this, EventArgs.Empty); diff --git a/LeagueBroadcast/LeagueBroadcast.csproj b/LeagueBroadcast/LeagueBroadcast.csproj index 9e8e225..8c302c8 100644 --- a/LeagueBroadcast/LeagueBroadcast.csproj +++ b/LeagueBroadcast/LeagueBroadcast.csproj @@ -15,8 +15,8 @@ https://github.com/floh22/LeagueBroadcast Git BE_icon.png - 1.5.25.0 - 1.5.25.0 + 1.5.37.0 + 1.5.37.0 OnBuildSuccess