diff --git a/Project-Aurora/Project-Aurora/Profiles/LeagueOfLegends/GameEvent_LoL.cs b/Project-Aurora/Project-Aurora/Profiles/LeagueOfLegends/GameEvent_LoL.cs index 4947e1d82..c6f3c34ea 100644 --- a/Project-Aurora/Project-Aurora/Profiles/LeagueOfLegends/GameEvent_LoL.cs +++ b/Project-Aurora/Project-Aurora/Profiles/LeagueOfLegends/GameEvent_LoL.cs @@ -168,7 +168,7 @@ public override void UpdateTick() } catch (Exception e) { - //Global.logger.Error(e); + Global.logger.Error(e, "Error updating LoL game event"); } } diff --git a/Project-Aurora/Project-Aurora/Profiles/LightingStateManager.cs b/Project-Aurora/Project-Aurora/Profiles/LightingStateManager.cs index a9b9d5d91..894201094 100755 --- a/Project-Aurora/Project-Aurora/Profiles/LightingStateManager.cs +++ b/Project-Aurora/Project-Aurora/Profiles/LightingStateManager.cs @@ -50,8 +50,8 @@ public sealed class LightingStateManager : IDisposable private Application? _currentEvent; public Application CurrentEvent => _currentEvent ?? DesktopProfile; - private readonly List _startedEvents = []; - private readonly List _updatedEvents = []; + private readonly List _startedEvents = []; + private readonly List _updatedEvents = []; private Dictionary EventProcesses { get; } = new(); private Dictionary EventTitles { get; } = new(); @@ -417,18 +417,13 @@ private void UpdateIdleEffects(EffectFrame newFrame) UpdateEvent(_idleE, newFrame); } - private void UpdateEvent(LightEvent @event, EffectFrame frame) + private void UpdateEvent(ILightEvent @event, EffectFrame frame) { StartEvent(@event); @event.UpdateLights(frame); } - private void UpdateEvent(Application @event, EffectFrame frame) - { - @event.UpdateLights(frame); - } - - private void StartEvent(LightEvent @event) + private void StartEvent(ILightEvent @event) { _updatedEvents.Add(@event); @@ -520,11 +515,17 @@ private void Update() } foreach (var @event in GetOverlayActiveProfiles()) + { + StartEvent(@event); @event.UpdateOverlayLights(newFrame); + } //Add the Light event that we're previewing to be rendered as an overlay (assuming it's not already active) if (preview && Global.Configuration.OverlaysInPreview && !GetOverlayActiveProfiles().Contains(profile)) + { + StartEvent(profile); profile.UpdateOverlayLights(newFrame); + } if (Global.Configuration.IdleType != IdleEffects.None) {