Files
2026-04-08 23:40:05 +02:00

122 lines
7.3 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace Steamworks
{
// Token: 0x020010B8 RID: 4280
[Token(Token = "0x20010B8")]
[StructLayout(3)]
public static class SteamAPI
{
// Token: 0x060067F6 RID: 26614 RVA: 0x0016C248 File Offset: 0x0016A448
[Token(Token = "0x60067F6")]
[Address(RVA = "0x2A18940", Offset = "0x2A17340", VA = "0x182A18940")]
public static bool Init()
{
bool flag = NativeMethods.SteamAPI_Init();
if (flag && CSteamAPIContext.Init())
{
CallbackDispatcher.Initialize();
}
return flag;
}
// Token: 0x060067F7 RID: 26615 RVA: 0x0016C278 File Offset: 0x0016A478
[Token(Token = "0x60067F7")]
[Address(RVA = "0x2A18A70", Offset = "0x2A17470", VA = "0x182A18A70")]
public static void Shutdown()
{
NativeMethods.SteamAPI_Shutdown();
CSteamAPIContext.Clear();
CallbackDispatcher.Shutdown();
}
// Token: 0x060067F8 RID: 26616 RVA: 0x0016C29C File Offset: 0x0016A49C
[Token(Token = "0x60067F8")]
[Address(RVA = "0x2A18A00", Offset = "0x2A17400", VA = "0x182A18A00")]
public static bool RestartAppIfNecessary(AppId_t unOwnAppID)
{
uint appId = unOwnAppID.m_AppId;
bool flag;
return flag;
}
// Token: 0x060067F9 RID: 26617 RVA: 0x0016C2B4 File Offset: 0x0016A4B4
[Token(Token = "0x60067F9")]
[Address(RVA = "0x2A189E0", Offset = "0x2A173E0", VA = "0x182A189E0")]
public static void ReleaseCurrentThreadMemory()
{
NativeMethods.SteamAPI_ReleaseCurrentThreadMemory();
}
// Token: 0x060067FA RID: 26618 RVA: 0x0016C2CC File Offset: 0x0016A4CC
[Token(Token = "0x60067FA")]
[Address(RVA = "0x2A18A20", Offset = "0x2A17420", VA = "0x182A18A20")]
public static void RunCallbacks()
{
CallbackDispatcher.RunFrame(false);
}
// Token: 0x060067FB RID: 26619 RVA: 0x0016C2E0 File Offset: 0x0016A4E0
[Token(Token = "0x60067FB")]
[Address(RVA = "0x2A189C0", Offset = "0x2A173C0", VA = "0x182A189C0")]
public static bool IsSteamRunning()
{
return NativeMethods.SteamAPI_IsSteamRunning();
}
// Token: 0x060067FC RID: 26620 RVA: 0x0016C2F8 File Offset: 0x0016A4F8
[Token(Token = "0x60067FC")]
[Address(RVA = "0x2A18900", Offset = "0x2A17300", VA = "0x182A18900")]
public static HSteamPipe GetHSteamPipe()
{
/*
An exception occurred when decompiling this method (060067FC)
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.HSteamPipe Steamworks.SteamAPI::GetHSteamPipe()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:int64(var_2_0E, call:int64(Convert::ToInt64, call:int32[exp:uint32](NativeMethods::SteamAPI_GetHSteamPipe)))
}
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: 0x060067FD RID: 26621 RVA: 0x0016C314 File Offset: 0x0016A514
[Token(Token = "0x60067FD")]
[Address(RVA = "0x2A18920", Offset = "0x2A17320", VA = "0x182A18920")]
public static HSteamUser GetHSteamUser()
{
/*
An exception occurred when decompiling this method (060067FD)
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.HSteamUser Steamworks.SteamAPI::GetHSteamUser()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:int64(var_2_0E, call:int64(Convert::ToInt64, call:int32[exp:uint32](NativeMethods::SteamAPI_GetHSteamUser)))
}
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
*/;
}
}
}