update to dotnet 8

This commit is contained in:
zznty
2023-12-02 19:06:05 +07:00
parent c5309fe8b0
commit 51a35a73dc
7 changed files with 158 additions and 227 deletions

View File

@@ -11,10 +11,10 @@ public static class MethodTools
var (_, operand) = PatchProcessor.ReadMethodBody(method).First();
if (operand is not LocalVariableInfo localVar)
throw new InvalidOperationException($"Method {method.GetID()} does not contain a valid async state machine");
throw new InvalidOperationException($"Method {method.FullDescription()} does not contain a valid async state machine");
return AccessTools.Method(localVar.LocalType, "MoveNext") ??
throw new InvalidOperationException(
$"Async State machine of method {method.GetID()} does not contain a valid MoveNext method");
$"Async State machine of method {method.FullDescription()} does not contain a valid MoveNext method");
}
}