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