410 lines
23 KiB
C#
410 lines
23 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace Steamworks
|
|
{
|
|
// Token: 0x020011FE RID: 4606
|
|
[Token(Token = "0x20011FE")]
|
|
[StructLayout(3)]
|
|
public static class SteamGameServerUtils
|
|
{
|
|
// Token: 0x06006D33 RID: 27955 RVA: 0x001714E0 File Offset: 0x0016F6E0
|
|
[Token(Token = "0x6006D33")]
|
|
[Address(RVA = "0x2A8BF60", Offset = "0x2A8A960", VA = "0x182A8BF60")]
|
|
public static uint GetSecondsSinceAppActive()
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
return NativeMethods.ISteamUtils_GetSecondsSinceAppActive(CSteamGameServerAPIContext.m_pSteamUtils);
|
|
}
|
|
|
|
// Token: 0x06006D34 RID: 27956 RVA: 0x00171500 File Offset: 0x0016F700
|
|
[Token(Token = "0x6006D34")]
|
|
[Address(RVA = "0x2A8BFB0", Offset = "0x2A8A9B0", VA = "0x182A8BFB0")]
|
|
public static uint GetSecondsSinceComputerActive()
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
return NativeMethods.ISteamUtils_GetSecondsSinceComputerActive(CSteamGameServerAPIContext.m_pSteamUtils);
|
|
}
|
|
|
|
// Token: 0x06006D35 RID: 27957 RVA: 0x00171520 File Offset: 0x0016F720
|
|
[Token(Token = "0x6006D35")]
|
|
[Address(RVA = "0x2A8BB90", Offset = "0x2A8A590", VA = "0x182A8BB90")]
|
|
public static EUniverse GetConnectedUniverse()
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
return NativeMethods.ISteamUtils_GetConnectedUniverse(CSteamGameServerAPIContext.m_pSteamUtils);
|
|
}
|
|
|
|
// Token: 0x06006D36 RID: 27958 RVA: 0x00171540 File Offset: 0x0016F740
|
|
[Token(Token = "0x6006D36")]
|
|
[Address(RVA = "0x2A8C000", Offset = "0x2A8AA00", VA = "0x182A8C000")]
|
|
public static uint GetServerRealTime()
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
return NativeMethods.ISteamUtils_GetServerRealTime(CSteamGameServerAPIContext.m_pSteamUtils);
|
|
}
|
|
|
|
// Token: 0x06006D37 RID: 27959 RVA: 0x00171560 File Offset: 0x0016F760
|
|
[Token(Token = "0x6006D37")]
|
|
[Address(RVA = "0x2A8BDC0", Offset = "0x2A8A7C0", VA = "0x182A8BDC0")]
|
|
public static string GetIPCountry()
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
IntPtr intPtr = CSteamGameServerAPIContext.m_pSteamUtils;
|
|
intPtr = NativeMethods.ISteamUtils_GetIPCountry(intPtr);
|
|
return InteropHelp.PtrToStringUTF8(intPtr);
|
|
}
|
|
|
|
// Token: 0x06006D38 RID: 27960 RVA: 0x00171588 File Offset: 0x0016F788
|
|
[Token(Token = "0x6006D38")]
|
|
[Address(RVA = "0x2A8BEE0", Offset = "0x2A8A8E0", VA = "0x182A8BEE0")]
|
|
public static bool GetImageSize(int iImage, out uint pnWidth, out uint pnHeight)
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
return NativeMethods.ISteamUtils_GetImageSize(CSteamGameServerAPIContext.m_pSteamUtils, iImage, out pnWidth, out pnHeight);
|
|
}
|
|
|
|
// Token: 0x06006D39 RID: 27961 RVA: 0x001715AC File Offset: 0x0016F7AC
|
|
[Token(Token = "0x6006D39")]
|
|
[Address(RVA = "0x2A8BE60", Offset = "0x2A8A860", VA = "0x182A8BE60")]
|
|
public static bool GetImageRGBA(int iImage, byte[] pubDest, int nDestBufferSize)
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
return NativeMethods.ISteamUtils_GetImageRGBA(CSteamGameServerAPIContext.m_pSteamUtils, iImage, pubDest, nDestBufferSize);
|
|
}
|
|
|
|
// Token: 0x06006D3A RID: 27962 RVA: 0x001715D0 File Offset: 0x0016F7D0
|
|
[Token(Token = "0x6006D3A")]
|
|
[Address(RVA = "0x2A8BB30", Offset = "0x2A8A530", VA = "0x182A8BB30")]
|
|
public static bool GetCSERIPPort(out uint unIP, out ushort usPort)
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
return NativeMethods.ISteamUtils_GetCSERIPPort(CSteamGameServerAPIContext.m_pSteamUtils, out unIP, out usPort);
|
|
}
|
|
|
|
// Token: 0x06006D3B RID: 27963 RVA: 0x001715F0 File Offset: 0x0016F7F0
|
|
[Token(Token = "0x6006D3B")]
|
|
[Address(RVA = "0x2A8BBE0", Offset = "0x2A8A5E0", VA = "0x182A8BBE0")]
|
|
public static byte GetCurrentBatteryPower()
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
return NativeMethods.ISteamUtils_GetCurrentBatteryPower(CSteamGameServerAPIContext.m_pSteamUtils);
|
|
}
|
|
|
|
// Token: 0x06006D3C RID: 27964 RVA: 0x00171610 File Offset: 0x0016F810
|
|
[Token(Token = "0x6006D3C")]
|
|
[Address(RVA = "0x2A8BAA0", Offset = "0x2A8A4A0", VA = "0x182A8BAA0")]
|
|
public static AppId_t GetAppID()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06006D3C)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.AppId_t Steamworks.SteamGameServerUtils::GetAppID()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
call:void(InteropHelp::TestIfAvailableGameServer)
|
|
stloc:int64(var_1_16, call:int64(Convert::ToInt64, call:uint32(NativeMethods::ISteamUtils_GetAppID, ldsfld:native int(CSteamGameServerAPIContext::m_pSteamUtils))))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x06006D3D RID: 27965 RVA: 0x00171634 File Offset: 0x0016F834
|
|
[Token(Token = "0x6006D3D")]
|
|
[Address(RVA = "0x2A8C340", Offset = "0x2A8AD40", VA = "0x182A8C340")]
|
|
public static void SetOverlayNotificationPosition(ENotificationPosition eNotificationPosition)
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
IntPtr pSteamUtils = CSteamGameServerAPIContext.m_pSteamUtils;
|
|
}
|
|
|
|
// Token: 0x06006D3E RID: 27966 RVA: 0x00171650 File Offset: 0x0016F850
|
|
[Token(Token = "0x6006D3E")]
|
|
[Address(RVA = "0x2A8C0F0", Offset = "0x2A8AAF0", VA = "0x182A8C0F0")]
|
|
public static bool IsAPICallCompleted(SteamAPICall_t hSteamAPICall, out bool pbFailed)
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
return NativeMethods.ISteamUtils_IsAPICallCompleted(CSteamGameServerAPIContext.m_pSteamUtils, hSteamAPICall, out pbFailed);
|
|
}
|
|
|
|
// Token: 0x06006D3F RID: 27967 RVA: 0x00171670 File Offset: 0x0016F870
|
|
[Token(Token = "0x6006D3F")]
|
|
[Address(RVA = "0x2A8B9C0", Offset = "0x2A8A3C0", VA = "0x182A8B9C0")]
|
|
public static ESteamAPICallFailure GetAPICallFailureReason(SteamAPICall_t hSteamAPICall)
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
return NativeMethods.ISteamUtils_GetAPICallFailureReason(CSteamGameServerAPIContext.m_pSteamUtils, hSteamAPICall);
|
|
}
|
|
|
|
// Token: 0x06006D40 RID: 27968 RVA: 0x00171690 File Offset: 0x0016F890
|
|
[Token(Token = "0x6006D40")]
|
|
[Address(RVA = "0x2A8BA10", Offset = "0x2A8A410", VA = "0x182A8BA10")]
|
|
public static bool GetAPICallResult(SteamAPICall_t hSteamAPICall, IntPtr pCallback, int cubCallback, int iCallbackExpected, out bool pbFailed)
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
IntPtr pSteamUtils = CSteamGameServerAPIContext.m_pSteamUtils;
|
|
bool flag;
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06006D41 RID: 27969 RVA: 0x001716AC File Offset: 0x0016F8AC
|
|
[Token(Token = "0x6006D41")]
|
|
[Address(RVA = "0x2A8BD70", Offset = "0x2A8A770", VA = "0x182A8BD70")]
|
|
public static uint GetIPCCallCount()
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
return NativeMethods.ISteamUtils_GetIPCCallCount(CSteamGameServerAPIContext.m_pSteamUtils);
|
|
}
|
|
|
|
// Token: 0x06006D42 RID: 27970 RVA: 0x001716CC File Offset: 0x0016F8CC
|
|
[Token(Token = "0x6006D42")]
|
|
[Address(RVA = "0x2A8C3E0", Offset = "0x2A8ADE0", VA = "0x182A8C3E0")]
|
|
public static void SetWarningMessageHook(SteamAPIWarningMessageHook_t pFunction)
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
NativeMethods.ISteamUtils_SetWarningMessageHook(CSteamGameServerAPIContext.m_pSteamUtils, pFunction);
|
|
}
|
|
|
|
// Token: 0x06006D43 RID: 27971 RVA: 0x001716EC File Offset: 0x0016F8EC
|
|
[Token(Token = "0x6006D43")]
|
|
[Address(RVA = "0x2A8C150", Offset = "0x2A8AB50", VA = "0x182A8C150")]
|
|
public static bool IsOverlayEnabled()
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
return NativeMethods.ISteamUtils_IsOverlayEnabled(CSteamGameServerAPIContext.m_pSteamUtils);
|
|
}
|
|
|
|
// Token: 0x06006D44 RID: 27972 RVA: 0x0017170C File Offset: 0x0016F90C
|
|
[Token(Token = "0x6006D44")]
|
|
[Address(RVA = "0x2A8B650", Offset = "0x2A8A050", VA = "0x182A8B650")]
|
|
public static bool BOverlayNeedsPresent()
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
return NativeMethods.ISteamUtils_BOverlayNeedsPresent(CSteamGameServerAPIContext.m_pSteamUtils);
|
|
}
|
|
|
|
// Token: 0x06006D45 RID: 27973 RVA: 0x0017172C File Offset: 0x0016F92C
|
|
[Token(Token = "0x6006D45")]
|
|
[Address(RVA = "0x2A8B6A0", Offset = "0x2A8A0A0", VA = "0x182A8B6A0")]
|
|
public static SteamAPICall_t CheckFileSignature(string szFileName)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06006D45)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SteamAPICall_t Steamworks.SteamGameServerUtils::CheckFileSignature(System.String)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_29:
|
|
brtrue(IL_00, cne:bool(ldloc:int32(var_0_01), ldc.i4:int32(0)))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x06006D46 RID: 27974 RVA: 0x00171768 File Offset: 0x0016F968
|
|
[Token(Token = "0x6006D46")]
|
|
[Address(RVA = "0x2A8C430", Offset = "0x2A8AE30", VA = "0x182A8C430")]
|
|
public static bool ShowGamepadTextInput(EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, string pchDescription, uint unCharMax, string pchExistingText)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06006D46)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Steamworks.SteamGameServerUtils::ShowGamepadTextInput(Steamworks.EGamepadTextInputMode,Steamworks.EGamepadTextInputLineMode,System.String,System.UInt32,System.String)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_32:
|
|
brtrue(IL_00, cne:bool(ldloc:int32(var_0_01), ldc.i4:int32(0)))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x06006D47 RID: 27975 RVA: 0x001717AC File Offset: 0x0016F9AC
|
|
[Token(Token = "0x6006D47")]
|
|
[Address(RVA = "0x2A8BD20", Offset = "0x2A8A720", VA = "0x182A8BD20")]
|
|
public static uint GetEnteredGamepadTextLength()
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
return NativeMethods.ISteamUtils_GetEnteredGamepadTextLength(CSteamGameServerAPIContext.m_pSteamUtils);
|
|
}
|
|
|
|
// Token: 0x06006D48 RID: 27976 RVA: 0x001717CC File Offset: 0x0016F9CC
|
|
[Token(Token = "0x6006D48")]
|
|
[Address(RVA = "0x2A8BC30", Offset = "0x2A8A630", VA = "0x182A8BC30")]
|
|
public static bool GetEnteredGamepadTextInput(out string pchText, uint cchText)
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
IntPtr intPtr = Marshal.AllocHGlobal((int)cchText);
|
|
IntPtr intPtr2 = CSteamGameServerAPIContext.m_pSteamUtils;
|
|
bool flag = NativeMethods.ISteamUtils_GetEnteredGamepadTextInput(intPtr2, intPtr, cchText);
|
|
if (flag)
|
|
{
|
|
intPtr2 = intPtr;
|
|
string text = InteropHelp.PtrToStringUTF8(intPtr2);
|
|
}
|
|
Marshal.FreeHGlobal(intPtr);
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06006D49 RID: 27977 RVA: 0x00171810 File Offset: 0x0016FA10
|
|
[Token(Token = "0x6006D49")]
|
|
[Address(RVA = "0x2A8C050", Offset = "0x2A8AA50", VA = "0x182A8C050")]
|
|
public static string GetSteamUILanguage()
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
IntPtr intPtr = CSteamGameServerAPIContext.m_pSteamUtils;
|
|
intPtr = NativeMethods.ISteamUtils_GetSteamUILanguage(intPtr);
|
|
return InteropHelp.PtrToStringUTF8(intPtr);
|
|
}
|
|
|
|
// Token: 0x06006D4A RID: 27978 RVA: 0x00171838 File Offset: 0x0016FA38
|
|
[Token(Token = "0x6006D4A")]
|
|
[Address(RVA = "0x2A8C240", Offset = "0x2A8AC40", VA = "0x182A8C240")]
|
|
public static bool IsSteamRunningInVR()
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
return NativeMethods.ISteamUtils_IsSteamRunningInVR(CSteamGameServerAPIContext.m_pSteamUtils);
|
|
}
|
|
|
|
// Token: 0x06006D4B RID: 27979 RVA: 0x00171858 File Offset: 0x0016FA58
|
|
[Token(Token = "0x6006D4B")]
|
|
[Address(RVA = "0x2A8C2E0", Offset = "0x2A8ACE0", VA = "0x182A8C2E0")]
|
|
public static void SetOverlayNotificationInset(int nHorizontalInset, int nVerticalInset)
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
NativeMethods.ISteamUtils_SetOverlayNotificationInset(CSteamGameServerAPIContext.m_pSteamUtils, nVerticalInset, nVerticalInset);
|
|
}
|
|
|
|
// Token: 0x06006D4C RID: 27980 RVA: 0x00171878 File Offset: 0x0016FA78
|
|
[Token(Token = "0x6006D4C")]
|
|
[Address(RVA = "0x2A8C1F0", Offset = "0x2A8ABF0", VA = "0x182A8C1F0")]
|
|
public static bool IsSteamInBigPictureMode()
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
return NativeMethods.ISteamUtils_IsSteamInBigPictureMode(CSteamGameServerAPIContext.m_pSteamUtils);
|
|
}
|
|
|
|
// Token: 0x06006D4D RID: 27981 RVA: 0x00171898 File Offset: 0x0016FA98
|
|
[Token(Token = "0x6006D4D")]
|
|
[Address(RVA = "0x2A8C610", Offset = "0x2A8B010", VA = "0x182A8C610")]
|
|
public static void StartVRDashboard()
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
NativeMethods.ISteamUtils_StartVRDashboard(CSteamGameServerAPIContext.m_pSteamUtils);
|
|
}
|
|
|
|
// Token: 0x06006D4E RID: 27982 RVA: 0x001718B8 File Offset: 0x0016FAB8
|
|
[Token(Token = "0x6006D4E")]
|
|
[Address(RVA = "0x2A8C290", Offset = "0x2A8AC90", VA = "0x182A8C290")]
|
|
public static bool IsVRHeadsetStreamingEnabled()
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
return NativeMethods.ISteamUtils_IsVRHeadsetStreamingEnabled(CSteamGameServerAPIContext.m_pSteamUtils);
|
|
}
|
|
|
|
// Token: 0x06006D4F RID: 27983 RVA: 0x001718D8 File Offset: 0x0016FAD8
|
|
[Token(Token = "0x6006D4F")]
|
|
[Address(RVA = "0x2A8C390", Offset = "0x2A8AD90", VA = "0x182A8C390")]
|
|
public static void SetVRHeadsetStreamingEnabled(bool bEnabled)
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
NativeMethods.ISteamUtils_SetVRHeadsetStreamingEnabled(CSteamGameServerAPIContext.m_pSteamUtils, bEnabled);
|
|
}
|
|
|
|
// Token: 0x06006D50 RID: 27984 RVA: 0x001718F8 File Offset: 0x0016FAF8
|
|
[Token(Token = "0x6006D50")]
|
|
[Address(RVA = "0x2A8C1A0", Offset = "0x2A8ABA0", VA = "0x182A8C1A0")]
|
|
public static bool IsSteamChinaLauncher()
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
return NativeMethods.ISteamUtils_IsSteamChinaLauncher(CSteamGameServerAPIContext.m_pSteamUtils);
|
|
}
|
|
|
|
// Token: 0x06006D51 RID: 27985 RVA: 0x00171918 File Offset: 0x0016FB18
|
|
[Token(Token = "0x6006D51")]
|
|
[Address(RVA = "0x2A8C0A0", Offset = "0x2A8AAA0", VA = "0x182A8C0A0")]
|
|
public static bool InitFilterText()
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
return NativeMethods.ISteamUtils_InitFilterText(CSteamGameServerAPIContext.m_pSteamUtils);
|
|
}
|
|
|
|
// Token: 0x06006D52 RID: 27986 RVA: 0x00171938 File Offset: 0x0016FB38
|
|
[Token(Token = "0x6006D52")]
|
|
[Address(RVA = "0x2A8B800", Offset = "0x2A8A200", VA = "0x182A8B800")]
|
|
public static int FilterText(out string pchOutFilteredText, uint nByteSizeOutFilteredText, string pchInputMessage, bool bLegalOnly)
|
|
{
|
|
int num;
|
|
int num2;
|
|
do
|
|
{
|
|
num = 0;
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
IntPtr intPtr = Marshal.AllocHGlobal((int)nByteSizeOutFilteredText);
|
|
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchInputMessage);
|
|
IntPtr intPtr2 = CSteamGameServerAPIContext.m_pSteamUtils;
|
|
if (num2 != -1)
|
|
{
|
|
intPtr2 = intPtr;
|
|
string text = InteropHelp.PtrToStringUTF8(intPtr2);
|
|
}
|
|
Marshal.FreeHGlobal(intPtr);
|
|
if (utf8StringHandle != 0)
|
|
{
|
|
}
|
|
if (num != -1)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return num2;
|
|
}
|
|
|
|
// Token: 0x06006D53 RID: 27987 RVA: 0x00171988 File Offset: 0x0016FB88
|
|
[Token(Token = "0x6006D53")]
|
|
[Address(RVA = "0x2A8BE10", Offset = "0x2A8A810", VA = "0x182A8BE10")]
|
|
public static ESteamIPv6ConnectivityState GetIPv6ConnectivityState(ESteamIPv6ConnectivityProtocol eProtocol)
|
|
{
|
|
InteropHelp.TestIfAvailableGameServer();
|
|
IntPtr pSteamUtils = CSteamGameServerAPIContext.m_pSteamUtils;
|
|
ESteamIPv6ConnectivityState esteamIPv6ConnectivityState;
|
|
return esteamIPv6ConnectivityState;
|
|
}
|
|
}
|
|
}
|