don't override present if we didn't actually find anything

This commit is contained in:
goat 2024-07-07 00:33:16 +02:00
parent 934fc6c948
commit a8a336009b

View file

@ -134,8 +134,12 @@ internal class SwapChainVtableResolver : BaseAddressResolver, ISwapChainAddressR
fileInfo.FileVersion ?? "Unknown",
reShadeDxgiPresent.ToString("X"));
this.Present = reShadeDxgiPresent;
this.IsReshade = true;
if (reShadeDxgiPresent != IntPtr.Zero)
{
this.Present = reShadeDxgiPresent;
this.IsReshade = true;
}
break;
}
catch (Exception e)