Skip to content

Update hooks to use ClientStructs - #4

Open
Haselnussbomber wants to merge 1 commit into
perchbirdd:masterfrom
Haselnussbomber:update-hooks
Open

Haselnussbomber wants to merge 1 commit into
perchbirdd:masterfrom
Haselnussbomber:update-hooks

Conversation

@Haselnussbomber

Copy link
Copy Markdown

Fixes these errors printed in /xllog, only to be seen when Dalamuds Dev Mode is enabled:

03:42:09.641 | ERR | Hook verification failed - this may cause crashes and subtle bugs
	Dalamud.Hooking.Internal.Verification.HookVerificationException: Hook verification failed for address 0x7FF644A15450 (relative base: ffxiv_dx11.exe+0x315450)
	
	Hook creation caller: ResLogger2.Plugin, Version=0.0.3.4, Culture=neutral, PublicKeyToken=null
	Name:                 Client::System::Resource::ResourceManager.GetResourceAsync
	Why:                  Failed match against expected documentation.
	Fail Context:         Param count check.
	Passed Delegate:      IntPtr (IntPtr, IntPtr, IntPtr, IntPtr, IntPtr, IntPtr, Byte)
	Correct Delegate:     ResourceHandle* (ResourceManager*, ResourceCategory*, UInt32*, UInt32*, CStringPointer, Void*, Boolean, Void*, UInt32)
	
	Canonical Sig:        E8 ?? ?? ?? 00 48 8B D8 EB ?? F0 FF 83 ?? ?? 00 00
	
	The hook delegate must exactly match the provided signature to prevent memory corruption and wrong data passed to originals.

03:42:09.642 | ERR | Hook verification failed - this may cause crashes and subtle bugs
	Dalamud.Hooking.Internal.Verification.HookVerificationException: Hook verification failed for address 0x7FF644A15700 (relative base: ffxiv_dx11.exe+0x315700)
	
	Hook creation caller: ResLogger2.Plugin, Version=0.0.3.4, Culture=neutral, PublicKeyToken=null
	Name:                 Client::System::Resource::ResourceManager.GetResourceSync
	Why:                  Failed match against expected documentation.
	Fail Context:         Param count check.
	Passed Delegate:      IntPtr (IntPtr, IntPtr, IntPtr, IntPtr, IntPtr, IntPtr)
	Correct Delegate:     ResourceHandle* (ResourceManager*, ResourceCategory*, UInt32*, UInt32*, CStringPointer, Void*, Void*, UInt32)
	
	Canonical Sig:        E8 ?? ?? ?? ?? 48 8B C8 8B C3 F0 0F C0 81
	
	The hook delegate must exactly match the provided signature to prevent memory corruption and wrong data passed to originals.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant