mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 05:04:15 +01:00
Use function start signature instead of function call (#1878)
This commit is contained in:
parent
a042ec9a5f
commit
87de538bf7
1 changed files with 15 additions and 1 deletions
|
|
@ -73,9 +73,23 @@ internal class SwapChainVtableResolver : BaseAddressResolver, ISwapChainAddressR
|
||||||
// var p = processModule.BaseAddress + 0x82C7E0; // DXGISwapChain::Present
|
// var p = processModule.BaseAddress + 0x82C7E0; // DXGISwapChain::Present
|
||||||
// var p = processModule.BaseAddress + 0x82FAC0; // DXGISwapChain::runtime_present
|
// var p = processModule.BaseAddress + 0x82FAC0; // DXGISwapChain::runtime_present
|
||||||
// DXGISwapChain::handle_device_loss =>df DXGISwapChain::Present => DXGISwapChain::runtime_present
|
// DXGISwapChain::handle_device_loss =>df DXGISwapChain::Present => DXGISwapChain::runtime_present
|
||||||
|
// 5.2+ - F6 C2 01 0F 85
|
||||||
|
// 6.0+ - F6 C2 01 0F 85 88
|
||||||
|
|
||||||
var scanner = new SigScanner(processModule);
|
var scanner = new SigScanner(processModule);
|
||||||
var runtimePresentSig = "E8 ?? ?? ?? ?? 44 0F B6 55 ??"; // NOTE: This sig is from reshade's DLL, normally dxgi.dll.
|
var runtimePresentSig = "F6 C2 01 0F 85"; // NOTE: This sig is from reshade's DLL, normally dxgi.dll.
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (fileInfo.FileVersion.StartsWith("6."))
|
||||||
|
{
|
||||||
|
runtimePresentSig = "F6 C2 01 0F 85 88";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Log.Error(ex, "Failed to get reshade version info - falling back to 5.x signature");
|
||||||
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue