Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

Commit

Permalink
fix wrong op code refs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler-IN committed Apr 25, 2020
1 parent f61e692 commit 4347c28
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/CommunityPatch/Patches/EarlyStoryVisibleTimeoutPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@
using TaleWorlds.Localization;
using TaleWorlds.MountAndBlade;
using static CommunityPatch.HarmonyHelpers;
using OpCodes = System.Reflection.Emit.OpCodes;

namespace CommunityPatch.Patches {

public sealed class EarlyStoryVisibleTimeoutPatch : IPatch {

private static readonly byte[] IsRemainingTimeHiddenGetterBodyIl = {
// e1.1.2.226306
OpCodes.Ldc_I4_1.Op1, // 0x17
OpCodes.Ret.Op1, // 0x2a
(byte) OpCodes.Ldc_I4_1.Value, // 0x17
(byte) OpCodes.Ret.Value, // 0x2a
};

private static readonly Type FirstPhaseType = Type.GetType("StoryMode.StoryModePhases.FirstPhase, StoryMode, Version=1.0.0.0, Culture=neutral");
Expand Down

0 comments on commit 4347c28

Please sign in to comment.