mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-22 00:19:18 +01:00
Reset cache before emitting each framework event
This commit is contained in:
parent
00ee30f0d9
commit
ebbd79274b
1 changed files with 4 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ namespace Dalamud.Game.Internal {
|
||||||
public event OnUpdateDelegate OnUpdateEvent;
|
public event OnUpdateDelegate OnUpdateEvent;
|
||||||
|
|
||||||
private Hook<OnUpdateDetour> updateHook;
|
private Hook<OnUpdateDetour> updateHook;
|
||||||
|
private Dalamud dalamud;
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
@ -49,6 +50,8 @@ namespace Dalamud.Game.Internal {
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
public Framework(SigScanner scanner, Dalamud dalamud) {
|
public Framework(SigScanner scanner, Dalamud dalamud) {
|
||||||
|
this.dalamud = dalamud;
|
||||||
|
|
||||||
Address = new FrameworkAddressResolver();
|
Address = new FrameworkAddressResolver();
|
||||||
Address.Setup(scanner);
|
Address.Setup(scanner);
|
||||||
|
|
||||||
|
|
@ -101,6 +104,7 @@ namespace Dalamud.Game.Internal {
|
||||||
|
|
||||||
private bool HandleFrameworkUpdate(IntPtr framework) {
|
private bool HandleFrameworkUpdate(IntPtr framework) {
|
||||||
try {
|
try {
|
||||||
|
dalamud.ClientState.Actors.ResetCache();
|
||||||
Gui.Chat.UpdateQueue(this);
|
Gui.Chat.UpdateQueue(this);
|
||||||
Network.UpdateQueue(this);
|
Network.UpdateQueue(this);
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue