mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
bail on tasktracker hook error
This commit is contained in:
parent
c53aced272
commit
edc38bae5e
1 changed files with 8 additions and 2 deletions
|
|
@ -123,10 +123,16 @@ namespace Dalamud.Logging.Internal
|
|||
var patchMethod = typeof(TaskTracker).GetMethod(nameof(AddToActiveTasksHook), BindingFlags.NonPublic | BindingFlags.Static);
|
||||
|
||||
if (targetMethod == null)
|
||||
Log.Error("TargetMethod null!");
|
||||
{
|
||||
Log.Error("AddToActiveTasks TargetMethod null!");
|
||||
return;
|
||||
}
|
||||
|
||||
if (patchMethod == null)
|
||||
Log.Error("PatchMethod null!");
|
||||
{
|
||||
Log.Error("AddToActiveTasks PatchMethod null!");
|
||||
return;
|
||||
}
|
||||
|
||||
this.scheduleAndStartHook = new MonoMod.RuntimeDetour.Hook(targetMethod, patchMethod);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue