a
This commit is contained in:
@@ -0,0 +1,253 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace Steamworks
|
||||
{
|
||||
// Token: 0x020016AD RID: 5805
|
||||
[Token(Token = "0x20016AD")]
|
||||
public sealed class CallResult<T> : CallResult, IDisposable
|
||||
{
|
||||
// Token: 0x140000B7 RID: 183
|
||||
// (add) Token: 0x060086D6 RID: 34518 RVA: 0x001CBFA4 File Offset: 0x001CA1A4
|
||||
// (remove) Token: 0x060086D7 RID: 34519 RVA: 0x001CBFCC File Offset: 0x001CA1CC
|
||||
[Token(Token = "0x140000B7")]
|
||||
private event CallResult<T>.APIDispatchDelegate m_Func
|
||||
{
|
||||
[Token(Token = "0x60086D6")]
|
||||
[Address(RVA = "0x2FAABA0", Offset = "0x2FA99A0", VA = "0x182FAABA0")]
|
||||
[CompilerGenerated]
|
||||
add
|
||||
{
|
||||
CallResult.APIDispatchDelegate func;
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
func = this.m_Func;
|
||||
@delegate = Delegate.Combine(func, value);
|
||||
if (@delegate == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (@delegate == 0);
|
||||
while (@delegate != func)
|
||||
{
|
||||
}
|
||||
}
|
||||
[Token(Token = "0x60086D7")]
|
||||
[Address(RVA = "0x2FAAC60", Offset = "0x2FA9A60", VA = "0x182FAAC60")]
|
||||
[CompilerGenerated]
|
||||
remove
|
||||
{
|
||||
CallResult.APIDispatchDelegate func;
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
func = this.m_Func;
|
||||
@delegate = Delegate.Remove(func, value);
|
||||
if (@delegate == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (@delegate == 0);
|
||||
while (@delegate != func)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170016C9 RID: 5833
|
||||
// (get) Token: 0x060086D8 RID: 34520 RVA: 0x001CBFF4 File Offset: 0x001CA1F4
|
||||
[Token(Token = "0x170016C9")]
|
||||
public SteamAPICall_t Handle
|
||||
{
|
||||
[Token(Token = "0x60086D8")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.m_hAPICall;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060086D9 RID: 34521 RVA: 0x001CC008 File Offset: 0x001CA208
|
||||
[Token(Token = "0x60086D9")]
|
||||
[Address(RVA = "0x2FAA4C0", Offset = "0x2FA92C0", VA = "0x182FAA4C0")]
|
||||
public static CallResult<T> Create([Optional] CallResult<T>.APIDispatchDelegate func)
|
||||
{
|
||||
return new CallResult(func);
|
||||
}
|
||||
|
||||
// Token: 0x060086DA RID: 34522 RVA: 0x001CC01C File Offset: 0x001CA21C
|
||||
[Token(Token = "0x60086DA")]
|
||||
[Address(RVA = "0x2FAAB20", Offset = "0x2FA9920", VA = "0x182FAAB20")]
|
||||
public CallResult([Optional] CallResult<T>.APIDispatchDelegate func)
|
||||
{
|
||||
SteamAPICall_t invalid = SteamAPICall_t.Invalid;
|
||||
this.m_hAPICall = invalid;
|
||||
base..ctor();
|
||||
this.m_Func = func;
|
||||
}
|
||||
|
||||
// Token: 0x060086DB RID: 34523 RVA: 0x001CC044 File Offset: 0x001CA244
|
||||
[Token(Token = "0x60086DB")]
|
||||
[Address(RVA = "0x2FAA610", Offset = "0x2FA9410", VA = "0x182FAA610", Slot = "1")]
|
||||
protected override void Finalize()
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
this.Dispose();
|
||||
base..ctor();
|
||||
}
|
||||
while (num != 0);
|
||||
}
|
||||
|
||||
// Token: 0x060086DC RID: 34524 RVA: 0x001CC06C File Offset: 0x001CA26C
|
||||
[Token(Token = "0x60086DC")]
|
||||
[Address(RVA = "0x2FAA590", Offset = "0x2FA9390", VA = "0x182FAA590", Slot = "7")]
|
||||
public void Dispose()
|
||||
{
|
||||
GC.SuppressFinalize(this);
|
||||
this.Cancel();
|
||||
this.m_bDisposed = true;
|
||||
}
|
||||
|
||||
// Token: 0x060086DD RID: 34525 RVA: 0x001CC08C File Offset: 0x001CA28C
|
||||
[Token(Token = "0x60086DD")]
|
||||
[Address(RVA = "0x2FAA9A0", Offset = "0x2FA97A0", VA = "0x182FAA9A0")]
|
||||
public void Set(SteamAPICall_t hAPICall, [Optional] CallResult<T>.APIDispatchDelegate func)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060086DD)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void Steamworks.CallResult`1::Set(Steamworks.SteamAPICall_t,Steamworks.CallResult`1/APIDispatchDelegate<T>)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_56:
|
||||
stloc:Exception(var_3_60, newobj:Exception(Exception::.ctor, ldstr:string("CallResult function was null, you must either set it in the CallResult Constructor or via Set()")))
|
||||
}
|
||||
|
||||
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 1660
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x060086DE RID: 34526 RVA: 0x001CC0FC File Offset: 0x001CA2FC
|
||||
[Token(Token = "0x60086DE")]
|
||||
[Address(RVA = "0x2FAA710", Offset = "0x2FA9510", VA = "0x182FAA710")]
|
||||
public bool IsActive()
|
||||
{
|
||||
SteamAPICall_t hAPICall = this.m_hAPICall;
|
||||
SteamAPICall_t invalid = SteamAPICall_t.Invalid;
|
||||
return hAPICall != invalid;
|
||||
}
|
||||
|
||||
// Token: 0x060086DF RID: 34527 RVA: 0x001CC120 File Offset: 0x001CA320
|
||||
[Token(Token = "0x60086DF")]
|
||||
[Address(RVA = "0x2FAA430", Offset = "0x2FA9230", VA = "0x182FAA430")]
|
||||
public void Cancel()
|
||||
{
|
||||
if (this.IsActive())
|
||||
{
|
||||
CallbackDispatcher.Unregister(this.m_hAPICall, this);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060086E0 RID: 34528 RVA: 0x001CC148 File Offset: 0x001CA348
|
||||
[Token(Token = "0x60086E0")]
|
||||
[Address(RVA = "0x2FAA6B0", Offset = "0x2FA94B0", VA = "0x182FAA6B0", Slot = "4")]
|
||||
internal override Type GetCallbackType()
|
||||
{
|
||||
Type type;
|
||||
return type;
|
||||
}
|
||||
|
||||
// Token: 0x060086E1 RID: 34529 RVA: 0x001CC158 File Offset: 0x001CA358
|
||||
[Token(Token = "0x60086E1")]
|
||||
[Address(RVA = "0x2FAA780", Offset = "0x2FA9580", VA = "0x182FAA780", Slot = "5")]
|
||||
internal override void OnRunCallResult(IntPtr pvParam, bool bFailed, ulong hSteamAPICall_)
|
||||
{
|
||||
CallResult.APIDispatchDelegate func = this.m_Func;
|
||||
Type type;
|
||||
object obj = Marshal.PtrToStructure(pvParam, type);
|
||||
if (obj == 0)
|
||||
{
|
||||
}
|
||||
if (obj != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060086E2 RID: 34530 RVA: 0x001CC184 File Offset: 0x001CA384
|
||||
[Token(Token = "0x60086E2")]
|
||||
[Address(RVA = "0x2FAA940", Offset = "0x2FA9740", VA = "0x182FAA940", Slot = "6")]
|
||||
internal override void SetUnregistered()
|
||||
{
|
||||
SteamAPICall_t invalid = SteamAPICall_t.Invalid;
|
||||
this.m_hAPICall = invalid;
|
||||
}
|
||||
|
||||
// Token: 0x04005950 RID: 22864
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x4005950")]
|
||||
private SteamAPICall_t m_hAPICall;
|
||||
|
||||
// Token: 0x04005951 RID: 22865
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x4005951")]
|
||||
private bool m_bDisposed;
|
||||
|
||||
// Token: 0x020016AE RID: 5806
|
||||
[Token(Token = "0x20016AE")]
|
||||
public sealed class APIDispatchDelegate : MulticastDelegate
|
||||
{
|
||||
// Token: 0x060086E3 RID: 34531 RVA: 0x001CC1A0 File Offset: 0x001CA3A0
|
||||
[Token(Token = "0x60086E3")]
|
||||
[Address(RVA = "0x448ED0", Offset = "0x447CD0", VA = "0x180448ED0")]
|
||||
public APIDispatchDelegate(object @object, IntPtr method)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060086E4 RID: 34532 RVA: 0x001CC1B0 File Offset: 0x001CA3B0
|
||||
[Token(Token = "0x60086E4")]
|
||||
[Address(RVA = "0x74AB50", Offset = "0x749950", VA = "0x18074AB50", Slot = "13")]
|
||||
public void Invoke(T param, bool bIOFailure)
|
||||
{
|
||||
uint num;
|
||||
if (num != (uint)0)
|
||||
{
|
||||
throw new ExecutionEngineException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060086E5 RID: 34533 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x60086E5")]
|
||||
[Address(RVA = "0x2FA0AD0", Offset = "0x2F9F8D0", VA = "0x182FA0AD0", Slot = "14")]
|
||||
public IAsyncResult BeginInvoke(T param, bool bIOFailure, AsyncCallback callback, object @object)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060086E6 RID: 34534 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x60086E6")]
|
||||
[Address(RVA = "0x448B70", Offset = "0x447970", VA = "0x180448B70", Slot = "15")]
|
||||
public void EndInvoke(IAsyncResult result)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user