a
This commit is contained in:
@@ -0,0 +1,209 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RRUI.Toasts
|
||||
{
|
||||
// Token: 0x020007FC RID: 2044
|
||||
[Token(Token = "0x20007FC")]
|
||||
[CreateAssetMenu]
|
||||
public class ToastsConfig : ScriptableObject
|
||||
{
|
||||
// Token: 0x170009FB RID: 2555
|
||||
// (get) Token: 0x06003975 RID: 14709 RVA: 0x000EECDC File Offset: 0x000ECEDC
|
||||
[Token(Token = "0x170009FB")]
|
||||
public static ToastsConfig Instance
|
||||
{
|
||||
[Token(Token = "0x6003975")]
|
||||
[Address(RVA = "0x9FCC60", Offset = "0x9FBA60", VA = "0x1809FCC60")]
|
||||
get
|
||||
{
|
||||
ToastsConfig instance = ToastsConfig._instance;
|
||||
int num = 0;
|
||||
if (instance == num)
|
||||
{
|
||||
ToastsConfig._instance = OLJIOKGMCPN.MNKDOANEFLK<ToastsConfig>(0);
|
||||
ToastsConfig instance2 = ToastsConfig._instance;
|
||||
int num2 = 0;
|
||||
if (instance2 == num2)
|
||||
{
|
||||
Debug.LogError("Failed to load Toasts object");
|
||||
}
|
||||
}
|
||||
return ToastsConfig._instance;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06003976 RID: 14710 RVA: 0x000EED28 File Offset: 0x000ECF28
|
||||
[Token(Token = "0x6003976")]
|
||||
[Address(RVA = "0x9FC7B0", Offset = "0x9FB5B0", VA = "0x1809FC7B0")]
|
||||
private static void OFFLOPLJBBG()
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
ToastsConfig.prefabsByToastType = new Dictionary();
|
||||
ToastsConfig instance = ToastsConfig._instance;
|
||||
int num2 = 0;
|
||||
if (instance == num2)
|
||||
{
|
||||
ToastsConfig._instance = OLJIOKGMCPN.MNKDOANEFLK<ToastsConfig>(0);
|
||||
ToastsConfig instance2 = ToastsConfig._instance;
|
||||
int num3 = 0;
|
||||
if (instance2 == num3)
|
||||
{
|
||||
Debug.LogError("Failed to load Toasts object");
|
||||
}
|
||||
}
|
||||
List<ToastsConfig.View> list = ToastsConfig._instance.views;
|
||||
ToastsConfig instance3 = ToastsConfig._instance;
|
||||
num += num;
|
||||
num++;
|
||||
Dictionary<BIHOKCDKFPC, GameObject> dictionary = ToastsConfig.prefabsByToastType;
|
||||
bool flag;
|
||||
if (!flag)
|
||||
{
|
||||
int num4 = 0;
|
||||
string text;
|
||||
Debug.LogError(text);
|
||||
num4 += num4;
|
||||
text += instance3;
|
||||
}
|
||||
Dictionary<BIHOKCDKFPC, GameObject> dictionary2 = ToastsConfig.prefabsByToastType;
|
||||
}
|
||||
while (num != 0);
|
||||
}
|
||||
|
||||
// Token: 0x06003977 RID: 14711 RVA: 0x000EEDE4 File Offset: 0x000ECFE4
|
||||
[Token(Token = "0x6003977")]
|
||||
[Address(RVA = "0x9FC6A0", Offset = "0x9FB4A0", VA = "0x1809FC6A0")]
|
||||
public static PMGCJEPKFOF<GameObject> ODJFJBABAAO(BIHOKCDKFPC KPOFFAKOGAI)
|
||||
{
|
||||
ToastsConfig.OFFLOPLJBBG();
|
||||
Dictionary<BIHOKCDKFPC, GameObject> dictionary = ToastsConfig.prefabsByToastType;
|
||||
PMGCJEPKFOF<GameObject> pmgcjepkfof;
|
||||
return pmgcjepkfof;
|
||||
}
|
||||
|
||||
// Token: 0x170009FC RID: 2556
|
||||
// (get) Token: 0x06003978 RID: 14712 RVA: 0x000EEE08 File Offset: 0x000ED008
|
||||
[Token(Token = "0x170009FC")]
|
||||
public IReadOnlyList<ToastsConfig.View> Views
|
||||
{
|
||||
[Token(Token = "0x6003978")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06003978)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IReadOnlyList`1<RRUI.Toasts.ToastsConfig/View> RRUI.Toasts.ToastsConfig::get_Views()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:class [mscorlib]System.Collections.Generic.List`1<class RRUI.Toasts.ToastsConfig/View>(var_0_06, ldfld:class [mscorlib]System.Collections.Generic.List`1<class RRUI.Toasts.ToastsConfig/View>(ToastsConfig::views, ldloc:ToastsConfig(this)))
|
||||
}
|
||||
|
||||
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 1660
|
||||
*/;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06003979 RID: 14713 RVA: 0x000EEE1C File Offset: 0x000ED01C
|
||||
[Token(Token = "0x6003979")]
|
||||
[Address(RVA = "0x9FCC00", Offset = "0x9FBA00", VA = "0x1809FCC00")]
|
||||
public ToastsConfig()
|
||||
{
|
||||
List<ToastsConfig.View> list = new List();
|
||||
this.views = list;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x0600397A RID: 14714 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600397A")]
|
||||
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080")]
|
||||
static ToastsConfig()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x04003132 RID: 12594
|
||||
[Token(Token = "0x4003132")]
|
||||
private static ToastsConfig _instance;
|
||||
|
||||
// Token: 0x04003133 RID: 12595
|
||||
[Token(Token = "0x4003133")]
|
||||
private static bool isInitialized;
|
||||
|
||||
// Token: 0x04003134 RID: 12596
|
||||
[Token(Token = "0x4003134")]
|
||||
private static Dictionary<BIHOKCDKFPC, GameObject> prefabsByToastType;
|
||||
|
||||
// Token: 0x04003135 RID: 12597
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4003135")]
|
||||
[SerializeField]
|
||||
private List<ToastsConfig.View> views;
|
||||
|
||||
// Token: 0x020007FD RID: 2045
|
||||
[Token(Token = "0x20007FD")]
|
||||
[Serializable]
|
||||
public class View
|
||||
{
|
||||
// Token: 0x170009FD RID: 2557
|
||||
// (get) Token: 0x0600397B RID: 14715 RVA: 0x000EEE3C File Offset: 0x000ED03C
|
||||
[Token(Token = "0x170009FD")]
|
||||
public string Name
|
||||
{
|
||||
[Token(Token = "0x600397B")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.name;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170009FE RID: 2558
|
||||
// (get) Token: 0x0600397C RID: 14716 RVA: 0x000EEE50 File Offset: 0x000ED050
|
||||
[Token(Token = "0x170009FE")]
|
||||
public GameObject Prefab
|
||||
{
|
||||
[Token(Token = "0x600397C")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.prefab;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600397D RID: 14717 RVA: 0x000EEE64 File Offset: 0x000ED064
|
||||
[Token(Token = "0x600397D")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
public View()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04003136 RID: 12598
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4003136")]
|
||||
[SerializeField]
|
||||
private string name;
|
||||
|
||||
// Token: 0x04003137 RID: 12599
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4003137")]
|
||||
[SerializeField]
|
||||
private GameObject prefab;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user