Revert "hook Present and ResizeBuffers with MinHook" (#1231)

This reverts commit 5af1425c97.
This commit is contained in:
Ava Chaney 2023-05-29 23:39:21 -07:00 committed by GitHub
parent 384383140c
commit 716ba59aae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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, true);
this.resizeBuffersHook = Hook<ResizeBuffersDelegate>.FromAddress(this.address.ResizeBuffers, this.ResizeBuffersDetour, true);
this.presentHook = Hook<PresentDelegate>.FromAddress(this.address.Present, this.PresentDetour);
this.resizeBuffersHook = Hook<ResizeBuffersDelegate>.FromAddress(this.address.ResizeBuffers, this.ResizeBuffersDetour);
Log.Verbose("===== S W A P C H A I N =====");
Log.Verbose($"Present address 0x{this.presentHook!.Address.ToInt64():X}");