118 lines
7.9 KiB
C#
118 lines
7.9 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace Steamworks
|
|
{
|
|
// Token: 0x0200190A RID: 6410
|
|
[Token(Token = "0x200190A")]
|
|
public static class SteamRemotePlay
|
|
{
|
|
// Token: 0x060091B7 RID: 37303 RVA: 0x001DEA70 File Offset: 0x001DCC70
|
|
[Token(Token = "0x60091B7")]
|
|
[Address(RVA = "0x599AE0", Offset = "0x598AE0", VA = "0x180599AE0")]
|
|
public static uint GetSessionCount()
|
|
{
|
|
InteropHelp.TestIfAvailableClient();
|
|
return NativeMethods.ISteamRemotePlay_GetSessionCount(CSteamAPIContext.m_pSteamRemotePlay);
|
|
}
|
|
|
|
// Token: 0x060091B8 RID: 37304 RVA: 0x001DEA90 File Offset: 0x001DCC90
|
|
[Token(Token = "0x60091B8")]
|
|
[Address(RVA = "0x599B30", Offset = "0x598B30", VA = "0x180599B30")]
|
|
public static RemotePlaySessionID_t GetSessionID(int iSessionIndex)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060091B8)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.RemotePlaySessionID_t Steamworks.SteamRemotePlay::GetSessionID(System.Int32)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
call:void(InteropHelp::TestIfAvailableClient)
|
|
stloc:int64(var_1_17, call:int64(Convert::ToInt64, call:uint32(NativeMethods::ISteamRemotePlay_GetSessionID, ldsfld:native int(CSteamAPIContext::m_pSteamRemotePlay), ldloc:int32(iSessionIndex))))
|
|
}
|
|
|
|
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: 0x060091B9 RID: 37305 RVA: 0x001DEAB4 File Offset: 0x001DCCB4
|
|
[Token(Token = "0x60091B9")]
|
|
[Address(RVA = "0x599B90", Offset = "0x598B90", VA = "0x180599B90")]
|
|
public static CSteamID GetSessionSteamID(RemotePlaySessionID_t unSessionID)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060091B9)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling Steamworks.CSteamID Steamworks.SteamRemotePlay::GetSessionSteamID(Steamworks.RemotePlaySessionID_t)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
call:void(InteropHelp::TestIfAvailableClient)
|
|
stloc:native int(var_1_0C, ldsfld:native int(CSteamAPIContext::m_pSteamRemotePlay))
|
|
stloc:TimeSpan(var_3_13, call:TimeSpan(TimeSpan::FromTicks, ldloc:uint64[exp:int64](var_2)))
|
|
}
|
|
|
|
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: 0x060091BA RID: 37306 RVA: 0x001DEAD4 File Offset: 0x001DCCD4
|
|
[Token(Token = "0x60091BA")]
|
|
[Address(RVA = "0x599A80", Offset = "0x598A80", VA = "0x180599A80")]
|
|
public static string GetSessionClientName(RemotePlaySessionID_t unSessionID)
|
|
{
|
|
InteropHelp.TestIfAvailableClient();
|
|
IntPtr intPtr = CSteamAPIContext.m_pSteamRemotePlay;
|
|
IntPtr intPtr2;
|
|
intPtr = intPtr2;
|
|
return InteropHelp.PtrToStringUTF8(intPtr);
|
|
}
|
|
|
|
// Token: 0x060091BB RID: 37307 RVA: 0x001DEAF8 File Offset: 0x001DCCF8
|
|
[Token(Token = "0x60091BB")]
|
|
[Address(RVA = "0x599A30", Offset = "0x598A30", VA = "0x180599A30")]
|
|
public static ESteamDeviceFormFactor GetSessionClientFormFactor(RemotePlaySessionID_t unSessionID)
|
|
{
|
|
InteropHelp.TestIfAvailableClient();
|
|
IntPtr pSteamRemotePlay = CSteamAPIContext.m_pSteamRemotePlay;
|
|
ESteamDeviceFormFactor esteamDeviceFormFactor;
|
|
return esteamDeviceFormFactor;
|
|
}
|
|
|
|
// Token: 0x060091BC RID: 37308 RVA: 0x001DEB14 File Offset: 0x001DCD14
|
|
[Token(Token = "0x60091BC")]
|
|
[Address(RVA = "0x599960", Offset = "0x598960", VA = "0x180599960")]
|
|
public static bool BGetSessionClientResolution(RemotePlaySessionID_t unSessionID, out int pnResolutionX, out int pnResolutionY)
|
|
{
|
|
InteropHelp.TestIfAvailableClient();
|
|
IntPtr pSteamRemotePlay = CSteamAPIContext.m_pSteamRemotePlay;
|
|
bool flag;
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x060091BD RID: 37309 RVA: 0x001DEB30 File Offset: 0x001DCD30
|
|
[Token(Token = "0x60091BD")]
|
|
[Address(RVA = "0x5999E0", Offset = "0x5989E0", VA = "0x1805999E0")]
|
|
public static bool BSendRemotePlayTogetherInvite(CSteamID steamIDFriend)
|
|
{
|
|
InteropHelp.TestIfAvailableClient();
|
|
return NativeMethods.ISteamRemotePlay_BSendRemotePlayTogetherInvite(CSteamAPIContext.m_pSteamRemotePlay, steamIDFriend);
|
|
}
|
|
}
|
|
}
|