mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 21:24:16 +01:00
Permaenable raptureAtkModuleUpdateHook
This commit is contained in:
parent
841c47e186
commit
ba5e3407d6
1 changed files with 2 additions and 4 deletions
|
|
@ -54,6 +54,8 @@ internal class GameInventory : IDisposable, IServiceType
|
||||||
new(&((RaptureAtkModule.RaptureAtkModuleVTable*)RaptureAtkModule.StaticAddressPointers.VTable)->Update),
|
new(&((RaptureAtkModule.RaptureAtkModuleVTable*)RaptureAtkModule.StaticAddressPointers.VTable)->Update),
|
||||||
this.RaptureAtkModuleUpdateDetour);
|
this.RaptureAtkModuleUpdateDetour);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.raptureAtkModuleUpdateHook.Enable();
|
||||||
}
|
}
|
||||||
|
|
||||||
private unsafe delegate void RaptureAtkModuleUpdateDelegate(RaptureAtkModule* ram, float f1);
|
private unsafe delegate void RaptureAtkModuleUpdateDelegate(RaptureAtkModule* ram, float f1);
|
||||||
|
|
@ -85,7 +87,6 @@ internal class GameInventory : IDisposable, IServiceType
|
||||||
{
|
{
|
||||||
this.inventoriesMightBeChanged = true;
|
this.inventoriesMightBeChanged = true;
|
||||||
this.framework.Update += this.OnFrameworkUpdate;
|
this.framework.Update += this.OnFrameworkUpdate;
|
||||||
this.raptureAtkModuleUpdateHook.Enable();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -102,10 +103,7 @@ internal class GameInventory : IDisposable, IServiceType
|
||||||
return;
|
return;
|
||||||
this.subscribersChanged = true;
|
this.subscribersChanged = true;
|
||||||
if (this.subscribersPendingChange.Count == 0)
|
if (this.subscribersPendingChange.Count == 0)
|
||||||
{
|
|
||||||
this.framework.Update -= this.OnFrameworkUpdate;
|
this.framework.Update -= this.OnFrameworkUpdate;
|
||||||
this.raptureAtkModuleUpdateHook.Disable();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue