Files
Jan2021-Cpp2Il-Dump/Assembly-CSharp/Steamworks/SteamUserStats.cs
T
2026-04-08 23:40:05 +02:00

931 lines
53 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace Steamworks
{
// Token: 0x02001210 RID: 4624
[Token(Token = "0x2001210")]
[StructLayout(3)]
public static class SteamUserStats
{
// Token: 0x06006F25 RID: 28453 RVA: 0x0017611C File Offset: 0x0017431C
[Token(Token = "0x6006F25")]
[Address(RVA = "0x2AA0FE0", Offset = "0x2A9F9E0", VA = "0x182AA0FE0")]
public static bool RequestCurrentStats()
{
InteropHelp.TestIfAvailableClient();
return NativeMethods.ISteamUserStats_RequestCurrentStats(CSteamAPIContext.m_pSteamUserStats);
}
// Token: 0x06006F26 RID: 28454 RVA: 0x0017613C File Offset: 0x0017433C
[Token(Token = "0x6006F26")]
[Address(RVA = "0x2AA0800", Offset = "0x2A9F200", VA = "0x182AA0800")]
public static bool GetStat(string pchName, out int pData)
{
int num;
bool flag;
do
{
num = 0;
InteropHelp.TestIfAvailableClient();
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
flag = NativeMethods.ISteamUserStats_GetStatInt32(CSteamAPIContext.m_pSteamUserStats, utf8StringHandle, out pData);
if (utf8StringHandle != 0)
{
}
if (num != -1)
{
}
}
while (num != 0);
return flag;
}
// Token: 0x06006F27 RID: 28455 RVA: 0x00176174 File Offset: 0x00174374
[Token(Token = "0x6006F27")]
[Address(RVA = "0x2AA06C0", Offset = "0x2A9F0C0", VA = "0x182AA06C0")]
public static bool GetStat(string pchName, out float pData)
{
int num;
bool flag;
do
{
num = 0;
InteropHelp.TestIfAvailableClient();
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
flag = NativeMethods.ISteamUserStats_GetStatFloat(CSteamAPIContext.m_pSteamUserStats, utf8StringHandle, out pData);
if (utf8StringHandle != 0)
{
}
if (num != -1)
{
}
}
while (num != 0);
return flag;
}
// Token: 0x06006F28 RID: 28456 RVA: 0x001761AC File Offset: 0x001743AC
[Token(Token = "0x6006F28")]
[Address(RVA = "0x2AA14D0", Offset = "0x2A9FED0", VA = "0x182AA14D0")]
public static bool SetStat(string pchName, int nData)
{
int num;
bool flag;
do
{
num = 0;
InteropHelp.TestIfAvailableClient();
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
flag = NativeMethods.ISteamUserStats_SetStatInt32(CSteamAPIContext.m_pSteamUserStats, utf8StringHandle, nData);
if (utf8StringHandle != 0)
{
}
if (num != -1)
{
}
}
while (num != 0);
return flag;
}
// Token: 0x06006F29 RID: 28457 RVA: 0x001761E4 File Offset: 0x001743E4
[Token(Token = "0x6006F29")]
[Address(RVA = "0x2AA1380", Offset = "0x2A9FD80", VA = "0x182AA1380")]
public static bool SetStat(string pchName, float fData)
{
int num;
bool flag;
do
{
num = 0;
InteropHelp.TestIfAvailableClient();
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
flag = NativeMethods.ISteamUserStats_SetStatFloat(CSteamAPIContext.m_pSteamUserStats, utf8StringHandle, fData);
if (utf8StringHandle != 0)
{
}
if (num != -1)
{
}
}
while (num != 0);
return flag;
}
// Token: 0x06006F2A RID: 28458 RVA: 0x0017621C File Offset: 0x0017441C
[Token(Token = "0x6006F2A")]
[Address(RVA = "0x2AA1660", Offset = "0x2AA0060", VA = "0x182AA1660")]
public static bool UpdateAvgRateStat(string pchName, float flCountThisSession, double dSessionLength)
{
int num;
bool flag;
do
{
num = 0;
InteropHelp.TestIfAvailableClient();
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
flag = NativeMethods.ISteamUserStats_UpdateAvgRateStat(CSteamAPIContext.m_pSteamUserStats, utf8StringHandle, flCountThisSession, dSessionLength);
if (utf8StringHandle != 0)
{
}
if (num != -1)
{
}
}
while (num != 0);
return flag;
}
// Token: 0x06006F2B RID: 28459 RVA: 0x00176254 File Offset: 0x00174454
[Token(Token = "0x6006F2B")]
[Address(RVA = "0x2A9FB70", Offset = "0x2A9E570", VA = "0x182A9FB70")]
public static bool GetAchievement(string pchName, out bool pbAchieved)
{
int num;
bool flag;
do
{
num = 0;
InteropHelp.TestIfAvailableClient();
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
flag = NativeMethods.ISteamUserStats_GetAchievement(CSteamAPIContext.m_pSteamUserStats, utf8StringHandle, out pbAchieved);
if (utf8StringHandle != 0)
{
}
if (num != -1)
{
}
}
while (num != 0);
return flag;
}
// Token: 0x06006F2C RID: 28460 RVA: 0x0017628C File Offset: 0x0017448C
[Token(Token = "0x6006F2C")]
[Address(RVA = "0x2AA1250", Offset = "0x2A9FC50", VA = "0x182AA1250")]
public static bool SetAchievement(string pchName)
{
int num;
bool flag;
do
{
num = 0;
InteropHelp.TestIfAvailableClient();
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
flag = NativeMethods.ISteamUserStats_SetAchievement(CSteamAPIContext.m_pSteamUserStats, utf8StringHandle);
if (utf8StringHandle != 0)
{
}
if (num != -1)
{
}
}
while (num != 0);
return flag;
}
// Token: 0x06006F2D RID: 28461 RVA: 0x001762C4 File Offset: 0x001744C4
[Token(Token = "0x6006F2D")]
[Address(RVA = "0x2A9F010", Offset = "0x2A9DA10", VA = "0x182A9F010")]
public static bool ClearAchievement(string pchName)
{
int num;
bool flag;
do
{
num = 0;
InteropHelp.TestIfAvailableClient();
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
flag = NativeMethods.ISteamUserStats_ClearAchievement(CSteamAPIContext.m_pSteamUserStats, utf8StringHandle);
if (utf8StringHandle != 0)
{
}
if (num != -1)
{
}
}
while (num != 0);
return flag;
}
// Token: 0x06006F2E RID: 28462 RVA: 0x001762FC File Offset: 0x001744FC
[Token(Token = "0x6006F2E")]
[Address(RVA = "0x2A9F6E0", Offset = "0x2A9E0E0", VA = "0x182A9F6E0")]
public static bool GetAchievementAndUnlockTime(string pchName, out bool pbAchieved, out uint punUnlockTime)
{
int num;
bool flag;
do
{
num = 0;
InteropHelp.TestIfAvailableClient();
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
flag = NativeMethods.ISteamUserStats_GetAchievementAndUnlockTime(CSteamAPIContext.m_pSteamUserStats, utf8StringHandle, out pbAchieved, out punUnlockTime);
if (utf8StringHandle != 0)
{
}
if (num != -1)
{
}
}
while (num != 0);
return flag;
}
// Token: 0x06006F2F RID: 28463 RVA: 0x00176334 File Offset: 0x00174534
[Token(Token = "0x6006F2F")]
[Address(RVA = "0x2AA1610", Offset = "0x2AA0010", VA = "0x182AA1610")]
public static bool StoreStats()
{
InteropHelp.TestIfAvailableClient();
return NativeMethods.ISteamUserStats_StoreStats(CSteamAPIContext.m_pSteamUserStats);
}
// Token: 0x06006F30 RID: 28464 RVA: 0x00176354 File Offset: 0x00174554
[Token(Token = "0x6006F30")]
[Address(RVA = "0x2A9F9E0", Offset = "0x2A9E3E0", VA = "0x182A9F9E0")]
public static int GetAchievementIcon(string pchName)
{
int num;
int num2;
do
{
num = 0;
InteropHelp.TestIfAvailableClient();
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
num2 = NativeMethods.ISteamUserStats_GetAchievementIcon(CSteamAPIContext.m_pSteamUserStats, utf8StringHandle);
if (utf8StringHandle != 0)
{
}
if (num != -1)
{
}
}
while (num != 0);
return num2;
}
// Token: 0x06006F31 RID: 28465 RVA: 0x0017638C File Offset: 0x0017458C
[Token(Token = "0x6006F31")]
[Address(RVA = "0x2A9F830", Offset = "0x2A9E230", VA = "0x182A9F830")]
public static string GetAchievementDisplayAttribute(string pchName, string pchKey)
{
/*
An exception occurred when decompiling this method (06006F31)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String Steamworks.SteamUserStats::GetAchievementDisplayAttribute(System.String,System.String)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_46:
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: 0x06006F32 RID: 28466 RVA: 0x001763E4 File Offset: 0x001745E4
[Token(Token = "0x6006F32")]
[Address(RVA = "0x2AA0E90", Offset = "0x2A9F890", VA = "0x182AA0E90")]
public static bool IndicateAchievementProgress(string pchName, uint nCurProgress, uint nMaxProgress)
{
int num;
bool flag;
do
{
num = 0;
InteropHelp.TestIfAvailableClient();
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
flag = NativeMethods.ISteamUserStats_IndicateAchievementProgress(CSteamAPIContext.m_pSteamUserStats, utf8StringHandle, nCurProgress, nMaxProgress);
if (utf8StringHandle != 0)
{
}
if (num != -1)
{
}
}
while (num != 0);
return flag;
}
// Token: 0x06006F33 RID: 28467 RVA: 0x0017641C File Offset: 0x0017461C
[Token(Token = "0x6006F33")]
[Address(RVA = "0x2AA05E0", Offset = "0x2A9EFE0", VA = "0x182AA05E0")]
public static uint GetNumAchievements()
{
InteropHelp.TestIfAvailableClient();
return NativeMethods.ISteamUserStats_GetNumAchievements(CSteamAPIContext.m_pSteamUserStats);
}
// Token: 0x06006F34 RID: 28468 RVA: 0x0017643C File Offset: 0x0017463C
[Token(Token = "0x6006F34")]
[Address(RVA = "0x2A9FB10", Offset = "0x2A9E510", VA = "0x182A9FB10")]
public static string GetAchievementName(uint iAchievement)
{
InteropHelp.TestIfAvailableClient();
IntPtr intPtr = CSteamAPIContext.m_pSteamUserStats;
intPtr = NativeMethods.ISteamUserStats_GetAchievementName(intPtr, iAchievement);
return InteropHelp.PtrToStringUTF8(intPtr);
}
// Token: 0x06006F35 RID: 28469 RVA: 0x00176464 File Offset: 0x00174664
[Token(Token = "0x6006F35")]
[Address(RVA = "0x2AA1160", Offset = "0x2A9FB60", VA = "0x182AA1160")]
public static SteamAPICall_t RequestUserStats(CSteamID steamIDUser)
{
/*
An exception occurred when decompiling this method (06006F35)
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SteamAPICall_t Steamworks.SteamUserStats::RequestUserStats(Steamworks.CSteamID)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
call:void(InteropHelp::TestIfAvailableClient)
stloc:TimeSpan(var_1_17, call:TimeSpan(TimeSpan::FromTicks, call:uint64[exp:int64](NativeMethods::ISteamUserStats_RequestUserStats, ldsfld:native int(CSteamAPIContext::m_pSteamUserStats), ldloc:CSteamID(steamIDUser))))
}
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: 0x06006F36 RID: 28470 RVA: 0x00176488 File Offset: 0x00174688
[Token(Token = "0x6006F36")]
[Address(RVA = "0x2AA0D40", Offset = "0x2A9F740", VA = "0x182AA0D40")]
public static bool GetUserStat(CSteamID steamIDUser, string pchName, out int pData)
{
int num;
bool flag;
do
{
num = 0;
InteropHelp.TestIfAvailableClient();
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
flag = NativeMethods.ISteamUserStats_GetUserStatInt32(CSteamAPIContext.m_pSteamUserStats, steamIDUser, utf8StringHandle, out pData);
if (utf8StringHandle != 0)
{
}
if (num != -1)
{
}
}
while (num != 0);
return flag;
}
// Token: 0x06006F37 RID: 28471 RVA: 0x001764C0 File Offset: 0x001746C0
[Token(Token = "0x6006F37")]
[Address(RVA = "0x2AA0BF0", Offset = "0x2A9F5F0", VA = "0x182AA0BF0")]
public static bool GetUserStat(CSteamID steamIDUser, string pchName, out float pData)
{
int num;
bool flag;
do
{
num = 0;
InteropHelp.TestIfAvailableClient();
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
flag = NativeMethods.ISteamUserStats_GetUserStatFloat(CSteamAPIContext.m_pSteamUserStats, steamIDUser, utf8StringHandle, out pData);
if (utf8StringHandle != 0)
{
}
if (num != -1)
{
}
}
while (num != 0);
return flag;
}
// Token: 0x06006F38 RID: 28472 RVA: 0x001764F8 File Offset: 0x001746F8
[Token(Token = "0x6006F38")]
[Address(RVA = "0x2AA0AA0", Offset = "0x2A9F4A0", VA = "0x182AA0AA0")]
public static bool GetUserAchievement(CSteamID steamIDUser, string pchName, out bool pbAchieved)
{
int num;
bool flag;
do
{
num = 0;
InteropHelp.TestIfAvailableClient();
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
flag = NativeMethods.ISteamUserStats_GetUserAchievement(CSteamAPIContext.m_pSteamUserStats, steamIDUser, utf8StringHandle, out pbAchieved);
if (utf8StringHandle != 0)
{
}
if (num != -1)
{
}
}
while (num != 0);
return flag;
}
// Token: 0x06006F39 RID: 28473 RVA: 0x00176530 File Offset: 0x00174730
[Token(Token = "0x6006F39")]
[Address(RVA = "0x2AA0940", Offset = "0x2A9F340", VA = "0x182AA0940")]
public static bool GetUserAchievementAndUnlockTime(CSteamID steamIDUser, string pchName, out bool pbAchieved, out uint punUnlockTime)
{
int num;
bool flag;
do
{
num = 0;
InteropHelp.TestIfAvailableClient();
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
flag = NativeMethods.ISteamUserStats_GetUserAchievementAndUnlockTime(CSteamAPIContext.m_pSteamUserStats, steamIDUser, utf8StringHandle, out pbAchieved, out punUnlockTime);
if (utf8StringHandle != 0)
{
}
if (num != -1)
{
}
}
while (num != 0);
return flag;
}
// Token: 0x06006F3A RID: 28474 RVA: 0x0017656C File Offset: 0x0017476C
[Token(Token = "0x6006F3A")]
[Address(RVA = "0x2AA1200", Offset = "0x2A9FC00", VA = "0x182AA1200")]
public static bool ResetAllStats(bool bAchievementsToo)
{
InteropHelp.TestIfAvailableClient();
return NativeMethods.ISteamUserStats_ResetAllStats(CSteamAPIContext.m_pSteamUserStats, bAchievementsToo);
}
// Token: 0x06006F3B RID: 28475 RVA: 0x0017658C File Offset: 0x0017478C
[Token(Token = "0x6006F3B")]
[Address(RVA = "0x2A9F430", Offset = "0x2A9DE30", VA = "0x182A9F430")]
public static SteamAPICall_t FindOrCreateLeaderboard(string pchLeaderboardName, ELeaderboardSortMethod eLeaderboardSortMethod, ELeaderboardDisplayType eLeaderboardDisplayType)
{
/*
An exception occurred when decompiling this method (06006F3B)
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SteamAPICall_t Steamworks.SteamUserStats::FindOrCreateLeaderboard(System.String,Steamworks.ELeaderboardSortMethod,Steamworks.ELeaderboardDisplayType)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_1E:
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: 0x06006F3C RID: 28476 RVA: 0x001765BC File Offset: 0x001747BC
[Token(Token = "0x6006F3C")]
[Address(RVA = "0x2A9F2D0", Offset = "0x2A9DCD0", VA = "0x182A9F2D0")]
public static SteamAPICall_t FindLeaderboard(string pchLeaderboardName)
{
/*
An exception occurred when decompiling this method (06006F3C)
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SteamAPICall_t Steamworks.SteamUserStats::FindLeaderboard(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: 0x06006F3D RID: 28477 RVA: 0x001765F8 File Offset: 0x001747F8
[Token(Token = "0x6006F3D")]
[Address(RVA = "0x2AA0300", Offset = "0x2A9ED00", VA = "0x182AA0300")]
public static string GetLeaderboardName(SteamLeaderboard_t hSteamLeaderboard)
{
InteropHelp.TestIfAvailableClient();
IntPtr intPtr = CSteamAPIContext.m_pSteamUserStats;
intPtr = NativeMethods.ISteamUserStats_GetLeaderboardName(intPtr, hSteamLeaderboard);
return InteropHelp.PtrToStringUTF8(intPtr);
}
// Token: 0x06006F3E RID: 28478 RVA: 0x00176620 File Offset: 0x00174820
[Token(Token = "0x6006F3E")]
[Address(RVA = "0x2AA02B0", Offset = "0x2A9ECB0", VA = "0x182AA02B0")]
public static int GetLeaderboardEntryCount(SteamLeaderboard_t hSteamLeaderboard)
{
InteropHelp.TestIfAvailableClient();
return NativeMethods.ISteamUserStats_GetLeaderboardEntryCount(CSteamAPIContext.m_pSteamUserStats, hSteamLeaderboard);
}
// Token: 0x06006F3F RID: 28479 RVA: 0x00176640 File Offset: 0x00174840
[Token(Token = "0x6006F3F")]
[Address(RVA = "0x2AA0360", Offset = "0x2A9ED60", VA = "0x182AA0360")]
public static ELeaderboardSortMethod GetLeaderboardSortMethod(SteamLeaderboard_t hSteamLeaderboard)
{
InteropHelp.TestIfAvailableClient();
return NativeMethods.ISteamUserStats_GetLeaderboardSortMethod(CSteamAPIContext.m_pSteamUserStats, hSteamLeaderboard);
}
// Token: 0x06006F40 RID: 28480 RVA: 0x00176660 File Offset: 0x00174860
[Token(Token = "0x6006F40")]
[Address(RVA = "0x2AA0260", Offset = "0x2A9EC60", VA = "0x182AA0260")]
public static ELeaderboardDisplayType GetLeaderboardDisplayType(SteamLeaderboard_t hSteamLeaderboard)
{
InteropHelp.TestIfAvailableClient();
return NativeMethods.ISteamUserStats_GetLeaderboardDisplayType(CSteamAPIContext.m_pSteamUserStats, hSteamLeaderboard);
}
// Token: 0x06006F41 RID: 28481 RVA: 0x00176680 File Offset: 0x00174880
[Token(Token = "0x6006F41")]
[Address(RVA = "0x2A9F200", Offset = "0x2A9DC00", VA = "0x182A9F200")]
public static SteamAPICall_t DownloadLeaderboardEntries(SteamLeaderboard_t hSteamLeaderboard, ELeaderboardDataRequest eLeaderboardDataRequest, int nRangeStart, int nRangeEnd)
{
/*
An exception occurred when decompiling this method (06006F41)
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SteamAPICall_t Steamworks.SteamUserStats::DownloadLeaderboardEntries(Steamworks.SteamLeaderboard_t,Steamworks.ELeaderboardDataRequest,System.Int32,System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
call:void(InteropHelp::TestIfAvailableClient)
stloc:native int(var_2_0C, ldsfld:native int(CSteamAPIContext::m_pSteamUserStats))
}
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: 0x06006F42 RID: 28482 RVA: 0x0017669C File Offset: 0x0017489C
[Token(Token = "0x6006F42")]
[Address(RVA = "0x2A9F140", Offset = "0x2A9DB40", VA = "0x182A9F140")]
public static SteamAPICall_t DownloadLeaderboardEntriesForUsers(SteamLeaderboard_t hSteamLeaderboard, CSteamID[] prgUsers, int cUsers)
{
/*
An exception occurred when decompiling this method (06006F42)
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SteamAPICall_t Steamworks.SteamUserStats::DownloadLeaderboardEntriesForUsers(Steamworks.SteamLeaderboard_t,Steamworks.CSteamID[],System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
call:void(InteropHelp::TestIfAvailableClient)
stloc:uint64(var_2_14, call:uint64(NativeMethods::ISteamUserStats_DownloadLeaderboardEntriesForUsers, ldsfld:native int(CSteamAPIContext::m_pSteamUserStats), ldloc:SteamLeaderboard_t(hSteamLeaderboard), ldloc:valuetype Steamworks.CSteamID[](prgUsers), ldloc:int32(cUsers)))
}
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: 0x06006F43 RID: 28483 RVA: 0x001766C0 File Offset: 0x001748C0
[Token(Token = "0x6006F43")]
[Address(RVA = "0x2A9FCB0", Offset = "0x2A9E6B0", VA = "0x182A9FCB0")]
public static bool GetDownloadedLeaderboardEntry(SteamLeaderboardEntries_t hSteamLeaderboardEntries, int index, out LeaderboardEntry_t pLeaderboardEntry, int[] pDetails, int cDetailsMax)
{
InteropHelp.TestIfAvailableClient();
IntPtr pSteamUserStats = CSteamAPIContext.m_pSteamUserStats;
bool flag;
return flag;
}
// Token: 0x06006F44 RID: 28484 RVA: 0x001766DC File Offset: 0x001748DC
[Token(Token = "0x6006F44")]
[Address(RVA = "0x2AA17D0", Offset = "0x2AA01D0", VA = "0x182AA17D0")]
public static SteamAPICall_t UploadLeaderboardScore(SteamLeaderboard_t hSteamLeaderboard, ELeaderboardUploadScoreMethod eLeaderboardUploadScoreMethod, int nScore, int[] pScoreDetails, int cScoreDetailsCount)
{
/*
An exception occurred when decompiling this method (06006F44)
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SteamAPICall_t Steamworks.SteamUserStats::UploadLeaderboardScore(Steamworks.SteamLeaderboard_t,Steamworks.ELeaderboardUploadScoreMethod,System.Int32,System.Int32[],System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
call:void(InteropHelp::TestIfAvailableClient)
stloc:native int(var_2_0C, ldsfld:native int(CSteamAPIContext::m_pSteamUserStats))
}
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: 0x06006F45 RID: 28485 RVA: 0x001766F8 File Offset: 0x001748F8
[Token(Token = "0x6006F45")]
[Address(RVA = "0x2A9EF60", Offset = "0x2A9D960", VA = "0x182A9EF60")]
public static SteamAPICall_t AttachLeaderboardUGC(SteamLeaderboard_t hSteamLeaderboard, UGCHandle_t hUGC)
{
/*
An exception occurred when decompiling this method (06006F45)
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SteamAPICall_t Steamworks.SteamUserStats::AttachLeaderboardUGC(Steamworks.SteamLeaderboard_t,Steamworks.UGCHandle_t)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
call:void(InteropHelp::TestIfAvailableClient)
stloc:uint64(var_1_13, call:uint64(NativeMethods::ISteamUserStats_AttachLeaderboardUGC, ldsfld:native int(CSteamAPIContext::m_pSteamUserStats), ldloc:SteamLeaderboard_t(hSteamLeaderboard), ldloc:UGCHandle_t(hUGC)))
}
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: 0x06006F46 RID: 28486 RVA: 0x00176718 File Offset: 0x00174918
[Token(Token = "0x6006F46")]
[Address(RVA = "0x2AA0630", Offset = "0x2A9F030", VA = "0x182AA0630")]
public static SteamAPICall_t GetNumberOfCurrentPlayers()
{
/*
An exception occurred when decompiling this method (06006F46)
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SteamAPICall_t Steamworks.SteamUserStats::GetNumberOfCurrentPlayers()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
call:void(InteropHelp::TestIfAvailableClient)
stloc:TimeSpan(var_1_16, call:TimeSpan(TimeSpan::FromTicks, call:uint64[exp:int64](NativeMethods::ISteamUserStats_GetNumberOfCurrentPlayers, ldsfld:native int(CSteamAPIContext::m_pSteamUserStats))))
}
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: 0x06006F47 RID: 28487 RVA: 0x0017673C File Offset: 0x0017493C
[Token(Token = "0x6006F47")]
[Address(RVA = "0x2AA1030", Offset = "0x2A9FA30", VA = "0x182AA1030")]
public static SteamAPICall_t RequestGlobalAchievementPercentages()
{
/*
An exception occurred when decompiling this method (06006F47)
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SteamAPICall_t Steamworks.SteamUserStats::RequestGlobalAchievementPercentages()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
call:void(InteropHelp::TestIfAvailableClient)
stloc:TimeSpan(var_1_16, call:TimeSpan(TimeSpan::FromTicks, call:uint64[exp:int64](NativeMethods::ISteamUserStats_RequestGlobalAchievementPercentages, ldsfld:native int(CSteamAPIContext::m_pSteamUserStats))))
}
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: 0x06006F48 RID: 28488 RVA: 0x00176760 File Offset: 0x00174960
[Token(Token = "0x6006F48")]
[Address(RVA = "0x2AA03B0", Offset = "0x2A9EDB0", VA = "0x182AA03B0")]
public static int GetMostAchievedAchievementInfo(out string pchName, uint unNameBufLen, out float pflPercent, out bool pbAchieved)
{
InteropHelp.TestIfAvailableClient();
IntPtr intPtr = Marshal.AllocHGlobal((int)unNameBufLen);
IntPtr intPtr2 = CSteamAPIContext.m_pSteamUserStats;
int num = NativeMethods.ISteamUserStats_GetMostAchievedAchievementInfo(intPtr2, intPtr, unNameBufLen, out pflPercent, out pbAchieved);
if (num != -1)
{
intPtr2 = intPtr;
string text = InteropHelp.PtrToStringUTF8(intPtr2);
}
Marshal.FreeHGlobal(intPtr);
return num;
}
// Token: 0x06006F49 RID: 28489 RVA: 0x001767A8 File Offset: 0x001749A8
[Token(Token = "0x6006F49")]
[Address(RVA = "0x2AA04C0", Offset = "0x2A9EEC0", VA = "0x182AA04C0")]
public static int GetNextMostAchievedAchievementInfo(int iIteratorPrevious, out string pchName, uint unNameBufLen, out float pflPercent, out bool pbAchieved)
{
InteropHelp.TestIfAvailableClient();
IntPtr intPtr = Marshal.AllocHGlobal((int)unNameBufLen);
IntPtr intPtr2 = CSteamAPIContext.m_pSteamUserStats;
int num;
if (num != -1)
{
intPtr2 = intPtr;
string text = InteropHelp.PtrToStringUTF8(intPtr2);
}
Marshal.FreeHGlobal(intPtr);
return num;
}
// Token: 0x06006F4A RID: 28490 RVA: 0x001767E4 File Offset: 0x001749E4
[Token(Token = "0x6006F4A")]
[Address(RVA = "0x2A9F5A0", Offset = "0x2A9DFA0", VA = "0x182A9F5A0")]
public static bool GetAchievementAchievedPercent(string pchName, out float pflPercent)
{
int num;
bool flag;
do
{
num = 0;
InteropHelp.TestIfAvailableClient();
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchName);
flag = NativeMethods.ISteamUserStats_GetAchievementAchievedPercent(CSteamAPIContext.m_pSteamUserStats, utf8StringHandle, out pflPercent);
if (utf8StringHandle != 0)
{
}
if (num != -1)
{
}
}
while (num != 0);
return flag;
}
// Token: 0x06006F4B RID: 28491 RVA: 0x0017681C File Offset: 0x00174A1C
[Token(Token = "0x6006F4B")]
[Address(RVA = "0x2AA10C0", Offset = "0x2A9FAC0", VA = "0x182AA10C0")]
public static SteamAPICall_t RequestGlobalStats(int nHistoryDays)
{
/*
An exception occurred when decompiling this method (06006F4B)
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SteamAPICall_t Steamworks.SteamUserStats::RequestGlobalStats(System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
call:void(InteropHelp::TestIfAvailableClient)
stloc:TimeSpan(var_1_17, call:TimeSpan(TimeSpan::FromTicks, call:uint64[exp:int64](NativeMethods::ISteamUserStats_RequestGlobalStats, ldsfld:native int(CSteamAPIContext::m_pSteamUserStats), ldloc:int32(nHistoryDays))))
}
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: 0x06006F4C RID: 28492 RVA: 0x00176840 File Offset: 0x00174A40
[Token(Token = "0x6006F4C")]
[Address(RVA = "0x2A9FFE0", Offset = "0x2A9E9E0", VA = "0x182A9FFE0")]
public static bool GetGlobalStat(string pchStatName, out long pData)
{
int num;
bool flag;
do
{
num = 0;
InteropHelp.TestIfAvailableClient();
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchStatName);
flag = NativeMethods.ISteamUserStats_GetGlobalStatInt64(CSteamAPIContext.m_pSteamUserStats, utf8StringHandle, out pData);
if (utf8StringHandle != 0)
{
}
if (num != -1)
{
}
}
while (num != 0);
return flag;
}
// Token: 0x06006F4D RID: 28493 RVA: 0x00176878 File Offset: 0x00174A78
[Token(Token = "0x6006F4D")]
[Address(RVA = "0x2AA0120", Offset = "0x2A9EB20", VA = "0x182AA0120")]
public static bool GetGlobalStat(string pchStatName, out double pData)
{
int num;
bool flag;
do
{
num = 0;
InteropHelp.TestIfAvailableClient();
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchStatName);
flag = NativeMethods.ISteamUserStats_GetGlobalStatDouble(CSteamAPIContext.m_pSteamUserStats, utf8StringHandle, out pData);
if (utf8StringHandle != 0)
{
}
if (num != -1)
{
}
}
while (num != 0);
return flag;
}
// Token: 0x06006F4E RID: 28494 RVA: 0x001768B0 File Offset: 0x00174AB0
[Token(Token = "0x6006F4E")]
[Address(RVA = "0x2A9FD40", Offset = "0x2A9E740", VA = "0x182A9FD40")]
public static int GetGlobalStatHistory(string pchStatName, long[] pData, uint cubData)
{
int num;
int num2;
do
{
num = 0;
InteropHelp.TestIfAvailableClient();
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchStatName);
num2 = NativeMethods.ISteamUserStats_GetGlobalStatHistoryInt64(CSteamAPIContext.m_pSteamUserStats, utf8StringHandle, pData, cubData);
if (utf8StringHandle != 0)
{
}
if (num != -1)
{
}
}
while (num != 0);
return num2;
}
// Token: 0x06006F4F RID: 28495 RVA: 0x001768E8 File Offset: 0x00174AE8
[Token(Token = "0x6006F4F")]
[Address(RVA = "0x2A9FE90", Offset = "0x2A9E890", VA = "0x182A9FE90")]
public static int GetGlobalStatHistory(string pchStatName, double[] pData, uint cubData)
{
int num;
int num2;
do
{
num = 0;
InteropHelp.TestIfAvailableClient();
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchStatName);
num2 = NativeMethods.ISteamUserStats_GetGlobalStatHistoryDouble(CSteamAPIContext.m_pSteamUserStats, utf8StringHandle, pData, cubData);
if (utf8StringHandle != 0)
{
}
if (num != -1)
{
}
}
while (num != 0);
return num2;
}
}
}