mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-14 20:54:16 +01:00
Formatting and use nameof for monohook
This commit is contained in:
parent
54af39cf5c
commit
bc48496803
1 changed files with 2 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
@ -106,8 +106,7 @@ namespace Dalamud.Logging.Internal
|
||||||
Log.Information("s_asyncDebuggingEnabled: {0}", debugField.GetValue(null));
|
Log.Information("s_asyncDebuggingEnabled: {0}", debugField.GetValue(null));
|
||||||
|
|
||||||
var targetMethod = targetType.GetMethod("AddToActiveTasks", BindingFlags.Static | BindingFlags.NonPublic);
|
var targetMethod = targetType.GetMethod("AddToActiveTasks", BindingFlags.Static | BindingFlags.NonPublic);
|
||||||
var patchMethod =
|
var patchMethod = typeof(TaskTracker).GetMethod(nameof(AddToActiveTasksHook), BindingFlags.NonPublic | BindingFlags.Static);
|
||||||
typeof(TaskTracker).GetMethod("AddToActiveTasksHook", BindingFlags.NonPublic | BindingFlags.Static);
|
|
||||||
|
|
||||||
if (targetMethod == null)
|
if (targetMethod == null)
|
||||||
Log.Error("TargetMethod null!");
|
Log.Error("TargetMethod null!");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue