소스 검색

Clean up FastNativeDetour logging

Bepis 3 년 전
부모
커밋
3558ebf963
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 4
      BepInEx.IL2CPP/Hook/FastNativeDetour.cs

+ 2 - 4
BepInEx.IL2CPP/Hook/FastNativeDetour.cs

@@ -66,15 +66,13 @@ namespace BepInEx.IL2CPP.Hook
 
 			GenerateTrampolineInner(out int trampolineLength, out int jmpLength);
 
-			debuggerLogSource?.LogDebug($"Cleared function length: {trampolineLength} - {jmpLength} = {trampolineLength - jmpLength}");
-
-			debuggerLogSource?.LogDebug($"Trampoline allocation: 0x{TrampolinePtr.ToString("X")}");
-
 			DetourGenerator.ApplyDetour(OriginalFunctionPtr, DetourFunctionPtr, arch, trampolineLength - jmpLength);
 
 
 			if (debuggerLogSource != null)
 			{
+				debuggerLogSource.LogDebug($"Trampoline allocation: 0x{TrampolinePtr.ToString("X")}");
+
 				debuggerLogSource.LogDebug("Modified (32) asm");
 
 				DetourGenerator.Disassemble(debuggerLogSource, OriginalFunctionPtr, 32);