scripts
This commit is contained in:
@@ -0,0 +1,86 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace Steamworks
|
||||
{
|
||||
// Token: 0x020010B3 RID: 4275
|
||||
[Token(Token = "0x20010B3")]
|
||||
[StructLayout(3)]
|
||||
public class MMKVPMarshaller
|
||||
{
|
||||
// Token: 0x060067F0 RID: 26608 RVA: 0x0016C0BC File Offset: 0x0016A2BC
|
||||
[Token(Token = "0x60067F0")]
|
||||
[Address(RVA = "0x248CF40", Offset = "0x248B940", VA = "0x18248CF40")]
|
||||
public MMKVPMarshaller(MatchMakingKeyValuePair_t[] filters)
|
||||
{
|
||||
if (filters != 0)
|
||||
{
|
||||
int num = Marshal.SizeOf(typeof(MatchMakingKeyValuePair_t));
|
||||
int num2 = Marshal.SizeOf(typeof(IntPtr));
|
||||
IntPtr intPtr = Marshal.AllocHGlobal(filters.Length * num2);
|
||||
this.m_pNativeArray = intPtr;
|
||||
IntPtr intPtr2 = Marshal.AllocHGlobal(filters.Length * num);
|
||||
int num3 = 0;
|
||||
this.m_pArrayEntries = intPtr2;
|
||||
int length = filters.Length;
|
||||
if (num3 < length)
|
||||
{
|
||||
num3 += 2;
|
||||
num3 += num3;
|
||||
num3 += num3;
|
||||
num3++;
|
||||
num3 += num;
|
||||
}
|
||||
IntPtr pNativeArray = this.m_pNativeArray;
|
||||
IntPtr pArrayEntries = this.m_pArrayEntries;
|
||||
Marshal.WriteIntPtr(pNativeArray, pArrayEntries);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060067F1 RID: 26609 RVA: 0x0016C170 File Offset: 0x0016A370
|
||||
[Token(Token = "0x60067F1")]
|
||||
[Address(RVA = "0x248CE10", Offset = "0x248B810", VA = "0x18248CE10", Slot = "1")]
|
||||
protected override void Finalize()
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
int num2 = 0;
|
||||
if (this.m_pArrayEntries != (IntPtr)num2)
|
||||
{
|
||||
Marshal.FreeHGlobal(this.m_pArrayEntries);
|
||||
}
|
||||
int num3 = 0;
|
||||
if (this.m_pNativeArray != (IntPtr)num3)
|
||||
{
|
||||
Marshal.FreeHGlobal(this.m_pNativeArray);
|
||||
}
|
||||
base..ctor();
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
}
|
||||
|
||||
// Token: 0x060067F2 RID: 26610 RVA: 0x0016C1C8 File Offset: 0x0016A3C8
|
||||
[Token(Token = "0x60067F2")]
|
||||
[Address(RVA = "0x248D140", Offset = "0x248BB40", VA = "0x18248D140")]
|
||||
public static implicit operator IntPtr(MMKVPMarshaller that)
|
||||
{
|
||||
return that.m_pNativeArray;
|
||||
}
|
||||
|
||||
// Token: 0x0400499D RID: 18845
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400499D")]
|
||||
private IntPtr m_pNativeArray;
|
||||
|
||||
// Token: 0x0400499E RID: 18846
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400499E")]
|
||||
private IntPtr m_pArrayEntries;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user