Add a log message for each leaked hook with its address. (#1543)

This commit is contained in:
Ottermandias 2023-11-25 21:24:08 +01:00 committed by GitHub
parent 40e90a39c8
commit a80ab30b4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,6 +91,7 @@ internal class GameInteropProviderPluginScoped : IGameInteropProvider, IServiceT
foreach (var hook in notDisposed)
{
Log.Warning("\t\t\tLeaked hook at +0x{Address:X}", hook.Address.ToInt64() - this.scanner.Module.BaseAddress.ToInt64());
hook.Dispose();
}