mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-29 03:49:19 +01:00
feat: always use vtable resolver
This commit is contained in:
parent
31d8d45c72
commit
c974a05178
2 changed files with 4 additions and 22 deletions
|
|
@ -48,7 +48,7 @@ namespace Dalamud.Interface.Internal
|
|||
private readonly Hook<SetCursorDelegate> setCursorHook;
|
||||
|
||||
private readonly ManualResetEvent fontBuildSignal;
|
||||
private readonly ISwapChainAddressResolver address;
|
||||
private readonly SwapChainVtableResolver address;
|
||||
private RawDX11Scene? scene;
|
||||
|
||||
// can't access imgui IO before first present call
|
||||
|
|
@ -66,27 +66,8 @@ namespace Dalamud.Interface.Internal
|
|||
|
||||
this.fontBuildSignal = new ManualResetEvent(false);
|
||||
|
||||
try
|
||||
{
|
||||
var sigResolver = new SwapChainSigResolver();
|
||||
sigResolver.Setup(scanner);
|
||||
|
||||
Log.Verbose("Found SwapChain via signatures.");
|
||||
|
||||
this.address = sigResolver;
|
||||
}
|
||||
catch (KeyNotFoundException)
|
||||
{
|
||||
// The SigScanner method fails on wine/proton since DXGI is not a real DLL. We fall back to vtable to detect our Present function address.
|
||||
Log.Debug("Could not get SwapChain address via sig method, falling back to vtable");
|
||||
|
||||
var vtableResolver = new SwapChainVtableResolver();
|
||||
vtableResolver.Setup(scanner);
|
||||
|
||||
Log.Verbose("Found SwapChain via vtable.");
|
||||
|
||||
this.address = vtableResolver;
|
||||
}
|
||||
this.address = new SwapChainVtableResolver();
|
||||
this.address.Setup(scanner);
|
||||
|
||||
try
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue