fix: 修复在Unity 2019上的编译错误

main
walon 2025-08-05 14:20:46 +08:00
parent 50fe1e1179
commit b68571de7e
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ namespace Obfuz.Emit
ModuleDef Module { get; set; }
public EncryptionScopeProvider EncryptionScopeProvider { get; }
EncryptionScopeProvider EncryptionScopeProvider { get; }
EncryptionScopeInfo EncryptionScope { get; set; }

View File

@ -812,7 +812,7 @@ namespace Obfuz.ObfusPasses.ControlFlowObfus
var tryBlocks = new List<TryBlockInfo>();
foreach (var ex in _method.Body.ExceptionHandlers)
{
TryBlockInfo tryBlock = tryBlocks.Find(tryBlocks => tryBlocks.tryStart == ex.TryStart && tryBlocks.tryEnd == ex.TryEnd);
TryBlockInfo tryBlock = tryBlocks.Find(block => block.tryStart == ex.TryStart && block.tryEnd == ex.TryEnd);
if (tryBlock == null)
{
int startIndex = inst2Index[ex.TryStart];