Add v1.0.3.1
This commit is contained in:
17
Cpp2IL/Assembly-CSharp/AmplifyColor/Quality.cs
Normal file
17
Cpp2IL/Assembly-CSharp/AmplifyColor/Quality.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace AmplifyColor
|
||||
{
|
||||
// Token: 0x02000617 RID: 1559
|
||||
[Token(Token = "0x2000617")]
|
||||
public enum Quality
|
||||
{
|
||||
// Token: 0x04003AEC RID: 15084
|
||||
[Token(Token = "0x4003AEC")]
|
||||
Mobile,
|
||||
// Token: 0x04003AED RID: 15085
|
||||
[Token(Token = "0x4003AED")]
|
||||
Standard
|
||||
}
|
||||
}
|
||||
30
Cpp2IL/Assembly-CSharp/AmplifyColor/RenderLayer.cs
Normal file
30
Cpp2IL/Assembly-CSharp/AmplifyColor/RenderLayer.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace AmplifyColor
|
||||
{
|
||||
// Token: 0x02000619 RID: 1561
|
||||
[Token(Token = "0x2000619")]
|
||||
[Serializable]
|
||||
public struct RenderLayer
|
||||
{
|
||||
// Token: 0x06003117 RID: 12567 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6003117")]
|
||||
[Address(RVA = "0xA70900", Offset = "0xA6F700", VA = "0x180A70900")]
|
||||
public RenderLayer(LayerMask mask, Color color)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x04003AF3 RID: 15091
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x4003AF3")]
|
||||
public LayerMask mask;
|
||||
|
||||
// Token: 0x04003AF4 RID: 15092
|
||||
[FieldOffset(Offset = "0x4")]
|
||||
[Token(Token = "0x4003AF4")]
|
||||
public Color color;
|
||||
}
|
||||
}
|
||||
23
Cpp2IL/Assembly-CSharp/AmplifyColor/Tonemapping.cs
Normal file
23
Cpp2IL/Assembly-CSharp/AmplifyColor/Tonemapping.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace AmplifyColor
|
||||
{
|
||||
// Token: 0x02000618 RID: 1560
|
||||
[Token(Token = "0x2000618")]
|
||||
public enum Tonemapping
|
||||
{
|
||||
// Token: 0x04003AEF RID: 15087
|
||||
[Token(Token = "0x4003AEF")]
|
||||
Disabled,
|
||||
// Token: 0x04003AF0 RID: 15088
|
||||
[Token(Token = "0x4003AF0")]
|
||||
Photographic,
|
||||
// Token: 0x04003AF1 RID: 15089
|
||||
[Token(Token = "0x4003AF1")]
|
||||
FilmicHable,
|
||||
// Token: 0x04003AF2 RID: 15090
|
||||
[Token(Token = "0x4003AF2")]
|
||||
FilmicACES
|
||||
}
|
||||
}
|
||||
141
Cpp2IL/Assembly-CSharp/AmplifyColor/VersionInfo.cs
Normal file
141
Cpp2IL/Assembly-CSharp/AmplifyColor/VersionInfo.cs
Normal file
@@ -0,0 +1,141 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace AmplifyColor
|
||||
{
|
||||
// Token: 0x0200061A RID: 1562
|
||||
[Token(Token = "0x200061A")]
|
||||
[Serializable]
|
||||
public class VersionInfo
|
||||
{
|
||||
// Token: 0x06003118 RID: 12568 RVA: 0x00066E00 File Offset: 0x00065000
|
||||
[Token(Token = "0x6003118")]
|
||||
[Address(RVA = "0x8C6810", Offset = "0x8C5610", VA = "0x1808C6810")]
|
||||
public static string StaticToString()
|
||||
{
|
||||
byte b;
|
||||
byte b2;
|
||||
byte b3;
|
||||
string text = string.Format("{0}.{1}.{2}", b, b2, b3);
|
||||
string trialSuffix = VersionInfo.TrialSuffix;
|
||||
string stageSuffix = VersionInfo.StageSuffix;
|
||||
return text + stageSuffix + trialSuffix;
|
||||
}
|
||||
|
||||
// Token: 0x06003119 RID: 12569 RVA: 0x00066E38 File Offset: 0x00065038
|
||||
[Token(Token = "0x6003119")]
|
||||
[Address(RVA = "0x8C6900", Offset = "0x8C5700", VA = "0x1808C6900", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
int major = this.m_major;
|
||||
int minor = this.m_minor;
|
||||
int release = this.m_release;
|
||||
string text = string.Format("{0}.{1}.{2}", major, major, major);
|
||||
string trialSuffix = VersionInfo.TrialSuffix;
|
||||
string stageSuffix = VersionInfo.StageSuffix;
|
||||
return text + stageSuffix + trialSuffix;
|
||||
}
|
||||
|
||||
// Token: 0x170003C0 RID: 960
|
||||
// (get) Token: 0x0600311A RID: 12570 RVA: 0x00066E84 File Offset: 0x00065084
|
||||
[Token(Token = "0x170003C0")]
|
||||
public int Number
|
||||
{
|
||||
[Token(Token = "0x600311A")]
|
||||
[Address(RVA = "0x8C6AF0", Offset = "0x8C58F0", VA = "0x1808C6AF0")]
|
||||
get
|
||||
{
|
||||
return this.m_release;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600311B RID: 12571 RVA: 0x00066E98 File Offset: 0x00065098
|
||||
[Token(Token = "0x600311B")]
|
||||
[Address(RVA = "0x8C6A70", Offset = "0x8C5870", VA = "0x1808C6A70")]
|
||||
private VersionInfo()
|
||||
{
|
||||
this.m_major = (int)((ulong)1L);
|
||||
this.m_minor = (int)((ulong)8L);
|
||||
this.m_release = (int)((ulong)2L);
|
||||
}
|
||||
|
||||
// Token: 0x0600311C RID: 12572 RVA: 0x00066EC8 File Offset: 0x000650C8
|
||||
[Token(Token = "0x600311C")]
|
||||
[Address(RVA = "0x8C6AA0", Offset = "0x8C58A0", VA = "0x1808C6AA0")]
|
||||
private VersionInfo(byte major, byte minor, byte release)
|
||||
{
|
||||
this.m_major = (int)major;
|
||||
this.m_release = (int)release;
|
||||
this.m_minor = (int)minor;
|
||||
}
|
||||
|
||||
// Token: 0x0600311D RID: 12573 RVA: 0x00066EF0 File Offset: 0x000650F0
|
||||
[Token(Token = "0x600311D")]
|
||||
[Address(RVA = "0x8C6780", Offset = "0x8C5580", VA = "0x1808C6780")]
|
||||
public static VersionInfo Current()
|
||||
{
|
||||
return new VersionInfo
|
||||
{
|
||||
m_major = (int)((ulong)1L),
|
||||
m_minor = (int)((ulong)8L),
|
||||
m_release = (int)((ulong)2L)
|
||||
};
|
||||
}
|
||||
|
||||
// Token: 0x0600311E RID: 12574 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600311E")]
|
||||
[Address(RVA = "0x8C67E0", Offset = "0x8C55E0", VA = "0x1808C67E0")]
|
||||
public static bool Matches(VersionInfo version)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600311F RID: 12575 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600311F")]
|
||||
[Address(RVA = "0x8C6A00", Offset = "0x8C5800", VA = "0x1808C6A00")]
|
||||
static VersionInfo()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x04003AF5 RID: 15093
|
||||
[Token(Token = "0x4003AF5")]
|
||||
public const byte Major = 1;
|
||||
|
||||
// Token: 0x04003AF6 RID: 15094
|
||||
[Token(Token = "0x4003AF6")]
|
||||
public const byte Minor = 8;
|
||||
|
||||
// Token: 0x04003AF7 RID: 15095
|
||||
[Token(Token = "0x4003AF7")]
|
||||
public const byte Release = 2;
|
||||
|
||||
// Token: 0x04003AF8 RID: 15096
|
||||
[Token(Token = "0x4003AF8")]
|
||||
private static string StageSuffix;
|
||||
|
||||
// Token: 0x04003AF9 RID: 15097
|
||||
[Token(Token = "0x4003AF9")]
|
||||
private static string TrialSuffix;
|
||||
|
||||
// Token: 0x04003AFA RID: 15098
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4003AFA")]
|
||||
[SerializeField]
|
||||
private int m_major;
|
||||
|
||||
// Token: 0x04003AFB RID: 15099
|
||||
[FieldOffset(Offset = "0x14")]
|
||||
[Token(Token = "0x4003AFB")]
|
||||
[SerializeField]
|
||||
private int m_minor;
|
||||
|
||||
// Token: 0x04003AFC RID: 15100
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4003AFC")]
|
||||
[SerializeField]
|
||||
private int m_release;
|
||||
}
|
||||
}
|
||||
117
Cpp2IL/Assembly-CSharp/AmplifyColor/VolumeEffect.cs
Normal file
117
Cpp2IL/Assembly-CSharp/AmplifyColor/VolumeEffect.cs
Normal file
@@ -0,0 +1,117 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace AmplifyColor
|
||||
{
|
||||
// Token: 0x0200061F RID: 1567
|
||||
[Token(Token = "0x200061F")]
|
||||
[Serializable]
|
||||
public class VolumeEffect
|
||||
{
|
||||
// Token: 0x06003133 RID: 12595 RVA: 0x00067084 File Offset: 0x00065284
|
||||
[Token(Token = "0x6003133")]
|
||||
[Address(RVA = "0x93F9B0", Offset = "0x93E7B0", VA = "0x18093F9B0")]
|
||||
public VolumeEffect(AmplifyColorBase effect)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06003133)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void AmplifyColor.VolumeEffect::.ctor(AmplifyColorBase)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{; Block_0:; call:void(object::.ctor, ldloc:VolumeEffect[exp:object](this)); stfld:AmplifyColorBase(VolumeEffect::gameObject, ldloc:VolumeEffect(this), ldloc:AmplifyColorBase(effect)); stloc:class [mscorlib]System.Collections.Generic.List`1<class AmplifyColor.VolumeEffectComponent>(var_0_12, newobj:List`1[exp:class [mscorlib]System.Collections.Generic.List`1<class AmplifyColor.VolumeEffectComponent>](List`1::.ctor)); stfld:class [mscorlib]System.Collections.Generic.List`1<class AmplifyColor.VolumeEffectComponent>(VolumeEffect::components, ldloc:VolumeEffect(this), ldloc:class [mscorlib]System.Collections.Generic.List`1<class AmplifyColor.VolumeEffectComponent>(var_0_12)); };
|
||||
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: 0x06003134 RID: 12596 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6003134")]
|
||||
[Address(RVA = "0x93E0E0", Offset = "0x93CEE0", VA = "0x18093E0E0")]
|
||||
public static VolumeEffect BlendValuesToVolumeEffect(VolumeEffectFlags flags, VolumeEffect volume1, VolumeEffect volume2, float blend)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06003135 RID: 12597 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6003135")]
|
||||
[Address(RVA = "0x93DF50", Offset = "0x93CD50", VA = "0x18093DF50")]
|
||||
public VolumeEffectComponent AddComponent(Component c, VolumeEffectComponentFlags compFlags)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06003136 RID: 12598 RVA: 0x000670AC File Offset: 0x000652AC
|
||||
[Token(Token = "0x6003136")]
|
||||
[Address(RVA = "0x93F230", Offset = "0x93E030", VA = "0x18093F230")]
|
||||
public void RemoveEffectComponent(VolumeEffectComponent comp)
|
||||
{
|
||||
bool flag = this.components.Remove(comp);
|
||||
}
|
||||
|
||||
// Token: 0x06003137 RID: 12599 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6003137")]
|
||||
[Address(RVA = "0x93F7D0", Offset = "0x93E5D0", VA = "0x18093F7D0")]
|
||||
public void UpdateVolume()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06003138 RID: 12600 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6003138")]
|
||||
[Address(RVA = "0x93F290", Offset = "0x93E090", VA = "0x18093F290")]
|
||||
public void SetValues(AmplifyColorBase targetColor)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06003139 RID: 12601 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6003139")]
|
||||
[Address(RVA = "0x93E7B0", Offset = "0x93D5B0", VA = "0x18093E7B0")]
|
||||
public void BlendValues(AmplifyColorBase targetColor, VolumeEffect other, float blendAmount)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600313A RID: 12602 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600313A")]
|
||||
[Address(RVA = "0x93EDF0", Offset = "0x93DBF0", VA = "0x18093EDF0")]
|
||||
public VolumeEffectComponent FindEffectComponent(string compName)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600313B RID: 12603 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600313B")]
|
||||
[Address(RVA = "0x93F020", Offset = "0x93DE20", VA = "0x18093F020")]
|
||||
public static Component[] ListAcceptableComponents(AmplifyColorBase go)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600313C RID: 12604 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600313C")]
|
||||
[Address(RVA = "0x93EEE0", Offset = "0x93DCE0", VA = "0x18093EEE0")]
|
||||
public string[] GetComponentNames()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x04003B0B RID: 15115
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4003B0B")]
|
||||
public AmplifyColorBase gameObject;
|
||||
|
||||
// Token: 0x04003B0C RID: 15116
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4003B0C")]
|
||||
public List<VolumeEffectComponent> components;
|
||||
}
|
||||
}
|
||||
110
Cpp2IL/Assembly-CSharp/AmplifyColor/VolumeEffectComponent.cs
Normal file
110
Cpp2IL/Assembly-CSharp/AmplifyColor/VolumeEffectComponent.cs
Normal file
@@ -0,0 +1,110 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace AmplifyColor
|
||||
{
|
||||
// Token: 0x0200061C RID: 1564
|
||||
[Token(Token = "0x200061C")]
|
||||
[Serializable]
|
||||
public class VolumeEffectComponent
|
||||
{
|
||||
// Token: 0x06003124 RID: 12580 RVA: 0x00066F8C File Offset: 0x0006518C
|
||||
[Token(Token = "0x6003124")]
|
||||
[Address(RVA = "0x93C660", Offset = "0x93B460", VA = "0x18093C660")]
|
||||
public VolumeEffectComponent(string name)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06003124)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void AmplifyColor.VolumeEffectComponent::.ctor(System.String)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{; Block_0:; call:void(object::.ctor, ldloc:VolumeEffectComponent[exp:object](this)); stfld:string(VolumeEffectComponent::componentName, ldloc:VolumeEffectComponent(this), ldloc:string(name)); stloc:class [mscorlib]System.Collections.Generic.List`1<class AmplifyColor.VolumeEffectField>(var_0_12, newobj:List`1[exp:class [mscorlib]System.Collections.Generic.List`1<class AmplifyColor.VolumeEffectField>](List`1::.ctor)); stfld:class [mscorlib]System.Collections.Generic.List`1<class AmplifyColor.VolumeEffectField>(VolumeEffectComponent::fields, ldloc:VolumeEffectComponent(this), ldloc:class [mscorlib]System.Collections.Generic.List`1<class AmplifyColor.VolumeEffectField>(var_0_12)); };
|
||||
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: 0x06003125 RID: 12581 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6003125")]
|
||||
[Address(RVA = "0x93BDF0", Offset = "0x93ABF0", VA = "0x18093BDF0")]
|
||||
public VolumeEffectField AddField(FieldInfo pi, Component c)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06003126 RID: 12582 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6003126")]
|
||||
[Address(RVA = "0x93BCB0", Offset = "0x93AAB0", VA = "0x18093BCB0")]
|
||||
public VolumeEffectField AddField(FieldInfo pi, Component c, int position)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06003127 RID: 12583 RVA: 0x00066FB4 File Offset: 0x000651B4
|
||||
[Token(Token = "0x6003127")]
|
||||
[Address(RVA = "0x93C2F0", Offset = "0x93B0F0", VA = "0x18093C2F0")]
|
||||
public void RemoveEffectField(VolumeEffectField field)
|
||||
{
|
||||
bool flag = this.fields.Remove(field);
|
||||
}
|
||||
|
||||
// Token: 0x06003128 RID: 12584 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6003128")]
|
||||
[Address(RVA = "0x93C6F0", Offset = "0x93B4F0", VA = "0x18093C6F0")]
|
||||
public VolumeEffectComponent(Component c, VolumeEffectComponentFlags compFlags)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06003129 RID: 12585 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6003129")]
|
||||
[Address(RVA = "0x93C350", Offset = "0x93B150", VA = "0x18093C350")]
|
||||
public void UpdateComponent(Component c, VolumeEffectComponentFlags compFlags)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600312A RID: 12586 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600312A")]
|
||||
[Address(RVA = "0x93BEF0", Offset = "0x93ACF0", VA = "0x18093BEF0")]
|
||||
public VolumeEffectField FindEffectField(string fieldName)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600312B RID: 12587 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600312B")]
|
||||
[Address(RVA = "0x93C120", Offset = "0x93AF20", VA = "0x18093C120")]
|
||||
public static FieldInfo[] ListAcceptableFields(Component c)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600312C RID: 12588 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600312C")]
|
||||
[Address(RVA = "0x93BFE0", Offset = "0x93ADE0", VA = "0x18093BFE0")]
|
||||
public string[] GetFieldNames()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x04003B05 RID: 15109
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4003B05")]
|
||||
public string componentName;
|
||||
|
||||
// Token: 0x04003B06 RID: 15110
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4003B06")]
|
||||
public List<VolumeEffectField> fields;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace AmplifyColor
|
||||
{
|
||||
// Token: 0x02000624 RID: 1572
|
||||
[Token(Token = "0x2000624")]
|
||||
[Serializable]
|
||||
public class VolumeEffectComponentFlags
|
||||
{
|
||||
// Token: 0x0600314C RID: 12620 RVA: 0x0006727C File Offset: 0x0006547C
|
||||
[Token(Token = "0x600314C")]
|
||||
[Address(RVA = "0x93B8B0", Offset = "0x93A6B0", VA = "0x18093B8B0")]
|
||||
public VolumeEffectComponentFlags(string name)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600314C)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void AmplifyColor.VolumeEffectComponentFlags::.ctor(System.String)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{; Block_0:; call:void(object::.ctor, ldloc:VolumeEffectComponentFlags[exp:object](this)); stfld:string(VolumeEffectComponentFlags::componentName, ldloc:VolumeEffectComponentFlags(this), ldloc:string(name)); stloc:class [mscorlib]System.Collections.Generic.List`1<class AmplifyColor.VolumeEffectFieldFlags>(var_0_12, newobj:List`1[exp:class [mscorlib]System.Collections.Generic.List`1<class AmplifyColor.VolumeEffectFieldFlags>](List`1::.ctor)); stfld:class [mscorlib]System.Collections.Generic.List`1<class AmplifyColor.VolumeEffectFieldFlags>(VolumeEffectComponentFlags::componentFields, ldloc:VolumeEffectComponentFlags(this), ldloc:class [mscorlib]System.Collections.Generic.List`1<class AmplifyColor.VolumeEffectFieldFlags>(var_0_12)); };
|
||||
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: 0x0600314D RID: 12621 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600314D")]
|
||||
[Address(RVA = "0x93B940", Offset = "0x93A740", VA = "0x18093B940")]
|
||||
public VolumeEffectComponentFlags(VolumeEffectComponent comp)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600314E RID: 12622 RVA: 0x000672A4 File Offset: 0x000654A4
|
||||
[Token(Token = "0x600314E")]
|
||||
[Address(RVA = "0x93BB00", Offset = "0x93A900", VA = "0x18093BB00")]
|
||||
public VolumeEffectComponentFlags(Component c)
|
||||
{
|
||||
Type type = c.GetType();
|
||||
if (type == 0 || type.ToString() == 0)
|
||||
{
|
||||
}
|
||||
FieldInfo[] fields = c.GetType().GetFields();
|
||||
int num = 0;
|
||||
int length = fields.Length;
|
||||
if (num < length)
|
||||
{
|
||||
FieldInfo fieldInfo = fields[num];
|
||||
if (VolumeEffectField.IsValidType(fieldInfo.FieldType.FullName))
|
||||
{
|
||||
List<VolumeEffectFieldFlags> list = this.componentFields;
|
||||
VolumeEffectFieldFlags volumeEffectFieldFlags = new VolumeEffectFieldFlags(fieldInfo);
|
||||
list.Add(volumeEffectFieldFlags);
|
||||
}
|
||||
num++;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600314F RID: 12623 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600314F")]
|
||||
[Address(RVA = "0x93B620", Offset = "0x93A420", VA = "0x18093B620")]
|
||||
public void UpdateComponentFlags(VolumeEffectComponent comp)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06003150 RID: 12624 RVA: 0x00067320 File Offset: 0x00065520
|
||||
[Token(Token = "0x6003150")]
|
||||
[Address(RVA = "0x93B400", Offset = "0x93A200", VA = "0x18093B400")]
|
||||
public void UpdateComponentFlags(Component c)
|
||||
{
|
||||
FieldInfo[] fields = c.GetType().GetFields();
|
||||
int num = 0;
|
||||
if (num < fields.Length)
|
||||
{
|
||||
FieldInfo fieldInfo = fields[num];
|
||||
FieldInfo pi = fieldInfo;
|
||||
List<VolumeEffectFieldFlags> list = this.componentFields;
|
||||
Predicate<VolumeEffectFieldFlags> predicate = delegate(VolumeEffectFieldFlags s)
|
||||
{
|
||||
FieldInfo pi2 = pi;
|
||||
string fieldName = s.fieldName;
|
||||
string name = pi2.Name;
|
||||
return string.Equals(fieldName, name);
|
||||
};
|
||||
if (!list.Exists(predicate) && VolumeEffectField.IsValidType(pi.FieldType.FullName))
|
||||
{
|
||||
List<VolumeEffectFieldFlags> list2 = this.componentFields;
|
||||
VolumeEffectFieldFlags volumeEffectFieldFlags = new VolumeEffectFieldFlags(pi);
|
||||
list2.Add(volumeEffectFieldFlags);
|
||||
}
|
||||
num++;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06003151 RID: 12625 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6003151")]
|
||||
[Address(RVA = "0x93B1D0", Offset = "0x939FD0", VA = "0x18093B1D0")]
|
||||
public string[] GetFieldNames()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x04003B16 RID: 15126
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4003B16")]
|
||||
public string componentName;
|
||||
|
||||
// Token: 0x04003B17 RID: 15127
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4003B17")]
|
||||
public List<VolumeEffectFieldFlags> componentFields;
|
||||
|
||||
// Token: 0x04003B18 RID: 15128
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4003B18")]
|
||||
public bool blendFlag;
|
||||
}
|
||||
}
|
||||
89
Cpp2IL/Assembly-CSharp/AmplifyColor/VolumeEffectContainer.cs
Normal file
89
Cpp2IL/Assembly-CSharp/AmplifyColor/VolumeEffectContainer.cs
Normal file
@@ -0,0 +1,89 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace AmplifyColor
|
||||
{
|
||||
// Token: 0x02000621 RID: 1569
|
||||
[Token(Token = "0x2000621")]
|
||||
[Serializable]
|
||||
public class VolumeEffectContainer
|
||||
{
|
||||
// Token: 0x06003141 RID: 12609 RVA: 0x00067114 File Offset: 0x00065314
|
||||
[Token(Token = "0x6003141")]
|
||||
[Address(RVA = "0x93CE30", Offset = "0x93BC30", VA = "0x18093CE30")]
|
||||
public VolumeEffectContainer()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06003141)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void AmplifyColor.VolumeEffectContainer::.ctor()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{; Block_0:; call:void(object::.ctor, ldloc:VolumeEffectContainer[exp:object](this)); stloc:class [mscorlib]System.Collections.Generic.List`1<class AmplifyColor.VolumeEffect>(var_0_0B, newobj:List`1[exp:class [mscorlib]System.Collections.Generic.List`1<class AmplifyColor.VolumeEffect>](List`1::.ctor)); stfld:class [mscorlib]System.Collections.Generic.List`1<class AmplifyColor.VolumeEffect>(VolumeEffectContainer::volumes, ldloc:VolumeEffectContainer(this), ldloc:class [mscorlib]System.Collections.Generic.List`1<class AmplifyColor.VolumeEffect>(var_0_0B)); };
|
||||
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: 0x06003142 RID: 12610 RVA: 0x00067134 File Offset: 0x00065334
|
||||
[Token(Token = "0x6003142")]
|
||||
[Address(RVA = "0x93C920", Offset = "0x93B720", VA = "0x18093C920")]
|
||||
public void AddColorEffect(AmplifyColorBase colorEffect)
|
||||
{
|
||||
VolumeEffect volumeEffect = this.FindVolumeEffect(colorEffect);
|
||||
if (volumeEffect == 0)
|
||||
{
|
||||
VolumeEffect volumeEffect2 = new VolumeEffect(colorEffect);
|
||||
this.volumes.Add(volumeEffect2);
|
||||
volumeEffect2.UpdateVolume();
|
||||
return;
|
||||
}
|
||||
volumeEffect.UpdateVolume();
|
||||
}
|
||||
|
||||
// Token: 0x06003143 RID: 12611 RVA: 0x00067174 File Offset: 0x00065374
|
||||
[Token(Token = "0x6003143")]
|
||||
[Address(RVA = "0x93C9E0", Offset = "0x93B7E0", VA = "0x18093C9E0")]
|
||||
public VolumeEffect AddJustColorEffect(AmplifyColorBase colorEffect)
|
||||
{
|
||||
VolumeEffect volumeEffect = new VolumeEffect(colorEffect);
|
||||
this.volumes.Add(volumeEffect);
|
||||
return volumeEffect;
|
||||
}
|
||||
|
||||
// Token: 0x06003144 RID: 12612 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6003144")]
|
||||
[Address(RVA = "0x93CA70", Offset = "0x93B870", VA = "0x18093CA70")]
|
||||
public VolumeEffect FindVolumeEffect(AmplifyColorBase colorEffect)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06003145 RID: 12613 RVA: 0x0006719C File Offset: 0x0006539C
|
||||
[Token(Token = "0x6003145")]
|
||||
[Address(RVA = "0x93CDD0", Offset = "0x93BBD0", VA = "0x18093CDD0")]
|
||||
public void RemoveVolumeEffect(VolumeEffect volume)
|
||||
{
|
||||
bool flag = this.volumes.Remove(volume);
|
||||
}
|
||||
|
||||
// Token: 0x06003146 RID: 12614 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6003146")]
|
||||
[Address(RVA = "0x93CC90", Offset = "0x93BA90", VA = "0x18093CC90")]
|
||||
public AmplifyColorBase[] GetStoredEffects()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x04003B10 RID: 15120
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4003B10")]
|
||||
public List<VolumeEffect> volumes;
|
||||
}
|
||||
}
|
||||
105
Cpp2IL/Assembly-CSharp/AmplifyColor/VolumeEffectField.cs
Normal file
105
Cpp2IL/Assembly-CSharp/AmplifyColor/VolumeEffectField.cs
Normal file
@@ -0,0 +1,105 @@
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace AmplifyColor
|
||||
{
|
||||
// Token: 0x0200061B RID: 1563
|
||||
[Token(Token = "0x200061B")]
|
||||
[Serializable]
|
||||
public class VolumeEffectField
|
||||
{
|
||||
// Token: 0x06003120 RID: 12576 RVA: 0x00066F20 File Offset: 0x00065120
|
||||
[Token(Token = "0x6003120")]
|
||||
[Address(RVA = "0x3FBF90", Offset = "0x3FAD90", VA = "0x1803FBF90")]
|
||||
public VolumeEffectField(string fieldName, string fieldType)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06003120)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void AmplifyColor.VolumeEffectField::.ctor(System.String,System.String)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{; Block_0:; call:void(object::.ctor, ldloc:VolumeEffectField[exp:object](this)); stfld:string(VolumeEffectField::fieldName, ldloc:VolumeEffectField(this), ldloc:string(fieldName)); stfld:string(VolumeEffectField::fieldType, ldloc:VolumeEffectField(this), ldloc:string(fieldType)); };
|
||||
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: 0x06003121 RID: 12577 RVA: 0x00066F40 File Offset: 0x00065140
|
||||
[Token(Token = "0x6003121")]
|
||||
[Address(RVA = "0x93D3A0", Offset = "0x93C1A0", VA = "0x18093D3A0")]
|
||||
public VolumeEffectField(FieldInfo pi, Component c)
|
||||
{
|
||||
string name = pi.Name;
|
||||
string fullName = pi.FieldType.FullName;
|
||||
base..ctor();
|
||||
this.fieldName = name;
|
||||
this.fieldType = fullName;
|
||||
object value = pi.GetValue(c);
|
||||
this.UpdateValue(value);
|
||||
}
|
||||
|
||||
// Token: 0x06003122 RID: 12578 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6003122")]
|
||||
[Address(RVA = "0x93CFA0", Offset = "0x93BDA0", VA = "0x18093CFA0")]
|
||||
public static bool IsValidType(string type)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06003123 RID: 12579 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6003123")]
|
||||
[Address(RVA = "0x93D0A0", Offset = "0x93BEA0", VA = "0x18093D0A0")]
|
||||
public void UpdateValue(object val)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x04003AFD RID: 15101
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4003AFD")]
|
||||
public string fieldName;
|
||||
|
||||
// Token: 0x04003AFE RID: 15102
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4003AFE")]
|
||||
public string fieldType;
|
||||
|
||||
// Token: 0x04003AFF RID: 15103
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4003AFF")]
|
||||
public float valueSingle;
|
||||
|
||||
// Token: 0x04003B00 RID: 15104
|
||||
[FieldOffset(Offset = "0x24")]
|
||||
[Token(Token = "0x4003B00")]
|
||||
public Color valueColor;
|
||||
|
||||
// Token: 0x04003B01 RID: 15105
|
||||
[FieldOffset(Offset = "0x34")]
|
||||
[Token(Token = "0x4003B01")]
|
||||
public bool valueBoolean;
|
||||
|
||||
// Token: 0x04003B02 RID: 15106
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4003B02")]
|
||||
public Vector2 valueVector2;
|
||||
|
||||
// Token: 0x04003B03 RID: 15107
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4003B03")]
|
||||
public Vector3 valueVector3;
|
||||
|
||||
// Token: 0x04003B04 RID: 15108
|
||||
[FieldOffset(Offset = "0x4C")]
|
||||
[Token(Token = "0x4003B04")]
|
||||
public Vector4 valueVector4;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace AmplifyColor
|
||||
{
|
||||
// Token: 0x02000623 RID: 1571
|
||||
[Token(Token = "0x2000623")]
|
||||
[Serializable]
|
||||
public class VolumeEffectFieldFlags
|
||||
{
|
||||
// Token: 0x0600314A RID: 12618 RVA: 0x00067204 File Offset: 0x00065404
|
||||
[Token(Token = "0x600314A")]
|
||||
[Address(RVA = "0x93CF10", Offset = "0x93BD10", VA = "0x18093CF10")]
|
||||
public VolumeEffectFieldFlags(FieldInfo pi)
|
||||
{
|
||||
string name = pi.Name;
|
||||
this.fieldName = name;
|
||||
string fullName = pi.FieldType.FullName;
|
||||
this.fieldType = fullName;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600314B RID: 12619 RVA: 0x00067240 File Offset: 0x00065440
|
||||
[Token(Token = "0x600314B")]
|
||||
[Address(RVA = "0x93CEB0", Offset = "0x93BCB0", VA = "0x18093CEB0")]
|
||||
public VolumeEffectFieldFlags(VolumeEffectField field)
|
||||
{
|
||||
string text = field.fieldName;
|
||||
this.fieldName = text;
|
||||
string text2 = field.fieldType;
|
||||
this.fieldType = text2;
|
||||
this.blendFlag = true;
|
||||
}
|
||||
|
||||
// Token: 0x04003B13 RID: 15123
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4003B13")]
|
||||
public string fieldName;
|
||||
|
||||
// Token: 0x04003B14 RID: 15124
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4003B14")]
|
||||
public string fieldType;
|
||||
|
||||
// Token: 0x04003B15 RID: 15125
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4003B15")]
|
||||
public bool blendFlag;
|
||||
}
|
||||
}
|
||||
130
Cpp2IL/Assembly-CSharp/AmplifyColor/VolumeEffectFlags.cs
Normal file
130
Cpp2IL/Assembly-CSharp/AmplifyColor/VolumeEffectFlags.cs
Normal file
@@ -0,0 +1,130 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace AmplifyColor
|
||||
{
|
||||
// Token: 0x02000628 RID: 1576
|
||||
[Token(Token = "0x2000628")]
|
||||
[Serializable]
|
||||
public class VolumeEffectFlags
|
||||
{
|
||||
// Token: 0x0600315A RID: 12634 RVA: 0x000674A8 File Offset: 0x000656A8
|
||||
[Token(Token = "0x600315A")]
|
||||
[Address(RVA = "0x93DED0", Offset = "0x93CCD0", VA = "0x18093DED0")]
|
||||
public VolumeEffectFlags()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600315A)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void AmplifyColor.VolumeEffectFlags::.ctor()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{; Block_0:; call:void(object::.ctor, ldloc:VolumeEffectFlags[exp:object](this)); stloc:class [mscorlib]System.Collections.Generic.List`1<class AmplifyColor.VolumeEffectComponentFlags>(var_0_0B, newobj:List`1[exp:class [mscorlib]System.Collections.Generic.List`1<class AmplifyColor.VolumeEffectComponentFlags>](List`1::.ctor)); stfld:class [mscorlib]System.Collections.Generic.List`1<class AmplifyColor.VolumeEffectComponentFlags>(VolumeEffectFlags::components, ldloc:VolumeEffectFlags(this), ldloc:class [mscorlib]System.Collections.Generic.List`1<class AmplifyColor.VolumeEffectComponentFlags>(var_0_0B)); };
|
||||
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: 0x0600315B RID: 12635 RVA: 0x000674C8 File Offset: 0x000656C8
|
||||
[Token(Token = "0x600315B")]
|
||||
[Address(RVA = "0x93D490", Offset = "0x93C290", VA = "0x18093D490")]
|
||||
public void AddComponent(Component c)
|
||||
{
|
||||
List<VolumeEffectComponentFlags> list = this.components;
|
||||
Predicate<VolumeEffectComponentFlags> predicate = delegate(VolumeEffectComponentFlags s)
|
||||
{
|
||||
Component c3 = c;
|
||||
string componentName = s.componentName;
|
||||
Type type = c3.GetType();
|
||||
if (type == 0 || type.ToString() == 0)
|
||||
{
|
||||
}
|
||||
return string.Equals(componentName, "");
|
||||
};
|
||||
VolumeEffectComponentFlags volumeEffectComponentFlags = list.Find(predicate);
|
||||
if (volumeEffectComponentFlags == 0)
|
||||
{
|
||||
List<VolumeEffectComponentFlags> list2 = this.components;
|
||||
VolumeEffectComponentFlags volumeEffectComponentFlags2 = new VolumeEffectComponentFlags(c);
|
||||
list2.Add(volumeEffectComponentFlags2);
|
||||
return;
|
||||
}
|
||||
Component c2 = c;
|
||||
volumeEffectComponentFlags.UpdateComponentFlags(c2);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600315C RID: 12636 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600315C")]
|
||||
[Address(RVA = "0x93DC80", Offset = "0x93CA80", VA = "0x18093DC80")]
|
||||
public void UpdateFlags(VolumeEffect effectVol)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600315D RID: 12637 RVA: 0x00067538 File Offset: 0x00065738
|
||||
[Token(Token = "0x600315D")]
|
||||
[Address(RVA = "0x93DAE0", Offset = "0x93C8E0", VA = "0x18093DAE0")]
|
||||
public static void UpdateCamFlags(AmplifyColorBase[] effects, AmplifyColorVolumeBase[] volumes)
|
||||
{
|
||||
int num = 0;
|
||||
int num2 = 0;
|
||||
int length = effects.Length;
|
||||
if (num2 < length)
|
||||
{
|
||||
AmplifyColorBase amplifyColorBase = effects[num];
|
||||
VolumeEffectFlags volumeEffectFlags = new VolumeEffectFlags();
|
||||
List<VolumeEffectComponentFlags> list = new List();
|
||||
volumeEffectFlags.components = list;
|
||||
amplifyColorBase.EffectFlags = volumeEffectFlags;
|
||||
int num3 = 0;
|
||||
if (num3 < volumes.Length)
|
||||
{
|
||||
VolumeEffect volumeEffect = volumes[num3].EffectContainer.FindVolumeEffect(amplifyColorBase);
|
||||
if (volumeEffect != 0)
|
||||
{
|
||||
amplifyColorBase.EffectFlags.UpdateFlags(volumeEffect);
|
||||
}
|
||||
num3++;
|
||||
}
|
||||
num++;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600315E RID: 12638 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600315E")]
|
||||
[Address(RVA = "0x93D6F0", Offset = "0x93C4F0", VA = "0x18093D6F0")]
|
||||
public VolumeEffect GenerateEffectData(AmplifyColorBase go)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600315F RID: 12639 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600315F")]
|
||||
[Address(RVA = "0x93D600", Offset = "0x93C400", VA = "0x18093D600")]
|
||||
public VolumeEffectComponentFlags FindComponentFlags(string compName)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06003160 RID: 12640 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6003160")]
|
||||
[Address(RVA = "0x93D8B0", Offset = "0x93C6B0", VA = "0x18093D8B0")]
|
||||
public string[] GetComponentNames()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x04003B1E RID: 15134
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4003B1E")]
|
||||
public List<VolumeEffectComponentFlags> components;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user