Skip to content

Commit

Permalink
Add IsPoe2
Browse files Browse the repository at this point in the history
  • Loading branch information
C1rdec committed Dec 3, 2024
1 parent 48ddb3f commit 17479d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/PoeLurker.Core/ClientLurker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ private void OnFileChanged(string newline)
var generatingLevelEvent = GeneratingLevelEvent.TryParse(newline);
if (generatingLevelEvent != null)
{
Models.PoeApplicationContext.IsPoe2 = true;
GeneratingLevel?.Invoke(this, generatingLevelEvent);
return;
}
Expand Down
5 changes: 5 additions & 0 deletions src/PoeLurker.Core/Models/PoeApplicationContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ public static class PoeApplicationContext
{
#region Properties

/// <summary>
/// Gets or sets a value indicating Poe 2 is running.
/// </summary>
public static bool IsPoe2 { get; set; }

/// <summary>
/// Gets or sets a value indicating whether this instance is running.
/// </summary>
Expand Down

0 comments on commit 17479d2

Please sign in to comment.