Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Token: 0x02000007 RID: 7
- .class public auto ansi beforefieldinit DustDevilFramework.ModSettings
- extends [mscorlib]System.Object
- {
- // Nested Types
- // Token: 0x0200000F RID: 15
- .class nested public auto ansi beforefieldinit SettingsRange
- extends [mscorlib]System.Attribute
- {
- .custom instance void [mscorlib]System.AttributeUsageAttribute::.ctor(valuetype [mscorlib]System.AttributeTargets) = (
- 01 00 00 01 00 00 00 00
- )
- // Fields
- // Token: 0x0400001C RID: 28
- .field private float32 '<Low>k__BackingField'
- .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = (
- 01 00 00 00
- )
- .custom instance void [mscorlib]System.Diagnostics.DebuggerBrowsableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggerBrowsableState) = (
- 01 00 00 00 00 00 00 00
- )
- // Token: 0x0400001D RID: 29
- .field private float32 '<High>k__BackingField'
- .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = (
- 01 00 00 00
- )
- .custom instance void [mscorlib]System.Diagnostics.DebuggerBrowsableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggerBrowsableState) = (
- 01 00 00 00 00 00 00 00
- )
- // Token: 0x0400001E RID: 30
- .field private float32 '<Increment>k__BackingField'
- .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = (
- 01 00 00 00
- )
- .custom instance void [mscorlib]System.Diagnostics.DebuggerBrowsableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggerBrowsableState) = (
- 01 00 00 00 00 00 00 00
- )
- // Methods
- // Token: 0x060000AD RID: 173 RVA: 0x00006F6F File Offset: 0x0000516F
- .method public hidebysig specialname
- instance float32 get_Low () cil managed
- {
- .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = (
- 01 00 00 00
- )
- // Header Size: 1 byte
- // Code Size: 7 (0x7) bytes
- .maxstack 8
- /* 0x00005170 02 */ IL_0000: ldarg.0
- /* 0x00005171 7B1C000004 */ IL_0001: ldfld float32 DustDevilFramework.ModSettings/SettingsRange::'<Low>k__BackingField'
- /* 0x00005176 2A */ IL_0006: ret
- } // end of method SettingsRange::get_Low
- // Token: 0x060000AE RID: 174 RVA: 0x00006F77 File Offset: 0x00005177
- .method public hidebysig specialname
- instance void set_Low (
- float32 'value'
- ) cil managed
- {
- .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = (
- 01 00 00 00
- )
- // Header Size: 1 byte
- // Code Size: 8 (0x8) bytes
- .maxstack 8
- /* 0x00005178 02 */ IL_0000: ldarg.0
- /* 0x00005179 03 */ IL_0001: ldarg.1
- /* 0x0000517A 7D1C000004 */ IL_0002: stfld float32 DustDevilFramework.ModSettings/SettingsRange::'<Low>k__BackingField'
- /* 0x0000517F 2A */ IL_0007: ret
- } // end of method SettingsRange::set_Low
- // Token: 0x060000AF RID: 175 RVA: 0x00006F80 File Offset: 0x00005180
- .method public hidebysig specialname
- instance float32 get_High () cil managed
- {
- .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = (
- 01 00 00 00
- )
- // Header Size: 1 byte
- // Code Size: 7 (0x7) bytes
- .maxstack 8
- /* 0x00005181 02 */ IL_0000: ldarg.0
- /* 0x00005182 7B1D000004 */ IL_0001: ldfld float32 DustDevilFramework.ModSettings/SettingsRange::'<High>k__BackingField'
- /* 0x00005187 2A */ IL_0006: ret
- } // end of method SettingsRange::get_High
- // Token: 0x060000B0 RID: 176 RVA: 0x00006F88 File Offset: 0x00005188
- .method public hidebysig specialname
- instance void set_High (
- float32 'value'
- ) cil managed
- {
- .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = (
- 01 00 00 00
- )
- // Header Size: 1 byte
- // Code Size: 8 (0x8) bytes
- .maxstack 8
- /* 0x00005189 02 */ IL_0000: ldarg.0
- /* 0x0000518A 03 */ IL_0001: ldarg.1
- /* 0x0000518B 7D1D000004 */ IL_0002: stfld float32 DustDevilFramework.ModSettings/SettingsRange::'<High>k__BackingField'
- /* 0x00005190 2A */ IL_0007: ret
- } // end of method SettingsRange::set_High
- // Token: 0x060000B1 RID: 177 RVA: 0x00006F91 File Offset: 0x00005191
- .method public hidebysig specialname
- instance float32 get_Increment () cil managed
- {
- .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = (
- 01 00 00 00
- )
- // Header Size: 1 byte
- // Code Size: 7 (0x7) bytes
- .maxstack 8
- /* 0x00005192 02 */ IL_0000: ldarg.0
- /* 0x00005193 7B1E000004 */ IL_0001: ldfld float32 DustDevilFramework.ModSettings/SettingsRange::'<Increment>k__BackingField'
- /* 0x00005198 2A */ IL_0006: ret
- } // end of method SettingsRange::get_Increment
- // Token: 0x060000B2 RID: 178 RVA: 0x00006F99 File Offset: 0x00005199
- .method public hidebysig specialname
- instance void set_Increment (
- float32 'value'
- ) cil managed
- {
- .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = (
- 01 00 00 00
- )
- // Header Size: 1 byte
- // Code Size: 8 (0x8) bytes
- .maxstack 8
- /* 0x0000519A 02 */ IL_0000: ldarg.0
- /* 0x0000519B 03 */ IL_0001: ldarg.1
- /* 0x0000519C 7D1E000004 */ IL_0002: stfld float32 DustDevilFramework.ModSettings/SettingsRange::'<Increment>k__BackingField'
- /* 0x000051A1 2A */ IL_0007: ret
- } // end of method SettingsRange::set_Increment
- // Token: 0x060000B3 RID: 179 RVA: 0x00006FA2 File Offset: 0x000051A2
- .method public hidebysig specialname rtspecialname
- instance void .ctor (
- float32 low,
- float32 high
- ) cil managed
- {
- // Header Size: 1 byte
- // Code Size: 36 (0x24) bytes
- .maxstack 8
- /* 0x000051A3 02 */ IL_0000: ldarg.0
- /* 0x000051A4 220000803F */ IL_0001: ldc.r4 1
- /* 0x000051A9 7D1E000004 */ IL_0006: stfld float32 DustDevilFramework.ModSettings/SettingsRange::'<Increment>k__BackingField'
- /* 0x000051AE 02 */ IL_000B: ldarg.0
- /* 0x000051AF 286B01000A */ IL_000C: call instance void [mscorlib]System.Attribute::.ctor()
- /* 0x000051B4 00 */ IL_0011: nop
- /* 0x000051B5 00 */ IL_0012: nop
- /* 0x000051B6 02 */ IL_0013: ldarg.0
- /* 0x000051B7 03 */ IL_0014: ldarg.1
- /* 0x000051B8 28AE000006 */ IL_0015: call instance void DustDevilFramework.ModSettings/SettingsRange::set_Low(float32)
- /* 0x000051BD 00 */ IL_001A: nop
- /* 0x000051BE 02 */ IL_001B: ldarg.0
- /* 0x000051BF 04 */ IL_001C: ldarg.2
- /* 0x000051C0 28B0000006 */ IL_001D: call instance void DustDevilFramework.ModSettings/SettingsRange::set_High(float32)
- /* 0x000051C5 00 */ IL_0022: nop
- /* 0x000051C6 2A */ IL_0023: ret
- } // end of method SettingsRange::.ctor
- // Token: 0x060000B4 RID: 180 RVA: 0x00006FC7 File Offset: 0x000051C7
- .method public hidebysig specialname rtspecialname
- instance void .ctor (
- float32 low,
- float32 high,
- float32 increment
- ) cil managed
- {
- // Header Size: 1 byte
- // Code Size: 44 (0x2C) bytes
- .maxstack 8
- /* 0x000051C8 02 */ IL_0000: ldarg.0
- /* 0x000051C9 220000803F */ IL_0001: ldc.r4 1
- /* 0x000051CE 7D1E000004 */ IL_0006: stfld float32 DustDevilFramework.ModSettings/SettingsRange::'<Increment>k__BackingField'
- /* 0x000051D3 02 */ IL_000B: ldarg.0
- /* 0x000051D4 286B01000A */ IL_000C: call instance void [mscorlib]System.Attribute::.ctor()
- /* 0x000051D9 00 */ IL_0011: nop
- /* 0x000051DA 00 */ IL_0012: nop
- /* 0x000051DB 02 */ IL_0013: ldarg.0
- /* 0x000051DC 03 */ IL_0014: ldarg.1
- /* 0x000051DD 28AE000006 */ IL_0015: call instance void DustDevilFramework.ModSettings/SettingsRange::set_Low(float32)
- /* 0x000051E2 00 */ IL_001A: nop
- /* 0x000051E3 02 */ IL_001B: ldarg.0
- /* 0x000051E4 04 */ IL_001C: ldarg.2
- /* 0x000051E5 28B0000006 */ IL_001D: call instance void DustDevilFramework.ModSettings/SettingsRange::set_High(float32)
- /* 0x000051EA 00 */ IL_0022: nop
- /* 0x000051EB 02 */ IL_0023: ldarg.0
- /* 0x000051EC 05 */ IL_0024: ldarg.3
- /* 0x000051ED 28B2000006 */ IL_0025: call instance void DustDevilFramework.ModSettings/SettingsRange::set_Increment(float32)
- /* 0x000051F2 00 */ IL_002A: nop
- /* 0x000051F3 2A */ IL_002B: ret
- } // end of method SettingsRange::.ctor
- // Properties
- // Token: 0x17000009 RID: 9
- .property instance float32 Low()
- {
- // Token: 0x060000AD RID: 173 RVA: 0x00006F6F File Offset: 0x0000516F
- .get instance float32 DustDevilFramework.ModSettings/SettingsRange::get_Low()
- // Token: 0x060000AE RID: 174 RVA: 0x00006F77 File Offset: 0x00005177
- .set instance void DustDevilFramework.ModSettings/SettingsRange::set_Low(float32)
- }
- // Token: 0x1700000A RID: 10
- .property instance float32 High()
- {
- // Token: 0x060000AF RID: 175 RVA: 0x00006F80 File Offset: 0x00005180
- .get instance float32 DustDevilFramework.ModSettings/SettingsRange::get_High()
- // Token: 0x060000B0 RID: 176 RVA: 0x00006F88 File Offset: 0x00005188
- .set instance void DustDevilFramework.ModSettings/SettingsRange::set_High(float32)
- }
- // Token: 0x1700000B RID: 11
- .property instance float32 Increment()
- {
- // Token: 0x060000B1 RID: 177 RVA: 0x00006F91 File Offset: 0x00005191
- .get instance float32 DustDevilFramework.ModSettings/SettingsRange::get_Increment()
- // Token: 0x060000B2 RID: 178 RVA: 0x00006F99 File Offset: 0x00005199
- .set instance void DustDevilFramework.ModSettings/SettingsRange::set_Increment(float32)
- }
- } // end of class SettingsRange
- // Token: 0x02000010 RID: 16
- .class nested public auto ansi beforefieldinit SettingsIgnore
- extends [mscorlib]System.Attribute
- {
- .custom instance void [mscorlib]System.AttributeUsageAttribute::.ctor(valuetype [mscorlib]System.AttributeTargets) = (
- 01 00 00 01 00 00 00 00
- )
- // Methods
- // Token: 0x060000B5 RID: 181 RVA: 0x00006FF4 File Offset: 0x000051F4
- .method public hidebysig specialname rtspecialname
- instance void .ctor () cil managed
- {
- // Header Size: 1 byte
- // Code Size: 8 (0x8) bytes
- .maxstack 8
- /* 0x000051F5 02 */ IL_0000: ldarg.0
- /* 0x000051F6 286B01000A */ IL_0001: call instance void [mscorlib]System.Attribute::.ctor()
- /* 0x000051FB 00 */ IL_0006: nop
- /* 0x000051FC 2A */ IL_0007: ret
- } // end of method SettingsIgnore::.ctor
- } // end of class SettingsIgnore
- // Fields
- // Token: 0x04000008 RID: 8
- .field private string name
- .custom instance void DustDevilFramework.ModSettings/SettingsIgnore::.ctor() = (
- 01 00 00 00
- )
- // Token: 0x04000009 RID: 9
- .field private bool '<Enabled>k__BackingField'
- .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = (
- 01 00 00 00
- )
- .custom instance void [mscorlib]System.Diagnostics.DebuggerBrowsableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggerBrowsableState) = (
- 01 00 00 00 00 00 00 00
- )
- // Methods
- // Token: 0x0600006A RID: 106 RVA: 0x0000541E File Offset: 0x0000361E
- .method public hidebysig specialname
- instance bool get_Enabled () cil managed
- {
- .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = (
- 01 00 00 00
- )
- // Header Size: 1 byte
- // Code Size: 7 (0x7) bytes
- .maxstack 8
- /* 0x0000361F 02 */ IL_0000: ldarg.0
- /* 0x00003620 7B09000004 */ IL_0001: ldfld bool DustDevilFramework.ModSettings::'<Enabled>k__BackingField'
- /* 0x00003625 2A */ IL_0006: ret
- } // end of method ModSettings::get_Enabled
- // Token: 0x0600006B RID: 107 RVA: 0x00005426 File Offset: 0x00003626
- .method public hidebysig specialname
- instance void set_Enabled (
- bool 'value'
- ) cil managed
- {
- .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = (
- 01 00 00 00
- )
- // Header Size: 1 byte
- // Code Size: 8 (0x8) bytes
- .maxstack 8
- /* 0x00003627 02 */ IL_0000: ldarg.0
- /* 0x00003628 03 */ IL_0001: ldarg.1
- /* 0x00003629 7D09000004 */ IL_0002: stfld bool DustDevilFramework.ModSettings::'<Enabled>k__BackingField'
- /* 0x0000362E 2A */ IL_0007: ret
- } // end of method ModSettings::set_Enabled
- // Token: 0x0600006C RID: 108 RVA: 0x0000542F File Offset: 0x0000362F
- .method public hidebysig specialname rtspecialname
- instance void .ctor (
- string name
- ) cil managed
- {
- // Header Size: 1 byte
- // Code Size: 23 (0x17) bytes
- .maxstack 8
- /* 0x00003630 02 */ IL_0000: ldarg.0
- /* 0x00003631 17 */ IL_0001: ldc.i4.1
- /* 0x00003632 7D09000004 */ IL_0002: stfld bool DustDevilFramework.ModSettings::'<Enabled>k__BackingField'
- /* 0x00003637 02 */ IL_0007: ldarg.0
- /* 0x00003638 28AF00000A */ IL_0008: call instance void [mscorlib]System.Object::.ctor()
- /* 0x0000363D 00 */ IL_000D: nop
- /* 0x0000363E 00 */ IL_000E: nop
- /* 0x0000363F 02 */ IL_000F: ldarg.0
- /* 0x00003640 03 */ IL_0010: ldarg.1
- /* 0x00003641 7D08000004 */ IL_0011: stfld string DustDevilFramework.ModSettings::name
- /* 0x00003646 2A */ IL_0016: ret
- } // end of method ModSettings::.ctor
- // Token: 0x0600006D RID: 109 RVA: 0x00005448 File Offset: 0x00003648
- .method public hidebysig
- instance void WriteSettings () cil managed
- {
- // Header Size: 12 bytes
- // Code Size: 143 (0x8F) bytes
- // LocalVarSig Token: 0x11000019 RID: 25
- .maxstack 5
- .locals init (
- [0] string,
- [1] string,
- [2] class [mscorlib]System.Reflection.FieldInfo[],
- [3] class [mscorlib]System.Reflection.FieldInfo[],
- [4] int32,
- [5] class [mscorlib]System.Reflection.FieldInfo,
- [6] bool
- )
- /* 0x00003654 00 */ IL_0000: nop
- /* 0x00003655 02 */ IL_0001: ldarg.0
- /* 0x00003656 7B08000004 */ IL_0002: ldfld string DustDevilFramework.ModSettings::name
- /* 0x0000365B 72EE260070 */ IL_0007: ldstr "_config.txt"
- /* 0x00003660 281C00000A */ IL_000C: call string [mscorlib]System.String::Concat(string, string)
- /* 0x00003665 0A */ IL_0011: stloc.0
- /* 0x00003666 7206270070 */ IL_0012: ldstr ""
- /* 0x0000366B 0B */ IL_0017: stloc.1
- /* 0x0000366C 02 */ IL_0018: ldarg.0
- /* 0x0000366D 28F800000A */ IL_0019: call instance class [mscorlib]System.Type [mscorlib]System.Object::GetType()
- /* 0x00003672 6FF900000A */ IL_001E: callvirt instance class [mscorlib]System.Reflection.FieldInfo[] [mscorlib]System.Type::GetFields()
- /* 0x00003677 0C */ IL_0023: stloc.2
- /* 0x00003678 00 */ IL_0024: nop
- /* 0x00003679 08 */ IL_0025: ldloc.2
- /* 0x0000367A 0D */ IL_0026: stloc.3
- /* 0x0000367B 16 */ IL_0027: ldc.i4.0
- /* 0x0000367C 1304 */ IL_0028: stloc.s V_4
- /* 0x0000367E 2B53 */ IL_002A: br.s IL_007F
- // loop start (head: IL_007F)
- /* 0x00003680 09 */ IL_002C: ldloc.3
- /* 0x00003681 1104 */ IL_002D: ldloc.s V_4
- /* 0x00003683 9A */ IL_002F: ldelem.ref
- /* 0x00003684 1305 */ IL_0030: stloc.s V_5
- /* 0x00003686 00 */ IL_0032: nop
- /* 0x00003687 1105 */ IL_0033: ldloc.s V_5
- /* 0x00003689 6FFA00000A */ IL_0035: callvirt instance bool [mscorlib]System.Reflection.FieldInfo::get_IsPrivate()
- /* 0x0000368E 1306 */ IL_003A: stloc.s V_6
- /* 0x00003690 1106 */ IL_003C: ldloc.s V_6
- /* 0x00003692 2C03 */ IL_003E: brfalse.s IL_0043
- /* 0x00003694 00 */ IL_0040: nop
- /* 0x00003695 2B36 */ IL_0041: br.s IL_0079
- /* 0x00003697 1B */ IL_0043: ldc.i4.5
- /* 0x00003698 8D39000001 */ IL_0044: newarr [mscorlib]System.Object
- /* 0x0000369D 25 */ IL_0049: dup
- /* 0x0000369E 16 */ IL_004A: ldc.i4.0
- /* 0x0000369F 07 */ IL_004B: ldloc.1
- /* 0x000036A0 A2 */ IL_004C: stelem.ref
- /* 0x000036A1 25 */ IL_004D: dup
- /* 0x000036A2 17 */ IL_004E: ldc.i4.1
- /* 0x000036A3 1105 */ IL_004F: ldloc.s V_5
- /* 0x000036A5 6FFB00000A */ IL_0051: callvirt instance string [mscorlib]System.Reflection.MemberInfo::get_Name()
- /* 0x000036AA A2 */ IL_0056: stelem.ref
- /* 0x000036AB 25 */ IL_0057: dup
- /* 0x000036AC 18 */ IL_0058: ldc.i4.2
- /* 0x000036AD 72A2070070 */ IL_0059: ldstr ": "
- /* 0x000036B2 A2 */ IL_005E: stelem.ref
- /* 0x000036B3 25 */ IL_005F: dup
- /* 0x000036B4 19 */ IL_0060: ldc.i4.3
- /* 0x000036B5 1105 */ IL_0061: ldloc.s V_5
- /* 0x000036B7 02 */ IL_0063: ldarg.0
- /* 0x000036B8 6FFC00000A */ IL_0064: callvirt instance object [mscorlib]System.Reflection.FieldInfo::GetValue(object)
- /* 0x000036BD A2 */ IL_0069: stelem.ref
- /* 0x000036BE 25 */ IL_006A: dup
- /* 0x000036BF 1A */ IL_006B: ldc.i4.4
- /* 0x000036C0 72761B0070 */ IL_006C: ldstr "\n"
- /* 0x000036C5 A2 */ IL_0071: stelem.ref
- /* 0x000036C6 284B00000A */ IL_0072: call string [mscorlib]System.String::Concat(object[])
- /* 0x000036CB 0B */ IL_0077: stloc.1
- /* 0x000036CC 00 */ IL_0078: nop
- /* 0x000036CD 1104 */ IL_0079: ldloc.s V_4
- /* 0x000036CF 17 */ IL_007B: ldc.i4.1
- /* 0x000036D0 58 */ IL_007C: add
- /* 0x000036D1 1304 */ IL_007D: stloc.s V_4
- /* 0x000036D3 1104 */ IL_007F: ldloc.s V_4
- /* 0x000036D5 09 */ IL_0081: ldloc.3
- /* 0x000036D6 8E */ IL_0082: ldlen
- /* 0x000036D7 69 */ IL_0083: conv.i4
- /* 0x000036D8 32A6 */ IL_0084: blt.s IL_002C
- // end loop
- /* 0x000036DA 06 */ IL_0086: ldloc.0
- /* 0x000036DB 07 */ IL_0087: ldloc.1
- /* 0x000036DC 28FD00000A */ IL_0088: call void [mscorlib]System.IO.File::WriteAllText(string, string)
- /* 0x000036E1 00 */ IL_008D: nop
- /* 0x000036E2 2A */ IL_008E: ret
- } // end of method ModSettings::WriteSettings
- // Token: 0x0600006E RID: 110 RVA: 0x000054E4 File Offset: 0x000036E4
- .method public hidebysig
- instance void ReadSettings () cil managed
- {
- // Header Size: 12 bytes
- // Code Size: 417 (0x1A1) bytes
- // LocalVarSig Token: 0x1100001A RID: 26
- .maxstack 5
- .locals init (
- [0] string,
- [1] string[],
- [2] bool,
- [3] string[],
- [4] int32,
- [5] string,
- [6] string[],
- [7] string,
- [8] bool,
- [9] bool,
- [10] class [mscorlib]System.Reflection.FieldInfo[],
- [11] int32,
- [12] class [mscorlib]System.Reflection.FieldInfo,
- [13] bool,
- [14] class [mscorlib]System.ArgumentException,
- [15] class [mscorlib]System.FormatException,
- [16] class [mscorlib]System.ArgumentException,
- [17] bool
- )
- /* 0x000036F0 00 */ IL_0000: nop
- /* 0x000036F1 02 */ IL_0001: ldarg.0
- /* 0x000036F2 7B08000004 */ IL_0002: ldfld string DustDevilFramework.ModSettings::name
- /* 0x000036F7 72EE260070 */ IL_0007: ldstr "_config.txt"
- /* 0x000036FC 281C00000A */ IL_000C: call string [mscorlib]System.String::Concat(string, string)
- /* 0x00003701 0A */ IL_0011: stloc.0
- /* 0x00003702 06 */ IL_0012: ldloc.0
- /* 0x00003703 28FE00000A */ IL_0013: call bool [mscorlib]System.IO.File::Exists(string)
- /* 0x00003708 16 */ IL_0018: ldc.i4.0
- /* 0x00003709 FE01 */ IL_0019: ceq
- /* 0x0000370B 0C */ IL_001B: stloc.2
- /* 0x0000370C 08 */ IL_001C: ldloc.2
- /* 0x0000370D 2C0D */ IL_001D: brfalse.s IL_002C
- /* 0x0000370F 00 */ IL_001F: nop
- /* 0x00003710 02 */ IL_0020: ldarg.0
- /* 0x00003711 286D000006 */ IL_0021: call instance void DustDevilFramework.ModSettings::WriteSettings()
- /* 0x00003716 00 */ IL_0026: nop
- /* 0x00003717 3874010000 */ IL_0027: br IL_01A0
- /* 0x0000371C 06 */ IL_002C: ldloc.0
- /* 0x0000371D 289500000A */ IL_002D: call string[] [mscorlib]System.IO.File::ReadAllLines(string)
- /* 0x00003722 0B */ IL_0032: stloc.1
- /* 0x00003723 00 */ IL_0033: nop
- /* 0x00003724 07 */ IL_0034: ldloc.1
- /* 0x00003725 0D */ IL_0035: stloc.3
- /* 0x00003726 16 */ IL_0036: ldc.i4.0
- /* 0x00003727 1304 */ IL_0037: stloc.s V_4
- /* 0x00003729 3858010000 */ IL_0039: br IL_0196
- // loop start (head: IL_0196)
- /* 0x0000372E 09 */ IL_003E: ldloc.3
- /* 0x0000372F 1104 */ IL_003F: ldloc.s V_4
- /* 0x00003731 9A */ IL_0041: ldelem.ref
- /* 0x00003732 1305 */ IL_0042: stloc.s V_5
- /* 0x00003734 00 */ IL_0044: nop
- /* 0x00003735 1105 */ IL_0045: ldloc.s V_5
- /* 0x00003737 7208270070 */ IL_0047: ldstr "#"
- /* 0x0000373C 6FFF00000A */ IL_004C: callvirt instance bool [mscorlib]System.String::StartsWith(string)
- /* 0x00003741 2D11 */ IL_0051: brtrue.s IL_0064
- /* 0x00003743 1105 */ IL_0053: ldloc.s V_5
- /* 0x00003745 72A2070070 */ IL_0055: ldstr ": "
- /* 0x0000374A 6F9600000A */ IL_005A: callvirt instance int32 [mscorlib]System.String::IndexOf(string)
- /* 0x0000374F 15 */ IL_005F: ldc.i4.m1
- /* 0x00003750 FE01 */ IL_0060: ceq
- /* 0x00003752 2B01 */ IL_0062: br.s IL_0065
- /* 0x00003754 17 */ IL_0064: ldc.i4.1
- /* 0x00003755 1309 */ IL_0065: stloc.s V_9
- /* 0x00003757 1109 */ IL_0067: ldloc.s V_9
- /* 0x00003759 2C06 */ IL_0069: brfalse.s IL_0071
- /* 0x0000375B 00 */ IL_006B: nop
- /* 0x0000375C 381F010000 */ IL_006C: br IL_0190
- /* 0x00003761 1105 */ IL_0071: ldloc.s V_5
- /* 0x00003763 17 */ IL_0073: ldc.i4.1
- /* 0x00003764 8D6B000001 */ IL_0074: newarr [mscorlib]System.String
- /* 0x00003769 25 */ IL_0079: dup
- /* 0x0000376A 16 */ IL_007A: ldc.i4.0
- /* 0x0000376B 72A2070070 */ IL_007B: ldstr ": "
- /* 0x00003770 A2 */ IL_0080: stelem.ref
- /* 0x00003771 16 */ IL_0081: ldc.i4.0
- /* 0x00003772 6F0001000A */ IL_0082: callvirt instance string[] [mscorlib]System.String::Split(string[], valuetype [mscorlib]System.StringSplitOptions)
- /* 0x00003777 1306 */ IL_0087: stloc.s V_6
- /* 0x00003779 1106 */ IL_0089: ldloc.s V_6
- /* 0x0000377B 17 */ IL_008B: ldc.i4.1
- /* 0x0000377C 9A */ IL_008C: ldelem.ref
- /* 0x0000377D 6F0101000A */ IL_008D: callvirt instance string [mscorlib]System.String::Trim()
- /* 0x00003782 1307 */ IL_0092: stloc.s V_7
- /* 0x00003784 16 */ IL_0094: ldc.i4.0
- /* 0x00003785 1308 */ IL_0095: stloc.s V_8
- /* 0x00003787 00 */ IL_0097: nop
- /* 0x00003788 02 */ IL_0098: ldarg.0
- /* 0x00003789 28F800000A */ IL_0099: call instance class [mscorlib]System.Type [mscorlib]System.Object::GetType()
- /* 0x0000378E 6FF900000A */ IL_009E: callvirt instance class [mscorlib]System.Reflection.FieldInfo[] [mscorlib]System.Type::GetFields()
- /* 0x00003793 130A */ IL_00A3: stloc.s V_10
- /* 0x00003795 16 */ IL_00A5: ldc.i4.0
- /* 0x00003796 130B */ IL_00A6: stloc.s V_11
- /* 0x00003798 38B8000000 */ IL_00A8: br IL_0165
- // loop start (head: IL_0165)
- /* 0x0000379D 110A */ IL_00AD: ldloc.s V_10
- /* 0x0000379F 110B */ IL_00AF: ldloc.s V_11
- /* 0x000037A1 9A */ IL_00B1: ldelem.ref
- /* 0x000037A2 130C */ IL_00B2: stloc.s V_12
- /* 0x000037A4 00 */ IL_00B4: nop
- /* 0x000037A5 110C */ IL_00B5: ldloc.s V_12
- /* 0x000037A7 6FFB00000A */ IL_00B7: callvirt instance string [mscorlib]System.Reflection.MemberInfo::get_Name()
- /* 0x000037AC 1106 */ IL_00BC: ldloc.s V_6
- /* 0x000037AE 16 */ IL_00BE: ldc.i4.0
- /* 0x000037AF 9A */ IL_00BF: ldelem.ref
- /* 0x000037B0 280201000A */ IL_00C0: call bool [mscorlib]System.String::op_Equality(string, string)
- /* 0x000037B5 130D */ IL_00C5: stloc.s V_13
- /* 0x000037B7 110D */ IL_00C7: ldloc.s V_13
- /* 0x000037B9 3990000000 */ IL_00C9: brfalse IL_015E
- /* 0x000037BE 00 */ IL_00CE: nop
- .try
- {
- /* 0x000037BF 00 */ IL_00CF: nop
- /* 0x000037C0 110C */ IL_00D0: ldloc.s V_12
- /* 0x000037C2 02 */ IL_00D2: ldarg.0
- /* 0x000037C3 1106 */ IL_00D3: ldloc.s V_6
- /* 0x000037C5 17 */ IL_00D5: ldc.i4.1
- /* 0x000037C6 9A */ IL_00D6: ldelem.ref
- /* 0x000037C7 6F0301000A */ IL_00D7: callvirt instance void [mscorlib]System.Reflection.FieldInfo::SetValue(object, object)
- /* 0x000037CC 00 */ IL_00DC: nop
- /* 0x000037CD 00 */ IL_00DD: nop
- /* 0x000037CE DE5C */ IL_00DE: leave.s IL_013C
- } // end .try
- catch [mscorlib]System.ArgumentException
- {
- /* 0x000037D0 130E */ IL_00E0: stloc.s V_14
- /* 0x000037D2 00 */ IL_00E2: nop
- .try
- {
- /* 0x000037D3 00 */ IL_00E3: nop
- /* 0x000037D4 110C */ IL_00E4: ldloc.s V_12
- /* 0x000037D6 02 */ IL_00E6: ldarg.0
- /* 0x000037D7 1106 */ IL_00E7: ldloc.s V_6
- /* 0x000037D9 17 */ IL_00E9: ldc.i4.1
- /* 0x000037DA 9A */ IL_00EA: ldelem.ref
- /* 0x000037DB 289100000A */ IL_00EB: call float64 [mscorlib]System.Convert::ToDouble(string)
- /* 0x000037E0 6B */ IL_00F0: conv.r4
- /* 0x000037E1 8C76000001 */ IL_00F1: box [mscorlib]System.Single
- /* 0x000037E6 6F0301000A */ IL_00F6: callvirt instance void [mscorlib]System.Reflection.FieldInfo::SetValue(object, object)
- /* 0x000037EB 00 */ IL_00FB: nop
- /* 0x000037EC 00 */ IL_00FC: nop
- /* 0x000037ED DE3A */ IL_00FD: leave.s IL_0139
- } // end .try
- catch [mscorlib]System.FormatException
- {
- /* 0x000037EF 130F */ IL_00FF: stloc.s V_15
- /* 0x000037F1 00 */ IL_0101: nop
- /* 0x000037F2 110C */ IL_0102: ldloc.s V_12
- /* 0x000037F4 02 */ IL_0104: ldarg.0
- /* 0x000037F5 1106 */ IL_0105: ldloc.s V_6
- /* 0x000037F7 17 */ IL_0107: ldc.i4.1
- /* 0x000037F8 9A */ IL_0108: ldelem.ref
- /* 0x000037F9 280401000A */ IL_0109: call bool [mscorlib]System.Convert::ToBoolean(string)
- /* 0x000037FE 8C71000001 */ IL_010E: box [mscorlib]System.Boolean
- /* 0x00003803 6F0301000A */ IL_0113: callvirt instance void [mscorlib]System.Reflection.FieldInfo::SetValue(object, object)
- /* 0x00003808 00 */ IL_0118: nop
- /* 0x00003809 00 */ IL_0119: nop
- /* 0x0000380A DE1D */ IL_011A: leave.s IL_0139
- } // end handler
- catch [mscorlib]System.ArgumentException
- {
- /* 0x0000380C 1310 */ IL_011C: stloc.s V_16
- /* 0x0000380E 00 */ IL_011E: nop
- /* 0x0000380F 110C */ IL_011F: ldloc.s V_12
- /* 0x00003811 02 */ IL_0121: ldarg.0
- /* 0x00003812 1106 */ IL_0122: ldloc.s V_6
- /* 0x00003814 17 */ IL_0124: ldc.i4.1
- /* 0x00003815 9A */ IL_0125: ldelem.ref
- /* 0x00003816 280401000A */ IL_0126: call bool [mscorlib]System.Convert::ToBoolean(string)
- /* 0x0000381B 8C71000001 */ IL_012B: box [mscorlib]System.Boolean
- /* 0x00003820 6F0301000A */ IL_0130: callvirt instance void [mscorlib]System.Reflection.FieldInfo::SetValue(object, object)
- /* 0x00003825 00 */ IL_0135: nop
- /* 0x00003826 00 */ IL_0136: nop
- /* 0x00003827 DE00 */ IL_0137: leave.s IL_0139
- } // end handler
- /* 0x00003829 00 */ IL_0139: nop
- /* 0x0000382A DE00 */ IL_013A: leave.s IL_013C
- } // end handler
- /* 0x0000382C 720C270070 */ IL_013C: ldstr "Set Field with name: "
- /* 0x00003831 1106 */ IL_0141: ldloc.s V_6
- /* 0x00003833 16 */ IL_0143: ldc.i4.0
- /* 0x00003834 9A */ IL_0144: ldelem.ref
- /* 0x00003835 7238270070 */ IL_0145: ldstr " to: "
- /* 0x0000383A 1106 */ IL_014A: ldloc.s V_6
- /* 0x0000383C 17 */ IL_014C: ldc.i4.1
- /* 0x0000383D 9A */ IL_014D: ldelem.ref
- /* 0x0000383E 285100000A */ IL_014E: call string [mscorlib]System.String::Concat(string, string, string, string)
- /* 0x00003843 28B200000A */ IL_0153: call void [UnityEngine]UnityEngine.Debug::Log(object)
- /* 0x00003848 00 */ IL_0158: nop
- /* 0x00003849 17 */ IL_0159: ldc.i4.1
- /* 0x0000384A 1308 */ IL_015A: stloc.s V_8
- /* 0x0000384C 2B12 */ IL_015C: br.s IL_0170
- /* 0x0000384E 00 */ IL_015E: nop
- /* 0x0000384F 110B */ IL_015F: ldloc.s V_11
- /* 0x00003851 17 */ IL_0161: ldc.i4.1
- /* 0x00003852 58 */ IL_0162: add
- /* 0x00003853 130B */ IL_0163: stloc.s V_11
- /* 0x00003855 110B */ IL_0165: ldloc.s V_11
- /* 0x00003857 110A */ IL_0167: ldloc.s V_10
- /* 0x00003859 8E */ IL_0169: ldlen
- /* 0x0000385A 69 */ IL_016A: conv.i4
- /* 0x0000385B 3F3DFFFFFF */ IL_016B: blt IL_00AD
- // end loop
- /* 0x00003860 1108 */ IL_0170: ldloc.s V_8
- /* 0x00003862 1311 */ IL_0172: stloc.s V_17
- /* 0x00003864 1111 */ IL_0174: ldloc.s V_17
- /* 0x00003866 2C03 */ IL_0176: brfalse.s IL_017B
- /* 0x00003868 00 */ IL_0178: nop
- /* 0x00003869 2B15 */ IL_0179: br.s IL_0190
- /* 0x0000386B 7244270070 */ IL_017B: ldstr "No fields with name matching: "
- /* 0x00003870 1106 */ IL_0180: ldloc.s V_6
- /* 0x00003872 16 */ IL_0182: ldc.i4.0
- /* 0x00003873 9A */ IL_0183: ldelem.ref
- /* 0x00003874 281C00000A */ IL_0184: call string [mscorlib]System.String::Concat(string, string)
- /* 0x00003879 28B200000A */ IL_0189: call void [UnityEngine]UnityEngine.Debug::Log(object)
- /* 0x0000387E 00 */ IL_018E: nop
- /* 0x0000387F 00 */ IL_018F: nop
- /* 0x00003880 1104 */ IL_0190: ldloc.s V_4
- /* 0x00003882 17 */ IL_0192: ldc.i4.1
- /* 0x00003883 58 */ IL_0193: add
- /* 0x00003884 1304 */ IL_0194: stloc.s V_4
- /* 0x00003886 1104 */ IL_0196: ldloc.s V_4
- /* 0x00003888 09 */ IL_0198: ldloc.3
- /* 0x00003889 8E */ IL_0199: ldlen
- /* 0x0000388A 69 */ IL_019A: conv.i4
- /* 0x0000388B 3F9EFEFFFF */ IL_019B: blt IL_003E
- // end loop
- /* 0x00003890 2A */ IL_01A0: ret
- } // end of method ModSettings::ReadSettings
- // Token: 0x0600006F RID: 111 RVA: 0x000056BC File Offset: 0x000038BC
- .method public hidebysig
- instance bool Exists () cil managed
- {
- // Header Size: 12 bytes
- // Code Size: 27 (0x1B) bytes
- // LocalVarSig Token: 0x11000001 RID: 1
- .maxstack 2
- .locals init (
- [0] bool
- )
- /* 0x000038C8 00 */ IL_0000: nop
- /* 0x000038C9 02 */ IL_0001: ldarg.0
- /* 0x000038CA 7B08000004 */ IL_0002: ldfld string DustDevilFramework.ModSettings::name
- /* 0x000038CF 72EE260070 */ IL_0007: ldstr "_config.txt"
- /* 0x000038D4 281C00000A */ IL_000C: call string [mscorlib]System.String::Concat(string, string)
- /* 0x000038D9 28FE00000A */ IL_0011: call bool [mscorlib]System.IO.File::Exists(string)
- /* 0x000038DE 0A */ IL_0016: stloc.0
- /* 0x000038DF 2B00 */ IL_0017: br.s IL_0019
- /* 0x000038E1 06 */ IL_0019: ldloc.0
- /* 0x000038E2 2A */ IL_001A: ret
- } // end of method ModSettings::Exists
- // Properties
- // Token: 0x17000004 RID: 4
- .property instance bool Enabled()
- {
- // Token: 0x0600006A RID: 106 RVA: 0x0000541E File Offset: 0x0000361E
- .get instance bool DustDevilFramework.ModSettings::get_Enabled()
- // Token: 0x0600006B RID: 107 RVA: 0x00005426 File Offset: 0x00003626
- .set instance void DustDevilFramework.ModSettings::set_Enabled(bool)
- }
- } // end of class DustDevilFramework.ModSettings
Add Comment
Please, Sign In to add comment