mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +01:00
Initialize InterfaceManager hooks from Framework.Tick (#901)
This commit is contained in:
parent
6835699912
commit
6ad647235c
1 changed files with 30 additions and 27 deletions
|
|
@ -970,9 +970,11 @@ namespace Dalamud.Interface.Internal
|
|||
}
|
||||
|
||||
[ServiceManager.CallWhenServicesReady]
|
||||
private void ContinueConstruction(SigScanner sigScanner)
|
||||
private void ContinueConstruction(SigScanner sigScanner, Framework framework)
|
||||
{
|
||||
this.address.Setup(sigScanner);
|
||||
framework.RunOnFrameworkThread(() =>
|
||||
{
|
||||
this.setCursorHook = Hook<SetCursorDelegate>.FromSymbol("user32.dll", "SetCursor", this.SetCursorDetour, true)!;
|
||||
this.presentHook = new Hook<PresentDelegate>(this.address.Present, this.PresentDetour);
|
||||
this.resizeBuffersHook = new Hook<ResizeBuffersDelegate>(this.address.ResizeBuffers, this.ResizeBuffersDetour);
|
||||
|
|
@ -1003,6 +1005,7 @@ namespace Dalamud.Interface.Internal
|
|||
{
|
||||
Log.Error(ex, "Could not reload RTSS");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void Disable()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue