mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
baba booey
This commit is contained in:
parent
653f84e0c9
commit
e0cf9a9d2d
@ -4,6 +4,7 @@ using Mono.Cecil.Cil;
|
||||
using Mono.Cecil.Rocks;
|
||||
using QSB.Messaging;
|
||||
using QSB.Utility;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
|
||||
@ -74,7 +75,7 @@ namespace QSBTests
|
||||
{
|
||||
UseType.Store => OpCodes.Stfld,
|
||||
UseType.Load => OpCodes.Ldfld,
|
||||
_ => throw new System.NotImplementedException(),
|
||||
_ => throw new ArgumentOutOfRangeException(nameof(useType), useType, null)
|
||||
};
|
||||
|
||||
while (true)
|
||||
@ -95,11 +96,11 @@ namespace QSBTests
|
||||
break;
|
||||
}
|
||||
|
||||
var callBase = il.Any(x =>
|
||||
var callsBase = il.Any(x =>
|
||||
x.IsOp(OpCodes.Call, out MethodReference m) &&
|
||||
m.Eq(baseMethod)
|
||||
);
|
||||
if (!callBase)
|
||||
if (!callsBase)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user