mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-01 05:13:40 +01:00
hook Present and ResizeBuffers with MinHook
potentially works around a rare crash regarding discord hooks in functions called by Framework::Update()
This commit is contained in:
parent
681cda91a4
commit
5af1425c97
1 changed files with 2 additions and 2 deletions
|
|
@ -1005,8 +1005,8 @@ internal class InterfaceManager : IDisposable, IServiceType
|
|||
Log.Error(ex, "Could not enable immersive mode");
|
||||
}
|
||||
|
||||
this.presentHook = Hook<PresentDelegate>.FromAddress(this.address.Present, this.PresentDetour);
|
||||
this.resizeBuffersHook = Hook<ResizeBuffersDelegate>.FromAddress(this.address.ResizeBuffers, this.ResizeBuffersDetour);
|
||||
this.presentHook = Hook<PresentDelegate>.FromAddress(this.address.Present, this.PresentDetour, true);
|
||||
this.resizeBuffersHook = Hook<ResizeBuffersDelegate>.FromAddress(this.address.ResizeBuffers, this.ResizeBuffersDetour, true);
|
||||
|
||||
Log.Verbose("===== S W A P C H A I N =====");
|
||||
Log.Verbose($"Present address 0x{this.presentHook!.Address.ToInt64():X}");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue