Skip to content

Commit 95ed360

Browse files
committed
adjusted debug notification time
1 parent 9f93294 commit 95ed360

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Detour.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ class Detour
1212
{
1313
public static void DoDetour(MethodInfo source, MethodInfo target)
1414
{
15+
if (LogOutput.DebugMode_TA_enabled) { LogOutput.WriteLogMessage(Errorlevel.Warning, "DEBUG MODE ACTIVATED"); }
16+
1517
MethodInfo methodToReplace = target;
16-
if (LogOutput.DebugMode_TA_enabled) { LogOutput.WriteLogMessage(Errorlevel.Warning, "DEBUG MODE ACTIVATED"); }
17-
MethodInfo methodToInject = source;
18+
MethodInfo methodToInject = source;
1819

1920
RuntimeHelpers.PrepareMethod(methodToReplace.MethodHandle);
2021
RuntimeHelpers.PrepareMethod(methodToInject.MethodHandle);

0 commit comments

Comments
 (0)