mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 04:50:45 -05:00
Fix IL Patch replacing string
This commit is contained in:
parent
a5ff17e4da
commit
163821d824
@ -46,7 +46,6 @@ namespace SPT.SinglePlayer.Patches.MainMenu
|
|||||||
var newCode = new CodeInstruction(OpCodes.Ldstr, "SPT-PVE");
|
var newCode = new CodeInstruction(OpCodes.Ldstr, "SPT-PVE");
|
||||||
|
|
||||||
codes.RemoveAt(searchIndex);
|
codes.RemoveAt(searchIndex);
|
||||||
searchIndex -= 1;
|
|
||||||
codes.Insert(searchIndex, newCode);
|
codes.Insert(searchIndex, newCode);
|
||||||
|
|
||||||
return codes.AsEnumerable();
|
return codes.AsEnumerable();
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
<Reference Include="UnityEngine" HintPath="..\Shared\Managed\UnityEngine.dll" Private="False" />
|
<Reference Include="UnityEngine" HintPath="..\Shared\Managed\UnityEngine.dll" Private="False" />
|
||||||
<Reference Include="UnityEngine.AudioModule" HintPath="..\Shared\Managed\UnityEngine.AudioModule.dll" Private="False" />
|
<Reference Include="UnityEngine.AudioModule" HintPath="..\Shared\Managed\UnityEngine.AudioModule.dll" Private="False" />
|
||||||
<Reference Include="UnityEngine.CoreModule" HintPath="..\Shared\Managed\UnityEngine.CoreModule.dll" Private="False" />
|
<Reference Include="UnityEngine.CoreModule" HintPath="..\Shared\Managed\UnityEngine.CoreModule.dll" Private="False" />
|
||||||
<Reference Include="UnityEngine.CoreModule" HintPath="..\Shared\Managed\Sirenix.Serialization.dll" Private="False" />
|
<Reference Include="Sirenix.Serialization" HintPath="..\Shared\Managed\Sirenix.Serialization.dll" Private="False" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -73,7 +73,6 @@ namespace SPT.SinglePlayer
|
|||||||
new EnableRefForPVEPatch().Enable();
|
new EnableRefForPVEPatch().Enable();
|
||||||
new EnableRefIntermScreenPatch().Enable();
|
new EnableRefIntermScreenPatch().Enable();
|
||||||
new EnablePlayerScavPatch().Enable();
|
new EnablePlayerScavPatch().Enable();
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user