Browse Source

Added `using` to a read assembly in Injector

pull/44/head
Anairkoen Schno 4 years ago
parent
commit
c3b41d8a99
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      IPA.Injector/Injector.cs

+ 2
- 2
IPA.Injector/Injector.cs View File

@ -151,7 +151,7 @@ namespace IPA.Injector
// this is a critical section because if you exit in here, CoreModule can die
using var critSec = CriticalSection.ExecuteSection();
var unityAsmDef = AssemblyDefinition.ReadAssembly(unityPath, new ReaderParameters
using var unityAsmDef = AssemblyDefinition.ReadAssembly(unityPath, new ReaderParameters
{
ReadWrite = false,
InMemory = true,
@ -270,7 +270,7 @@ namespace IPA.Injector
{
injector.Debug("Applying anti-yeet patch");
var ascAsmDef = AssemblyDefinition.ReadAssembly(ascPath, new ReaderParameters
using var ascAsmDef = AssemblyDefinition.ReadAssembly(ascPath, new ReaderParameters
{
ReadWrite = false,
InMemory = true,


Loading…
Cancel
Save