Files
27Aug2021-Cpp2IL-Dump/Assembly-CSharp/Steamworks/SteamApps.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

367 lines
17 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace Steamworks
{
// Token: 0x020018F1 RID: 6385
[Token(Token = "0x20018F1")]
public static class SteamApps
{
// Token: 0x06008EB6 RID: 36534 RVA: 0x001D77B4 File Offset: 0x001D59B4
[Token(Token = "0x6008EB6")]
[Address(RVA = "0xF59070", Offset = "0xF58070", VA = "0x180F59070")]
public static bool BIsSubscribed()
{
InteropHelp.TestIfAvailableClient();
return NativeMethods.ISteamApps_BIsSubscribed(CSteamAPIContext.m_pSteamApps);
}
// Token: 0x06008EB7 RID: 36535 RVA: 0x001D77D4 File Offset: 0x001D59D4
[Token(Token = "0x6008EB7")]
[Address(RVA = "0xF58F30", Offset = "0xF57F30", VA = "0x180F58F30")]
public static bool BIsLowViolence()
{
InteropHelp.TestIfAvailableClient();
return NativeMethods.ISteamApps_BIsLowViolence(CSteamAPIContext.m_pSteamApps);
}
// Token: 0x06008EB8 RID: 36536 RVA: 0x001D77F4 File Offset: 0x001D59F4
[Token(Token = "0x6008EB8")]
[Address(RVA = "0xF58E90", Offset = "0xF57E90", VA = "0x180F58E90")]
public static bool BIsCybercafe()
{
InteropHelp.TestIfAvailableClient();
return NativeMethods.ISteamApps_BIsCybercafe(CSteamAPIContext.m_pSteamApps);
}
// Token: 0x06008EB9 RID: 36537 RVA: 0x001D7814 File Offset: 0x001D5A14
[Token(Token = "0x6008EB9")]
[Address(RVA = "0xF590C0", Offset = "0xF580C0", VA = "0x180F590C0")]
public static bool BIsVACBanned()
{
InteropHelp.TestIfAvailableClient();
return NativeMethods.ISteamApps_BIsVACBanned(CSteamAPIContext.m_pSteamApps);
}
// Token: 0x06008EBA RID: 36538 RVA: 0x001D7834 File Offset: 0x001D5A34
[Token(Token = "0x6008EBA")]
[Address(RVA = "0xF59440", Offset = "0xF58440", VA = "0x180F59440")]
public static string GetCurrentGameLanguage()
{
InteropHelp.TestIfAvailableClient();
IntPtr intPtr = CSteamAPIContext.m_pSteamApps;
intPtr = NativeMethods.ISteamApps_GetCurrentGameLanguage(intPtr);
return InteropHelp.PtrToStringUTF8(intPtr);
}
// Token: 0x06008EBB RID: 36539 RVA: 0x001D785C File Offset: 0x001D5A5C
[Token(Token = "0x6008EBB")]
[Address(RVA = "0xF59300", Offset = "0xF58300", VA = "0x180F59300")]
public static string GetAvailableGameLanguages()
{
InteropHelp.TestIfAvailableClient();
IntPtr intPtr = CSteamAPIContext.m_pSteamApps;
intPtr = NativeMethods.ISteamApps_GetAvailableGameLanguages(intPtr);
return InteropHelp.PtrToStringUTF8(intPtr);
}
// Token: 0x06008EBC RID: 36540 RVA: 0x001D7884 File Offset: 0x001D5A84
[Token(Token = "0x6008EBC")]
[Address(RVA = "0xF58F80", Offset = "0xF57F80", VA = "0x180F58F80")]
public static bool BIsSubscribedApp(AppId_t appID)
{
InteropHelp.TestIfAvailableClient();
IntPtr pSteamApps = CSteamAPIContext.m_pSteamApps;
bool flag;
return flag;
}
// Token: 0x06008EBD RID: 36541 RVA: 0x001D78A0 File Offset: 0x001D5AA0
[Token(Token = "0x6008EBD")]
[Address(RVA = "0xF58EE0", Offset = "0xF57EE0", VA = "0x180F58EE0")]
public static bool BIsDlcInstalled(AppId_t appID)
{
InteropHelp.TestIfAvailableClient();
IntPtr pSteamApps = CSteamAPIContext.m_pSteamApps;
bool flag;
return flag;
}
// Token: 0x06008EBE RID: 36542 RVA: 0x001D78BC File Offset: 0x001D5ABC
[Token(Token = "0x6008EBE")]
[Address(RVA = "0xF59560", Offset = "0xF58560", VA = "0x180F59560")]
public static uint GetEarliestPurchaseUnixTime(AppId_t nAppID)
{
InteropHelp.TestIfAvailableClient();
IntPtr pSteamApps = CSteamAPIContext.m_pSteamApps;
uint num;
return num;
}
// Token: 0x06008EBF RID: 36543 RVA: 0x001D78D8 File Offset: 0x001D5AD8
[Token(Token = "0x6008EBF")]
[Address(RVA = "0xF59020", Offset = "0xF58020", VA = "0x180F59020")]
public static bool BIsSubscribedFromFreeWeekend()
{
InteropHelp.TestIfAvailableClient();
return NativeMethods.ISteamApps_BIsSubscribedFromFreeWeekend(CSteamAPIContext.m_pSteamApps);
}
// Token: 0x06008EC0 RID: 36544 RVA: 0x001D78F8 File Offset: 0x001D5AF8
[Token(Token = "0x6008EC0")]
[Address(RVA = "0xF59490", Offset = "0xF58490", VA = "0x180F59490")]
public static int GetDLCCount()
{
InteropHelp.TestIfAvailableClient();
return NativeMethods.ISteamApps_GetDLCCount(CSteamAPIContext.m_pSteamApps);
}
// Token: 0x06008EC1 RID: 36545 RVA: 0x001D7918 File Offset: 0x001D5B18
[Token(Token = "0x6008EC1")]
[Address(RVA = "0xF58D10", Offset = "0xF57D10", VA = "0x180F58D10")]
public static bool BGetDLCDataByIndex(int iDLC, out AppId_t pAppID, out bool pbAvailable, out string pchName, int cchNameBufferSize)
{
InteropHelp.TestIfAvailableClient();
IntPtr intPtr = CSteamAPIContext.m_pSteamApps;
bool flag;
IntPtr intPtr2;
if (flag)
{
intPtr = intPtr2;
string text = InteropHelp.PtrToStringUTF8(intPtr);
}
Marshal.FreeHGlobal(intPtr2);
return flag;
}
// Token: 0x06008EC2 RID: 36546 RVA: 0x001D794C File Offset: 0x001D5B4C
[Token(Token = "0x6008EC2")]
[Address(RVA = "0xF59950", Offset = "0xF58950", VA = "0x180F59950")]
public static void InstallDLC(AppId_t nAppID)
{
InteropHelp.TestIfAvailableClient();
IntPtr pSteamApps = CSteamAPIContext.m_pSteamApps;
}
// Token: 0x06008EC3 RID: 36547 RVA: 0x001D7968 File Offset: 0x001D5B68
[Token(Token = "0x6008EC3")]
[Address(RVA = "0xF59A90", Offset = "0xF58A90", VA = "0x180F59A90")]
public static void UninstallDLC(AppId_t nAppID)
{
InteropHelp.TestIfAvailableClient();
IntPtr pSteamApps = CSteamAPIContext.m_pSteamApps;
}
// Token: 0x06008EC4 RID: 36548 RVA: 0x001D7984 File Offset: 0x001D5B84
[Token(Token = "0x6008EC4")]
[Address(RVA = "0xF59A40", Offset = "0xF58A40", VA = "0x180F59A40")]
public static void RequestAppProofOfPurchaseKey(AppId_t nAppID)
{
InteropHelp.TestIfAvailableClient();
IntPtr pSteamApps = CSteamAPIContext.m_pSteamApps;
}
// Token: 0x06008EC5 RID: 36549 RVA: 0x001D79A0 File Offset: 0x001D5BA0
[Token(Token = "0x6008EC5")]
[Address(RVA = "0xF59350", Offset = "0xF58350", VA = "0x180F59350")]
public static bool GetCurrentBetaName(out string pchName, int cchNameBufferSize)
{
InteropHelp.TestIfAvailableClient();
IntPtr intPtr = Marshal.AllocHGlobal(cchNameBufferSize);
IntPtr intPtr2 = CSteamAPIContext.m_pSteamApps;
bool flag = NativeMethods.ISteamApps_GetCurrentBetaName(intPtr2, intPtr, cchNameBufferSize);
if (flag)
{
intPtr2 = intPtr;
string text = InteropHelp.PtrToStringUTF8(intPtr2);
}
Marshal.FreeHGlobal(intPtr);
return flag;
}
// Token: 0x06008EC6 RID: 36550 RVA: 0x001D79E4 File Offset: 0x001D5BE4
[Token(Token = "0x6008EC6")]
[Address(RVA = "0xF599A0", Offset = "0xF589A0", VA = "0x180F599A0")]
public static bool MarkContentCorrupt(bool bMissingFilesOnly)
{
InteropHelp.TestIfAvailableClient();
return NativeMethods.ISteamApps_MarkContentCorrupt(CSteamAPIContext.m_pSteamApps, bMissingFilesOnly);
}
// Token: 0x06008EC7 RID: 36551 RVA: 0x001D7A04 File Offset: 0x001D5C04
[Token(Token = "0x6008EC7")]
[Address(RVA = "0xF596D0", Offset = "0xF586D0", VA = "0x180F596D0")]
public static uint GetInstalledDepots(AppId_t appID, DepotId_t[] pvecDepots, uint cMaxDepots)
{
InteropHelp.TestIfAvailableClient();
IntPtr pSteamApps = CSteamAPIContext.m_pSteamApps;
uint num;
return num;
}
// Token: 0x06008EC8 RID: 36552 RVA: 0x001D7A20 File Offset: 0x001D5C20
[Token(Token = "0x6008EC8")]
[Address(RVA = "0xF59160", Offset = "0xF58160", VA = "0x180F59160")]
public static uint GetAppInstallDir(AppId_t appID, out string pchFolder, uint cchFolderBufferSize)
{
InteropHelp.TestIfAvailableClient();
IntPtr intPtr = Marshal.AllocHGlobal((int)cchFolderBufferSize);
IntPtr intPtr2 = CSteamAPIContext.m_pSteamApps;
uint num;
if (num != (uint)0)
{
intPtr2 = intPtr;
string text = InteropHelp.PtrToStringUTF8(intPtr2);
}
Marshal.FreeHGlobal(intPtr);
return num;
}
// Token: 0x06008EC9 RID: 36553 RVA: 0x001D7A5C File Offset: 0x001D5C5C
[Token(Token = "0x6008EC9")]
[Address(RVA = "0xF58E40", Offset = "0xF57E40", VA = "0x180F58E40")]
public static bool BIsAppInstalled(AppId_t appID)
{
InteropHelp.TestIfAvailableClient();
IntPtr pSteamApps = CSteamAPIContext.m_pSteamApps;
bool flag;
return flag;
}
// Token: 0x06008ECA RID: 36554 RVA: 0x001D7A78 File Offset: 0x001D5C78
[Token(Token = "0x6008ECA")]
[Address(RVA = "0xF59270", Offset = "0xF58270", VA = "0x180F59270")]
public static CSteamID GetAppOwner()
{
/*
An exception occurred when decompiling this method (06008ECA)
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.CSteamID Steamworks.SteamApps::GetAppOwner()
---> 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::ISteamApps_GetAppOwner, ldsfld:native int(CSteamAPIContext::m_pSteamApps))))
}
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: 0x06008ECB RID: 36555 RVA: 0x001D7A9C File Offset: 0x001D5C9C
[Token(Token = "0x6008ECB")]
[Address(RVA = "0xF59840", Offset = "0xF58840", VA = "0x180F59840")]
public static string GetLaunchQueryParam(string pchKey)
{
int num;
string text;
do
{
num = 0;
InteropHelp.TestIfAvailableClient();
InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchKey);
IntPtr intPtr = CSteamAPIContext.m_pSteamApps;
intPtr = NativeMethods.ISteamApps_GetLaunchQueryParam(intPtr, utf8StringHandle);
text = InteropHelp.PtrToStringUTF8(intPtr);
if (utf8StringHandle != 0)
{
}
}
while (num != 0);
return text;
}
// Token: 0x06008ECC RID: 36556 RVA: 0x001D7ADC File Offset: 0x001D5CDC
[Token(Token = "0x6008ECC")]
[Address(RVA = "0xF594E0", Offset = "0xF584E0", VA = "0x180F594E0")]
public static bool GetDlcDownloadProgress(AppId_t nAppID, out ulong punBytesDownloaded, out ulong punBytesTotal)
{
InteropHelp.TestIfAvailableClient();
IntPtr pSteamApps = CSteamAPIContext.m_pSteamApps;
bool flag;
return flag;
}
// Token: 0x06008ECD RID: 36557 RVA: 0x001D7AF8 File Offset: 0x001D5CF8
[Token(Token = "0x6008ECD")]
[Address(RVA = "0xF59110", Offset = "0xF58110", VA = "0x180F59110")]
public static int GetAppBuildId()
{
InteropHelp.TestIfAvailableClient();
return NativeMethods.ISteamApps_GetAppBuildId(CSteamAPIContext.m_pSteamApps);
}
// Token: 0x06008ECE RID: 36558 RVA: 0x001D7B18 File Offset: 0x001D5D18
[Token(Token = "0x6008ECE")]
[Address(RVA = "0xF599F0", Offset = "0xF589F0", VA = "0x180F599F0")]
public static void RequestAllProofOfPurchaseKeys()
{
InteropHelp.TestIfAvailableClient();
NativeMethods.ISteamApps_RequestAllProofOfPurchaseKeys(CSteamAPIContext.m_pSteamApps);
}
// Token: 0x06008ECF RID: 36559 RVA: 0x001D7B38 File Offset: 0x001D5D38
[Token(Token = "0x6008ECF")]
[Address(RVA = "0xF595B0", Offset = "0xF585B0", VA = "0x180F595B0")]
public static SteamAPICall_t GetFileDetails(string pszFileName)
{
/*
An exception occurred when decompiling this method (06008ECF)
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.SteamAPICall_t Steamworks.SteamApps::GetFileDetails(System.String)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_20:
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: 0x06008ED0 RID: 36560 RVA: 0x001D7B68 File Offset: 0x001D5D68
[Token(Token = "0x6008ED0")]
[Address(RVA = "0xF59750", Offset = "0xF58750", VA = "0x180F59750")]
public static int GetLaunchCommandLine(out string pszCommandLine, int cubCommandLine)
{
InteropHelp.TestIfAvailableClient();
IntPtr intPtr = Marshal.AllocHGlobal(cubCommandLine);
IntPtr intPtr2 = CSteamAPIContext.m_pSteamApps;
if (NativeMethods.ISteamApps_GetLaunchCommandLine(intPtr2, intPtr, cubCommandLine) != -1)
{
intPtr2 = intPtr;
string text = InteropHelp.PtrToStringUTF8(intPtr2);
}
Marshal.FreeHGlobal(intPtr);
return cubCommandLine;
}
// Token: 0x06008ED1 RID: 36561 RVA: 0x001D7BA8 File Offset: 0x001D5DA8
[Token(Token = "0x6008ED1")]
[Address(RVA = "0xF58FD0", Offset = "0xF57FD0", VA = "0x180F58FD0")]
public static bool BIsSubscribedFromFamilySharing()
{
InteropHelp.TestIfAvailableClient();
return NativeMethods.ISteamApps_BIsSubscribedFromFamilySharing(CSteamAPIContext.m_pSteamApps);
}
}
}