|
@ -109,13 +109,15 @@ namespace IPA.Injector |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (modified) |
|
|
if (modified) |
|
|
|
|
|
{ |
|
|
unityAsmDef.Write(unityPath); |
|
|
unityAsmDef.Write(unityPath); |
|
|
|
|
|
} |
|
|
#endregion
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
loader.Debug("Ensuring Assembly-CSharp is virtualized"); |
|
|
loader.Debug("Ensuring Assembly-CSharp is virtualized"); |
|
|
#region Virtualize Assembly-CSharp.dll
|
|
|
#region Virtualize Assembly-CSharp.dll
|
|
|
var ascPath = Path.Combine(Environment.CurrentDirectory, "Beat Saber_Data", "Managed", "Assembly-CSharp.dll"); |
|
|
var ascPath = Path.Combine(Environment.CurrentDirectory, "Beat Saber_Data", "Managed", "Assembly-CSharp.dll"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var ascModule = VirtualizedModule.Load(ascPath); |
|
|
var ascModule = VirtualizedModule.Load(ascPath); |
|
|
ascModule.Virtualize(cAsmName); |
|
|
ascModule.Virtualize(cAsmName); |
|
|
#endregion
|
|
|
#endregion
|
|
|