diff --git a/Confuser.Core/Confuser.Core.csproj b/Confuser.Core/Confuser.Core.csproj index 2e704253..1daf63ce 100644 --- a/Confuser.Core/Confuser.Core.csproj +++ b/Confuser.Core/Confuser.Core.csproj @@ -13,7 +13,7 @@ - + diff --git a/Confuser.Protections/AntiTamper/JITBody.cs b/Confuser.Protections/AntiTamper/JITBody.cs index ae306d34..d200545c 100644 --- a/Confuser.Protections/AntiTamper/JITBody.cs +++ b/Confuser.Protections/AntiTamper/JITBody.cs @@ -50,7 +50,10 @@ public uint GetVirtualSize() { public void WriteTo(DataWriter writer) { writer.WriteUInt32((uint)(Body.Length >> 2)); writer.WriteBytes(Body); - } + } + + /// + public uint CalculateAlignment() => 0; public void Serialize(uint token, uint key, byte[] fieldLayout) { using (var ms = new MemoryStream()) { @@ -233,7 +236,10 @@ public void WriteTo(DataWriter writer) { Debug.Assert((length + entry.Value.Offset) % 4 == 0); writer.WriteUInt32((length + entry.Value.Offset) >> 2); } - } + } + + /// + public uint CalculateAlignment() => 0; public void Add(uint token, JITMethodBody body) { Debug.Assert(bodies.ContainsKey(token)); @@ -252,4 +258,4 @@ public void PopulateSection(PESection section) { } } } -} \ No newline at end of file +}