92 lines
4.7 KiB
C#
92 lines
4.7 KiB
C#
using System;
|
|
using System.Runtime.CompilerServices;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x0200010B RID: 267
|
|
[Token(Token = "0x200010B")]
|
|
public sealed class AssetLoader
|
|
{
|
|
// Token: 0x17000053 RID: 83
|
|
// (get) Token: 0x06000E6B RID: 3691 RVA: 0x000227BC File Offset: 0x000209BC
|
|
[Token(Token = "0x17000053")]
|
|
public bool IsHandling
|
|
{
|
|
[Token(Token = "0x6000E6B")]
|
|
[Address(RVA = "0x2B3EC0", Offset = "0x2B2CC0", VA = "0x1802B3EC0")]
|
|
get
|
|
{
|
|
return this.isHandling;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000054 RID: 84
|
|
// (get) Token: 0x06000E6C RID: 3692 RVA: 0x000227D0 File Offset: 0x000209D0
|
|
// (set) Token: 0x06000E6D RID: 3693 RVA: 0x000227E4 File Offset: 0x000209E4
|
|
[Token(Token = "0x17000054")]
|
|
public Action<AssetRequestBase, UnityEngine.Object[]> OnFinished
|
|
{
|
|
[Token(Token = "0x6000E6C")]
|
|
[Address(RVA = "0x2B4380", Offset = "0x2B3180", VA = "0x1802B4380")]
|
|
[CompilerGenerated]
|
|
get
|
|
{
|
|
return this.<OnFinished>k__BackingField;
|
|
}
|
|
[Token(Token = "0x6000E6D")]
|
|
[Address(RVA = "0x413D20", Offset = "0x412B20", VA = "0x180413D20")]
|
|
[CompilerGenerated]
|
|
set
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06000E6D)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void AssetLoader::set_OnFinished(System.Action`2<AssetRequestBase,UnityEngine.Object[]>)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{; Block_0:; stfld:class [mscorlib]System.Action`2<class AssetRequestBase, class [UnityEngine.CoreModule]UnityEngine.Object[]>(AssetLoader::<OnFinished>k__BackingField, ldloc:AssetLoader(this), ldloc:class [mscorlib]System.Action`2<class AssetRequestBase, class [UnityEngine.CoreModule]UnityEngine.Object[]>(value)); };
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
|
|
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 344
|
|
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 1618
|
|
*/;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000E6E RID: 3694 RVA: 0x000227F8 File Offset: 0x000209F8
|
|
[Token(Token = "0x6000E6E")]
|
|
[Address(RVA = "0x8CFF20", Offset = "0x8CED20", VA = "0x1808CFF20")]
|
|
public void Load(AssetRequestBase req)
|
|
{
|
|
if (!this.isHandling)
|
|
{
|
|
this.isHandling = true;
|
|
this.LoadFromResources(req);
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000E6F RID: 3695 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6000E6F")]
|
|
[Address(RVA = "0x8CFD30", Offset = "0x8CEB30", VA = "0x1808CFD30")]
|
|
private void LoadFromResources(AssetRequestBase req)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06000E70 RID: 3696 RVA: 0x00022820 File Offset: 0x00020A20
|
|
[Token(Token = "0x6000E70")]
|
|
[Address(RVA = "0x3D8B20", Offset = "0x3D7920", VA = "0x1803D8B20")]
|
|
public AssetLoader()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04001907 RID: 6407
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4001907")]
|
|
private bool isHandling;
|
|
}
|