Add some locking IPC

This commit is contained in:
Ottermandias 2023-07-26 18:12:04 +02:00
parent 65b65f572d
commit 4fee749954
5 changed files with 122 additions and 22 deletions

View file

@ -14,7 +14,9 @@ public class GPoseService : EventWrapper<Action<bool>, GPoseService.Priority>
private readonly ConcurrentQueue<Action> _onEnter = new();
public enum Priority
{ }
{
GlamourerIpc = int.MinValue,
}
public bool InGPose { get; private set; } = false;
@ -22,6 +24,7 @@ public class GPoseService : EventWrapper<Action<bool>, GPoseService.Priority>
: base(nameof(GPoseService))
{
_framework = framework;
InGPose = GameMain.IsInGPose();
_framework.Update += OnFramework;
}