Sc2ad

Overall ModSettings

Jan 15th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.92 KB | None | 0 0
  1. // Token: 0x02000007 RID: 7
  2. .class public auto ansi beforefieldinit DustDevilFramework.ModSettings
  3. extends [mscorlib]System.Object
  4. {
  5. // Nested Types
  6. // Token: 0x0200000F RID: 15
  7. .class nested public auto ansi beforefieldinit SettingsRange
  8. extends [mscorlib]System.Attribute
  9. {
  10. .custom instance void [mscorlib]System.AttributeUsageAttribute::.ctor(valuetype [mscorlib]System.AttributeTargets) = (
  11. 01 00 00 01 00 00 00 00
  12. )
  13. // Fields
  14. // Token: 0x0400001C RID: 28
  15. .field private float32 '<Low>k__BackingField'
  16. .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = (
  17. 01 00 00 00
  18. )
  19. .custom instance void [mscorlib]System.Diagnostics.DebuggerBrowsableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggerBrowsableState) = (
  20. 01 00 00 00 00 00 00 00
  21. )
  22. // Token: 0x0400001D RID: 29
  23. .field private float32 '<High>k__BackingField'
  24. .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = (
  25. 01 00 00 00
  26. )
  27. .custom instance void [mscorlib]System.Diagnostics.DebuggerBrowsableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggerBrowsableState) = (
  28. 01 00 00 00 00 00 00 00
  29. )
  30. // Token: 0x0400001E RID: 30
  31. .field private float32 '<Increment>k__BackingField'
  32. .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = (
  33. 01 00 00 00
  34. )
  35. .custom instance void [mscorlib]System.Diagnostics.DebuggerBrowsableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggerBrowsableState) = (
  36. 01 00 00 00 00 00 00 00
  37. )
  38.  
  39. // Methods
  40. // Token: 0x060000AD RID: 173 RVA: 0x00006F6F File Offset: 0x0000516F
  41. .method public hidebysig specialname
  42. instance float32 get_Low () cil managed
  43. {
  44. .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = (
  45. 01 00 00 00
  46. )
  47. // Header Size: 1 byte
  48. // Code Size: 7 (0x7) bytes
  49. .maxstack 8
  50.  
  51. /* 0x00005170 02 */ IL_0000: ldarg.0
  52. /* 0x00005171 7B1C000004 */ IL_0001: ldfld float32 DustDevilFramework.ModSettings/SettingsRange::'<Low>k__BackingField'
  53. /* 0x00005176 2A */ IL_0006: ret
  54. } // end of method SettingsRange::get_Low
  55.  
  56. // Token: 0x060000AE RID: 174 RVA: 0x00006F77 File Offset: 0x00005177
  57. .method public hidebysig specialname
  58. instance void set_Low (
  59. float32 'value'
  60. ) cil managed
  61. {
  62. .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = (
  63. 01 00 00 00
  64. )
  65. // Header Size: 1 byte
  66. // Code Size: 8 (0x8) bytes
  67. .maxstack 8
  68.  
  69. /* 0x00005178 02 */ IL_0000: ldarg.0
  70. /* 0x00005179 03 */ IL_0001: ldarg.1
  71. /* 0x0000517A 7D1C000004 */ IL_0002: stfld float32 DustDevilFramework.ModSettings/SettingsRange::'<Low>k__BackingField'
  72. /* 0x0000517F 2A */ IL_0007: ret
  73. } // end of method SettingsRange::set_Low
  74.  
  75. // Token: 0x060000AF RID: 175 RVA: 0x00006F80 File Offset: 0x00005180
  76. .method public hidebysig specialname
  77. instance float32 get_High () cil managed
  78. {
  79. .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = (
  80. 01 00 00 00
  81. )
  82. // Header Size: 1 byte
  83. // Code Size: 7 (0x7) bytes
  84. .maxstack 8
  85.  
  86. /* 0x00005181 02 */ IL_0000: ldarg.0
  87. /* 0x00005182 7B1D000004 */ IL_0001: ldfld float32 DustDevilFramework.ModSettings/SettingsRange::'<High>k__BackingField'
  88. /* 0x00005187 2A */ IL_0006: ret
  89. } // end of method SettingsRange::get_High
  90.  
  91. // Token: 0x060000B0 RID: 176 RVA: 0x00006F88 File Offset: 0x00005188
  92. .method public hidebysig specialname
  93. instance void set_High (
  94. float32 'value'
  95. ) cil managed
  96. {
  97. .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = (
  98. 01 00 00 00
  99. )
  100. // Header Size: 1 byte
  101. // Code Size: 8 (0x8) bytes
  102. .maxstack 8
  103.  
  104. /* 0x00005189 02 */ IL_0000: ldarg.0
  105. /* 0x0000518A 03 */ IL_0001: ldarg.1
  106. /* 0x0000518B 7D1D000004 */ IL_0002: stfld float32 DustDevilFramework.ModSettings/SettingsRange::'<High>k__BackingField'
  107. /* 0x00005190 2A */ IL_0007: ret
  108. } // end of method SettingsRange::set_High
  109.  
  110. // Token: 0x060000B1 RID: 177 RVA: 0x00006F91 File Offset: 0x00005191
  111. .method public hidebysig specialname
  112. instance float32 get_Increment () cil managed
  113. {
  114. .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = (
  115. 01 00 00 00
  116. )
  117. // Header Size: 1 byte
  118. // Code Size: 7 (0x7) bytes
  119. .maxstack 8
  120.  
  121. /* 0x00005192 02 */ IL_0000: ldarg.0
  122. /* 0x00005193 7B1E000004 */ IL_0001: ldfld float32 DustDevilFramework.ModSettings/SettingsRange::'<Increment>k__BackingField'
  123. /* 0x00005198 2A */ IL_0006: ret
  124. } // end of method SettingsRange::get_Increment
  125.  
  126. // Token: 0x060000B2 RID: 178 RVA: 0x00006F99 File Offset: 0x00005199
  127. .method public hidebysig specialname
  128. instance void set_Increment (
  129. float32 'value'
  130. ) cil managed
  131. {
  132. .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = (
  133. 01 00 00 00
  134. )
  135. // Header Size: 1 byte
  136. // Code Size: 8 (0x8) bytes
  137. .maxstack 8
  138.  
  139. /* 0x0000519A 02 */ IL_0000: ldarg.0
  140. /* 0x0000519B 03 */ IL_0001: ldarg.1
  141. /* 0x0000519C 7D1E000004 */ IL_0002: stfld float32 DustDevilFramework.ModSettings/SettingsRange::'<Increment>k__BackingField'
  142. /* 0x000051A1 2A */ IL_0007: ret
  143. } // end of method SettingsRange::set_Increment
  144.  
  145. // Token: 0x060000B3 RID: 179 RVA: 0x00006FA2 File Offset: 0x000051A2
  146. .method public hidebysig specialname rtspecialname
  147. instance void .ctor (
  148. float32 low,
  149. float32 high
  150. ) cil managed
  151. {
  152. // Header Size: 1 byte
  153. // Code Size: 36 (0x24) bytes
  154. .maxstack 8
  155.  
  156. /* 0x000051A3 02 */ IL_0000: ldarg.0
  157. /* 0x000051A4 220000803F */ IL_0001: ldc.r4 1
  158. /* 0x000051A9 7D1E000004 */ IL_0006: stfld float32 DustDevilFramework.ModSettings/SettingsRange::'<Increment>k__BackingField'
  159. /* 0x000051AE 02 */ IL_000B: ldarg.0
  160. /* 0x000051AF 286B01000A */ IL_000C: call instance void [mscorlib]System.Attribute::.ctor()
  161. /* 0x000051B4 00 */ IL_0011: nop
  162. /* 0x000051B5 00 */ IL_0012: nop
  163. /* 0x000051B6 02 */ IL_0013: ldarg.0
  164. /* 0x000051B7 03 */ IL_0014: ldarg.1
  165. /* 0x000051B8 28AE000006 */ IL_0015: call instance void DustDevilFramework.ModSettings/SettingsRange::set_Low(float32)
  166. /* 0x000051BD 00 */ IL_001A: nop
  167. /* 0x000051BE 02 */ IL_001B: ldarg.0
  168. /* 0x000051BF 04 */ IL_001C: ldarg.2
  169. /* 0x000051C0 28B0000006 */ IL_001D: call instance void DustDevilFramework.ModSettings/SettingsRange::set_High(float32)
  170. /* 0x000051C5 00 */ IL_0022: nop
  171. /* 0x000051C6 2A */ IL_0023: ret
  172. } // end of method SettingsRange::.ctor
  173.  
  174. // Token: 0x060000B4 RID: 180 RVA: 0x00006FC7 File Offset: 0x000051C7
  175. .method public hidebysig specialname rtspecialname
  176. instance void .ctor (
  177. float32 low,
  178. float32 high,
  179. float32 increment
  180. ) cil managed
  181. {
  182. // Header Size: 1 byte
  183. // Code Size: 44 (0x2C) bytes
  184. .maxstack 8
  185.  
  186. /* 0x000051C8 02 */ IL_0000: ldarg.0
  187. /* 0x000051C9 220000803F */ IL_0001: ldc.r4 1
  188. /* 0x000051CE 7D1E000004 */ IL_0006: stfld float32 DustDevilFramework.ModSettings/SettingsRange::'<Increment>k__BackingField'
  189. /* 0x000051D3 02 */ IL_000B: ldarg.0
  190. /* 0x000051D4 286B01000A */ IL_000C: call instance void [mscorlib]System.Attribute::.ctor()
  191. /* 0x000051D9 00 */ IL_0011: nop
  192. /* 0x000051DA 00 */ IL_0012: nop
  193. /* 0x000051DB 02 */ IL_0013: ldarg.0
  194. /* 0x000051DC 03 */ IL_0014: ldarg.1
  195. /* 0x000051DD 28AE000006 */ IL_0015: call instance void DustDevilFramework.ModSettings/SettingsRange::set_Low(float32)
  196. /* 0x000051E2 00 */ IL_001A: nop
  197. /* 0x000051E3 02 */ IL_001B: ldarg.0
  198. /* 0x000051E4 04 */ IL_001C: ldarg.2
  199. /* 0x000051E5 28B0000006 */ IL_001D: call instance void DustDevilFramework.ModSettings/SettingsRange::set_High(float32)
  200. /* 0x000051EA 00 */ IL_0022: nop
  201. /* 0x000051EB 02 */ IL_0023: ldarg.0
  202. /* 0x000051EC 05 */ IL_0024: ldarg.3
  203. /* 0x000051ED 28B2000006 */ IL_0025: call instance void DustDevilFramework.ModSettings/SettingsRange::set_Increment(float32)
  204. /* 0x000051F2 00 */ IL_002A: nop
  205. /* 0x000051F3 2A */ IL_002B: ret
  206. } // end of method SettingsRange::.ctor
  207.  
  208. // Properties
  209. // Token: 0x17000009 RID: 9
  210. .property instance float32 Low()
  211. {
  212. // Token: 0x060000AD RID: 173 RVA: 0x00006F6F File Offset: 0x0000516F
  213. .get instance float32 DustDevilFramework.ModSettings/SettingsRange::get_Low()
  214. // Token: 0x060000AE RID: 174 RVA: 0x00006F77 File Offset: 0x00005177
  215. .set instance void DustDevilFramework.ModSettings/SettingsRange::set_Low(float32)
  216. }
  217. // Token: 0x1700000A RID: 10
  218. .property instance float32 High()
  219. {
  220. // Token: 0x060000AF RID: 175 RVA: 0x00006F80 File Offset: 0x00005180
  221. .get instance float32 DustDevilFramework.ModSettings/SettingsRange::get_High()
  222. // Token: 0x060000B0 RID: 176 RVA: 0x00006F88 File Offset: 0x00005188
  223. .set instance void DustDevilFramework.ModSettings/SettingsRange::set_High(float32)
  224. }
  225. // Token: 0x1700000B RID: 11
  226. .property instance float32 Increment()
  227. {
  228. // Token: 0x060000B1 RID: 177 RVA: 0x00006F91 File Offset: 0x00005191
  229. .get instance float32 DustDevilFramework.ModSettings/SettingsRange::get_Increment()
  230. // Token: 0x060000B2 RID: 178 RVA: 0x00006F99 File Offset: 0x00005199
  231. .set instance void DustDevilFramework.ModSettings/SettingsRange::set_Increment(float32)
  232. }
  233.  
  234. } // end of class SettingsRange
  235.  
  236. // Token: 0x02000010 RID: 16
  237. .class nested public auto ansi beforefieldinit SettingsIgnore
  238. extends [mscorlib]System.Attribute
  239. {
  240. .custom instance void [mscorlib]System.AttributeUsageAttribute::.ctor(valuetype [mscorlib]System.AttributeTargets) = (
  241. 01 00 00 01 00 00 00 00
  242. )
  243. // Methods
  244. // Token: 0x060000B5 RID: 181 RVA: 0x00006FF4 File Offset: 0x000051F4
  245. .method public hidebysig specialname rtspecialname
  246. instance void .ctor () cil managed
  247. {
  248. // Header Size: 1 byte
  249. // Code Size: 8 (0x8) bytes
  250. .maxstack 8
  251.  
  252. /* 0x000051F5 02 */ IL_0000: ldarg.0
  253. /* 0x000051F6 286B01000A */ IL_0001: call instance void [mscorlib]System.Attribute::.ctor()
  254. /* 0x000051FB 00 */ IL_0006: nop
  255. /* 0x000051FC 2A */ IL_0007: ret
  256. } // end of method SettingsIgnore::.ctor
  257.  
  258. } // end of class SettingsIgnore
  259.  
  260.  
  261. // Fields
  262. // Token: 0x04000008 RID: 8
  263. .field private string name
  264. .custom instance void DustDevilFramework.ModSettings/SettingsIgnore::.ctor() = (
  265. 01 00 00 00
  266. )
  267. // Token: 0x04000009 RID: 9
  268. .field private bool '<Enabled>k__BackingField'
  269. .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = (
  270. 01 00 00 00
  271. )
  272. .custom instance void [mscorlib]System.Diagnostics.DebuggerBrowsableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggerBrowsableState) = (
  273. 01 00 00 00 00 00 00 00
  274. )
  275.  
  276. // Methods
  277. // Token: 0x0600006A RID: 106 RVA: 0x0000541E File Offset: 0x0000361E
  278. .method public hidebysig specialname
  279. instance bool get_Enabled () cil managed
  280. {
  281. .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = (
  282. 01 00 00 00
  283. )
  284. // Header Size: 1 byte
  285. // Code Size: 7 (0x7) bytes
  286. .maxstack 8
  287.  
  288. /* 0x0000361F 02 */ IL_0000: ldarg.0
  289. /* 0x00003620 7B09000004 */ IL_0001: ldfld bool DustDevilFramework.ModSettings::'<Enabled>k__BackingField'
  290. /* 0x00003625 2A */ IL_0006: ret
  291. } // end of method ModSettings::get_Enabled
  292.  
  293. // Token: 0x0600006B RID: 107 RVA: 0x00005426 File Offset: 0x00003626
  294. .method public hidebysig specialname
  295. instance void set_Enabled (
  296. bool 'value'
  297. ) cil managed
  298. {
  299. .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = (
  300. 01 00 00 00
  301. )
  302. // Header Size: 1 byte
  303. // Code Size: 8 (0x8) bytes
  304. .maxstack 8
  305.  
  306. /* 0x00003627 02 */ IL_0000: ldarg.0
  307. /* 0x00003628 03 */ IL_0001: ldarg.1
  308. /* 0x00003629 7D09000004 */ IL_0002: stfld bool DustDevilFramework.ModSettings::'<Enabled>k__BackingField'
  309. /* 0x0000362E 2A */ IL_0007: ret
  310. } // end of method ModSettings::set_Enabled
  311.  
  312. // Token: 0x0600006C RID: 108 RVA: 0x0000542F File Offset: 0x0000362F
  313. .method public hidebysig specialname rtspecialname
  314. instance void .ctor (
  315. string name
  316. ) cil managed
  317. {
  318. // Header Size: 1 byte
  319. // Code Size: 23 (0x17) bytes
  320. .maxstack 8
  321.  
  322. /* 0x00003630 02 */ IL_0000: ldarg.0
  323. /* 0x00003631 17 */ IL_0001: ldc.i4.1
  324. /* 0x00003632 7D09000004 */ IL_0002: stfld bool DustDevilFramework.ModSettings::'<Enabled>k__BackingField'
  325. /* 0x00003637 02 */ IL_0007: ldarg.0
  326. /* 0x00003638 28AF00000A */ IL_0008: call instance void [mscorlib]System.Object::.ctor()
  327. /* 0x0000363D 00 */ IL_000D: nop
  328. /* 0x0000363E 00 */ IL_000E: nop
  329. /* 0x0000363F 02 */ IL_000F: ldarg.0
  330. /* 0x00003640 03 */ IL_0010: ldarg.1
  331. /* 0x00003641 7D08000004 */ IL_0011: stfld string DustDevilFramework.ModSettings::name
  332. /* 0x00003646 2A */ IL_0016: ret
  333. } // end of method ModSettings::.ctor
  334.  
  335. // Token: 0x0600006D RID: 109 RVA: 0x00005448 File Offset: 0x00003648
  336. .method public hidebysig
  337. instance void WriteSettings () cil managed
  338. {
  339. // Header Size: 12 bytes
  340. // Code Size: 143 (0x8F) bytes
  341. // LocalVarSig Token: 0x11000019 RID: 25
  342. .maxstack 5
  343. .locals init (
  344. [0] string,
  345. [1] string,
  346. [2] class [mscorlib]System.Reflection.FieldInfo[],
  347. [3] class [mscorlib]System.Reflection.FieldInfo[],
  348. [4] int32,
  349. [5] class [mscorlib]System.Reflection.FieldInfo,
  350. [6] bool
  351. )
  352.  
  353. /* 0x00003654 00 */ IL_0000: nop
  354. /* 0x00003655 02 */ IL_0001: ldarg.0
  355. /* 0x00003656 7B08000004 */ IL_0002: ldfld string DustDevilFramework.ModSettings::name
  356. /* 0x0000365B 72EE260070 */ IL_0007: ldstr "_config.txt"
  357. /* 0x00003660 281C00000A */ IL_000C: call string [mscorlib]System.String::Concat(string, string)
  358. /* 0x00003665 0A */ IL_0011: stloc.0
  359. /* 0x00003666 7206270070 */ IL_0012: ldstr ""
  360. /* 0x0000366B 0B */ IL_0017: stloc.1
  361. /* 0x0000366C 02 */ IL_0018: ldarg.0
  362. /* 0x0000366D 28F800000A */ IL_0019: call instance class [mscorlib]System.Type [mscorlib]System.Object::GetType()
  363. /* 0x00003672 6FF900000A */ IL_001E: callvirt instance class [mscorlib]System.Reflection.FieldInfo[] [mscorlib]System.Type::GetFields()
  364. /* 0x00003677 0C */ IL_0023: stloc.2
  365. /* 0x00003678 00 */ IL_0024: nop
  366. /* 0x00003679 08 */ IL_0025: ldloc.2
  367. /* 0x0000367A 0D */ IL_0026: stloc.3
  368. /* 0x0000367B 16 */ IL_0027: ldc.i4.0
  369. /* 0x0000367C 1304 */ IL_0028: stloc.s V_4
  370. /* 0x0000367E 2B53 */ IL_002A: br.s IL_007F
  371. // loop start (head: IL_007F)
  372. /* 0x00003680 09 */ IL_002C: ldloc.3
  373. /* 0x00003681 1104 */ IL_002D: ldloc.s V_4
  374. /* 0x00003683 9A */ IL_002F: ldelem.ref
  375. /* 0x00003684 1305 */ IL_0030: stloc.s V_5
  376. /* 0x00003686 00 */ IL_0032: nop
  377. /* 0x00003687 1105 */ IL_0033: ldloc.s V_5
  378. /* 0x00003689 6FFA00000A */ IL_0035: callvirt instance bool [mscorlib]System.Reflection.FieldInfo::get_IsPrivate()
  379. /* 0x0000368E 1306 */ IL_003A: stloc.s V_6
  380. /* 0x00003690 1106 */ IL_003C: ldloc.s V_6
  381. /* 0x00003692 2C03 */ IL_003E: brfalse.s IL_0043
  382.  
  383. /* 0x00003694 00 */ IL_0040: nop
  384. /* 0x00003695 2B36 */ IL_0041: br.s IL_0079
  385.  
  386. /* 0x00003697 1B */ IL_0043: ldc.i4.5
  387. /* 0x00003698 8D39000001 */ IL_0044: newarr [mscorlib]System.Object
  388. /* 0x0000369D 25 */ IL_0049: dup
  389. /* 0x0000369E 16 */ IL_004A: ldc.i4.0
  390. /* 0x0000369F 07 */ IL_004B: ldloc.1
  391. /* 0x000036A0 A2 */ IL_004C: stelem.ref
  392. /* 0x000036A1 25 */ IL_004D: dup
  393. /* 0x000036A2 17 */ IL_004E: ldc.i4.1
  394. /* 0x000036A3 1105 */ IL_004F: ldloc.s V_5
  395. /* 0x000036A5 6FFB00000A */ IL_0051: callvirt instance string [mscorlib]System.Reflection.MemberInfo::get_Name()
  396. /* 0x000036AA A2 */ IL_0056: stelem.ref
  397. /* 0x000036AB 25 */ IL_0057: dup
  398. /* 0x000036AC 18 */ IL_0058: ldc.i4.2
  399. /* 0x000036AD 72A2070070 */ IL_0059: ldstr ": "
  400. /* 0x000036B2 A2 */ IL_005E: stelem.ref
  401. /* 0x000036B3 25 */ IL_005F: dup
  402. /* 0x000036B4 19 */ IL_0060: ldc.i4.3
  403. /* 0x000036B5 1105 */ IL_0061: ldloc.s V_5
  404. /* 0x000036B7 02 */ IL_0063: ldarg.0
  405. /* 0x000036B8 6FFC00000A */ IL_0064: callvirt instance object [mscorlib]System.Reflection.FieldInfo::GetValue(object)
  406. /* 0x000036BD A2 */ IL_0069: stelem.ref
  407. /* 0x000036BE 25 */ IL_006A: dup
  408. /* 0x000036BF 1A */ IL_006B: ldc.i4.4
  409. /* 0x000036C0 72761B0070 */ IL_006C: ldstr "\n"
  410. /* 0x000036C5 A2 */ IL_0071: stelem.ref
  411. /* 0x000036C6 284B00000A */ IL_0072: call string [mscorlib]System.String::Concat(object[])
  412. /* 0x000036CB 0B */ IL_0077: stloc.1
  413. /* 0x000036CC 00 */ IL_0078: nop
  414.  
  415. /* 0x000036CD 1104 */ IL_0079: ldloc.s V_4
  416. /* 0x000036CF 17 */ IL_007B: ldc.i4.1
  417. /* 0x000036D0 58 */ IL_007C: add
  418. /* 0x000036D1 1304 */ IL_007D: stloc.s V_4
  419.  
  420. /* 0x000036D3 1104 */ IL_007F: ldloc.s V_4
  421. /* 0x000036D5 09 */ IL_0081: ldloc.3
  422. /* 0x000036D6 8E */ IL_0082: ldlen
  423. /* 0x000036D7 69 */ IL_0083: conv.i4
  424. /* 0x000036D8 32A6 */ IL_0084: blt.s IL_002C
  425. // end loop
  426.  
  427. /* 0x000036DA 06 */ IL_0086: ldloc.0
  428. /* 0x000036DB 07 */ IL_0087: ldloc.1
  429. /* 0x000036DC 28FD00000A */ IL_0088: call void [mscorlib]System.IO.File::WriteAllText(string, string)
  430. /* 0x000036E1 00 */ IL_008D: nop
  431. /* 0x000036E2 2A */ IL_008E: ret
  432. } // end of method ModSettings::WriteSettings
  433.  
  434. // Token: 0x0600006E RID: 110 RVA: 0x000054E4 File Offset: 0x000036E4
  435. .method public hidebysig
  436. instance void ReadSettings () cil managed
  437. {
  438. // Header Size: 12 bytes
  439. // Code Size: 417 (0x1A1) bytes
  440. // LocalVarSig Token: 0x1100001A RID: 26
  441. .maxstack 5
  442. .locals init (
  443. [0] string,
  444. [1] string[],
  445. [2] bool,
  446. [3] string[],
  447. [4] int32,
  448. [5] string,
  449. [6] string[],
  450. [7] string,
  451. [8] bool,
  452. [9] bool,
  453. [10] class [mscorlib]System.Reflection.FieldInfo[],
  454. [11] int32,
  455. [12] class [mscorlib]System.Reflection.FieldInfo,
  456. [13] bool,
  457. [14] class [mscorlib]System.ArgumentException,
  458. [15] class [mscorlib]System.FormatException,
  459. [16] class [mscorlib]System.ArgumentException,
  460. [17] bool
  461. )
  462.  
  463. /* 0x000036F0 00 */ IL_0000: nop
  464. /* 0x000036F1 02 */ IL_0001: ldarg.0
  465. /* 0x000036F2 7B08000004 */ IL_0002: ldfld string DustDevilFramework.ModSettings::name
  466. /* 0x000036F7 72EE260070 */ IL_0007: ldstr "_config.txt"
  467. /* 0x000036FC 281C00000A */ IL_000C: call string [mscorlib]System.String::Concat(string, string)
  468. /* 0x00003701 0A */ IL_0011: stloc.0
  469. /* 0x00003702 06 */ IL_0012: ldloc.0
  470. /* 0x00003703 28FE00000A */ IL_0013: call bool [mscorlib]System.IO.File::Exists(string)
  471. /* 0x00003708 16 */ IL_0018: ldc.i4.0
  472. /* 0x00003709 FE01 */ IL_0019: ceq
  473. /* 0x0000370B 0C */ IL_001B: stloc.2
  474. /* 0x0000370C 08 */ IL_001C: ldloc.2
  475. /* 0x0000370D 2C0D */ IL_001D: brfalse.s IL_002C
  476.  
  477. /* 0x0000370F 00 */ IL_001F: nop
  478. /* 0x00003710 02 */ IL_0020: ldarg.0
  479. /* 0x00003711 286D000006 */ IL_0021: call instance void DustDevilFramework.ModSettings::WriteSettings()
  480. /* 0x00003716 00 */ IL_0026: nop
  481. /* 0x00003717 3874010000 */ IL_0027: br IL_01A0
  482.  
  483. /* 0x0000371C 06 */ IL_002C: ldloc.0
  484. /* 0x0000371D 289500000A */ IL_002D: call string[] [mscorlib]System.IO.File::ReadAllLines(string)
  485. /* 0x00003722 0B */ IL_0032: stloc.1
  486. /* 0x00003723 00 */ IL_0033: nop
  487. /* 0x00003724 07 */ IL_0034: ldloc.1
  488. /* 0x00003725 0D */ IL_0035: stloc.3
  489. /* 0x00003726 16 */ IL_0036: ldc.i4.0
  490. /* 0x00003727 1304 */ IL_0037: stloc.s V_4
  491. /* 0x00003729 3858010000 */ IL_0039: br IL_0196
  492. // loop start (head: IL_0196)
  493. /* 0x0000372E 09 */ IL_003E: ldloc.3
  494. /* 0x0000372F 1104 */ IL_003F: ldloc.s V_4
  495. /* 0x00003731 9A */ IL_0041: ldelem.ref
  496. /* 0x00003732 1305 */ IL_0042: stloc.s V_5
  497. /* 0x00003734 00 */ IL_0044: nop
  498. /* 0x00003735 1105 */ IL_0045: ldloc.s V_5
  499. /* 0x00003737 7208270070 */ IL_0047: ldstr "#"
  500. /* 0x0000373C 6FFF00000A */ IL_004C: callvirt instance bool [mscorlib]System.String::StartsWith(string)
  501. /* 0x00003741 2D11 */ IL_0051: brtrue.s IL_0064
  502.  
  503. /* 0x00003743 1105 */ IL_0053: ldloc.s V_5
  504. /* 0x00003745 72A2070070 */ IL_0055: ldstr ": "
  505. /* 0x0000374A 6F9600000A */ IL_005A: callvirt instance int32 [mscorlib]System.String::IndexOf(string)
  506. /* 0x0000374F 15 */ IL_005F: ldc.i4.m1
  507. /* 0x00003750 FE01 */ IL_0060: ceq
  508. /* 0x00003752 2B01 */ IL_0062: br.s IL_0065
  509.  
  510. /* 0x00003754 17 */ IL_0064: ldc.i4.1
  511.  
  512. /* 0x00003755 1309 */ IL_0065: stloc.s V_9
  513. /* 0x00003757 1109 */ IL_0067: ldloc.s V_9
  514. /* 0x00003759 2C06 */ IL_0069: brfalse.s IL_0071
  515.  
  516. /* 0x0000375B 00 */ IL_006B: nop
  517. /* 0x0000375C 381F010000 */ IL_006C: br IL_0190
  518.  
  519. /* 0x00003761 1105 */ IL_0071: ldloc.s V_5
  520. /* 0x00003763 17 */ IL_0073: ldc.i4.1
  521. /* 0x00003764 8D6B000001 */ IL_0074: newarr [mscorlib]System.String
  522. /* 0x00003769 25 */ IL_0079: dup
  523. /* 0x0000376A 16 */ IL_007A: ldc.i4.0
  524. /* 0x0000376B 72A2070070 */ IL_007B: ldstr ": "
  525. /* 0x00003770 A2 */ IL_0080: stelem.ref
  526. /* 0x00003771 16 */ IL_0081: ldc.i4.0
  527. /* 0x00003772 6F0001000A */ IL_0082: callvirt instance string[] [mscorlib]System.String::Split(string[], valuetype [mscorlib]System.StringSplitOptions)
  528. /* 0x00003777 1306 */ IL_0087: stloc.s V_6
  529. /* 0x00003779 1106 */ IL_0089: ldloc.s V_6
  530. /* 0x0000377B 17 */ IL_008B: ldc.i4.1
  531. /* 0x0000377C 9A */ IL_008C: ldelem.ref
  532. /* 0x0000377D 6F0101000A */ IL_008D: callvirt instance string [mscorlib]System.String::Trim()
  533. /* 0x00003782 1307 */ IL_0092: stloc.s V_7
  534. /* 0x00003784 16 */ IL_0094: ldc.i4.0
  535. /* 0x00003785 1308 */ IL_0095: stloc.s V_8
  536. /* 0x00003787 00 */ IL_0097: nop
  537. /* 0x00003788 02 */ IL_0098: ldarg.0
  538. /* 0x00003789 28F800000A */ IL_0099: call instance class [mscorlib]System.Type [mscorlib]System.Object::GetType()
  539. /* 0x0000378E 6FF900000A */ IL_009E: callvirt instance class [mscorlib]System.Reflection.FieldInfo[] [mscorlib]System.Type::GetFields()
  540. /* 0x00003793 130A */ IL_00A3: stloc.s V_10
  541. /* 0x00003795 16 */ IL_00A5: ldc.i4.0
  542. /* 0x00003796 130B */ IL_00A6: stloc.s V_11
  543. /* 0x00003798 38B8000000 */ IL_00A8: br IL_0165
  544. // loop start (head: IL_0165)
  545. /* 0x0000379D 110A */ IL_00AD: ldloc.s V_10
  546. /* 0x0000379F 110B */ IL_00AF: ldloc.s V_11
  547. /* 0x000037A1 9A */ IL_00B1: ldelem.ref
  548. /* 0x000037A2 130C */ IL_00B2: stloc.s V_12
  549. /* 0x000037A4 00 */ IL_00B4: nop
  550. /* 0x000037A5 110C */ IL_00B5: ldloc.s V_12
  551. /* 0x000037A7 6FFB00000A */ IL_00B7: callvirt instance string [mscorlib]System.Reflection.MemberInfo::get_Name()
  552. /* 0x000037AC 1106 */ IL_00BC: ldloc.s V_6
  553. /* 0x000037AE 16 */ IL_00BE: ldc.i4.0
  554. /* 0x000037AF 9A */ IL_00BF: ldelem.ref
  555. /* 0x000037B0 280201000A */ IL_00C0: call bool [mscorlib]System.String::op_Equality(string, string)
  556. /* 0x000037B5 130D */ IL_00C5: stloc.s V_13
  557. /* 0x000037B7 110D */ IL_00C7: ldloc.s V_13
  558. /* 0x000037B9 3990000000 */ IL_00C9: brfalse IL_015E
  559.  
  560. /* 0x000037BE 00 */ IL_00CE: nop
  561. .try
  562. {
  563. /* 0x000037BF 00 */ IL_00CF: nop
  564. /* 0x000037C0 110C */ IL_00D0: ldloc.s V_12
  565. /* 0x000037C2 02 */ IL_00D2: ldarg.0
  566. /* 0x000037C3 1106 */ IL_00D3: ldloc.s V_6
  567. /* 0x000037C5 17 */ IL_00D5: ldc.i4.1
  568. /* 0x000037C6 9A */ IL_00D6: ldelem.ref
  569. /* 0x000037C7 6F0301000A */ IL_00D7: callvirt instance void [mscorlib]System.Reflection.FieldInfo::SetValue(object, object)
  570. /* 0x000037CC 00 */ IL_00DC: nop
  571. /* 0x000037CD 00 */ IL_00DD: nop
  572. /* 0x000037CE DE5C */ IL_00DE: leave.s IL_013C
  573. } // end .try
  574. catch [mscorlib]System.ArgumentException
  575. {
  576. /* 0x000037D0 130E */ IL_00E0: stloc.s V_14
  577. /* 0x000037D2 00 */ IL_00E2: nop
  578. .try
  579. {
  580. /* 0x000037D3 00 */ IL_00E3: nop
  581. /* 0x000037D4 110C */ IL_00E4: ldloc.s V_12
  582. /* 0x000037D6 02 */ IL_00E6: ldarg.0
  583. /* 0x000037D7 1106 */ IL_00E7: ldloc.s V_6
  584. /* 0x000037D9 17 */ IL_00E9: ldc.i4.1
  585. /* 0x000037DA 9A */ IL_00EA: ldelem.ref
  586. /* 0x000037DB 289100000A */ IL_00EB: call float64 [mscorlib]System.Convert::ToDouble(string)
  587. /* 0x000037E0 6B */ IL_00F0: conv.r4
  588. /* 0x000037E1 8C76000001 */ IL_00F1: box [mscorlib]System.Single
  589. /* 0x000037E6 6F0301000A */ IL_00F6: callvirt instance void [mscorlib]System.Reflection.FieldInfo::SetValue(object, object)
  590. /* 0x000037EB 00 */ IL_00FB: nop
  591. /* 0x000037EC 00 */ IL_00FC: nop
  592. /* 0x000037ED DE3A */ IL_00FD: leave.s IL_0139
  593. } // end .try
  594. catch [mscorlib]System.FormatException
  595. {
  596. /* 0x000037EF 130F */ IL_00FF: stloc.s V_15
  597. /* 0x000037F1 00 */ IL_0101: nop
  598. /* 0x000037F2 110C */ IL_0102: ldloc.s V_12
  599. /* 0x000037F4 02 */ IL_0104: ldarg.0
  600. /* 0x000037F5 1106 */ IL_0105: ldloc.s V_6
  601. /* 0x000037F7 17 */ IL_0107: ldc.i4.1
  602. /* 0x000037F8 9A */ IL_0108: ldelem.ref
  603. /* 0x000037F9 280401000A */ IL_0109: call bool [mscorlib]System.Convert::ToBoolean(string)
  604. /* 0x000037FE 8C71000001 */ IL_010E: box [mscorlib]System.Boolean
  605. /* 0x00003803 6F0301000A */ IL_0113: callvirt instance void [mscorlib]System.Reflection.FieldInfo::SetValue(object, object)
  606. /* 0x00003808 00 */ IL_0118: nop
  607. /* 0x00003809 00 */ IL_0119: nop
  608. /* 0x0000380A DE1D */ IL_011A: leave.s IL_0139
  609. } // end handler
  610. catch [mscorlib]System.ArgumentException
  611. {
  612. /* 0x0000380C 1310 */ IL_011C: stloc.s V_16
  613. /* 0x0000380E 00 */ IL_011E: nop
  614. /* 0x0000380F 110C */ IL_011F: ldloc.s V_12
  615. /* 0x00003811 02 */ IL_0121: ldarg.0
  616. /* 0x00003812 1106 */ IL_0122: ldloc.s V_6
  617. /* 0x00003814 17 */ IL_0124: ldc.i4.1
  618. /* 0x00003815 9A */ IL_0125: ldelem.ref
  619. /* 0x00003816 280401000A */ IL_0126: call bool [mscorlib]System.Convert::ToBoolean(string)
  620. /* 0x0000381B 8C71000001 */ IL_012B: box [mscorlib]System.Boolean
  621. /* 0x00003820 6F0301000A */ IL_0130: callvirt instance void [mscorlib]System.Reflection.FieldInfo::SetValue(object, object)
  622. /* 0x00003825 00 */ IL_0135: nop
  623. /* 0x00003826 00 */ IL_0136: nop
  624. /* 0x00003827 DE00 */ IL_0137: leave.s IL_0139
  625. } // end handler
  626.  
  627. /* 0x00003829 00 */ IL_0139: nop
  628. /* 0x0000382A DE00 */ IL_013A: leave.s IL_013C
  629. } // end handler
  630.  
  631. /* 0x0000382C 720C270070 */ IL_013C: ldstr "Set Field with name: "
  632. /* 0x00003831 1106 */ IL_0141: ldloc.s V_6
  633. /* 0x00003833 16 */ IL_0143: ldc.i4.0
  634. /* 0x00003834 9A */ IL_0144: ldelem.ref
  635. /* 0x00003835 7238270070 */ IL_0145: ldstr " to: "
  636. /* 0x0000383A 1106 */ IL_014A: ldloc.s V_6
  637. /* 0x0000383C 17 */ IL_014C: ldc.i4.1
  638. /* 0x0000383D 9A */ IL_014D: ldelem.ref
  639. /* 0x0000383E 285100000A */ IL_014E: call string [mscorlib]System.String::Concat(string, string, string, string)
  640. /* 0x00003843 28B200000A */ IL_0153: call void [UnityEngine]UnityEngine.Debug::Log(object)
  641. /* 0x00003848 00 */ IL_0158: nop
  642. /* 0x00003849 17 */ IL_0159: ldc.i4.1
  643. /* 0x0000384A 1308 */ IL_015A: stloc.s V_8
  644. /* 0x0000384C 2B12 */ IL_015C: br.s IL_0170
  645.  
  646. /* 0x0000384E 00 */ IL_015E: nop
  647. /* 0x0000384F 110B */ IL_015F: ldloc.s V_11
  648. /* 0x00003851 17 */ IL_0161: ldc.i4.1
  649. /* 0x00003852 58 */ IL_0162: add
  650. /* 0x00003853 130B */ IL_0163: stloc.s V_11
  651.  
  652. /* 0x00003855 110B */ IL_0165: ldloc.s V_11
  653. /* 0x00003857 110A */ IL_0167: ldloc.s V_10
  654. /* 0x00003859 8E */ IL_0169: ldlen
  655. /* 0x0000385A 69 */ IL_016A: conv.i4
  656. /* 0x0000385B 3F3DFFFFFF */ IL_016B: blt IL_00AD
  657. // end loop
  658.  
  659. /* 0x00003860 1108 */ IL_0170: ldloc.s V_8
  660. /* 0x00003862 1311 */ IL_0172: stloc.s V_17
  661. /* 0x00003864 1111 */ IL_0174: ldloc.s V_17
  662. /* 0x00003866 2C03 */ IL_0176: brfalse.s IL_017B
  663.  
  664. /* 0x00003868 00 */ IL_0178: nop
  665. /* 0x00003869 2B15 */ IL_0179: br.s IL_0190
  666.  
  667. /* 0x0000386B 7244270070 */ IL_017B: ldstr "No fields with name matching: "
  668. /* 0x00003870 1106 */ IL_0180: ldloc.s V_6
  669. /* 0x00003872 16 */ IL_0182: ldc.i4.0
  670. /* 0x00003873 9A */ IL_0183: ldelem.ref
  671. /* 0x00003874 281C00000A */ IL_0184: call string [mscorlib]System.String::Concat(string, string)
  672. /* 0x00003879 28B200000A */ IL_0189: call void [UnityEngine]UnityEngine.Debug::Log(object)
  673. /* 0x0000387E 00 */ IL_018E: nop
  674. /* 0x0000387F 00 */ IL_018F: nop
  675.  
  676. /* 0x00003880 1104 */ IL_0190: ldloc.s V_4
  677. /* 0x00003882 17 */ IL_0192: ldc.i4.1
  678. /* 0x00003883 58 */ IL_0193: add
  679. /* 0x00003884 1304 */ IL_0194: stloc.s V_4
  680.  
  681. /* 0x00003886 1104 */ IL_0196: ldloc.s V_4
  682. /* 0x00003888 09 */ IL_0198: ldloc.3
  683. /* 0x00003889 8E */ IL_0199: ldlen
  684. /* 0x0000388A 69 */ IL_019A: conv.i4
  685. /* 0x0000388B 3F9EFEFFFF */ IL_019B: blt IL_003E
  686. // end loop
  687.  
  688. /* 0x00003890 2A */ IL_01A0: ret
  689. } // end of method ModSettings::ReadSettings
  690.  
  691. // Token: 0x0600006F RID: 111 RVA: 0x000056BC File Offset: 0x000038BC
  692. .method public hidebysig
  693. instance bool Exists () cil managed
  694. {
  695. // Header Size: 12 bytes
  696. // Code Size: 27 (0x1B) bytes
  697. // LocalVarSig Token: 0x11000001 RID: 1
  698. .maxstack 2
  699. .locals init (
  700. [0] bool
  701. )
  702.  
  703. /* 0x000038C8 00 */ IL_0000: nop
  704. /* 0x000038C9 02 */ IL_0001: ldarg.0
  705. /* 0x000038CA 7B08000004 */ IL_0002: ldfld string DustDevilFramework.ModSettings::name
  706. /* 0x000038CF 72EE260070 */ IL_0007: ldstr "_config.txt"
  707. /* 0x000038D4 281C00000A */ IL_000C: call string [mscorlib]System.String::Concat(string, string)
  708. /* 0x000038D9 28FE00000A */ IL_0011: call bool [mscorlib]System.IO.File::Exists(string)
  709. /* 0x000038DE 0A */ IL_0016: stloc.0
  710. /* 0x000038DF 2B00 */ IL_0017: br.s IL_0019
  711.  
  712. /* 0x000038E1 06 */ IL_0019: ldloc.0
  713. /* 0x000038E2 2A */ IL_001A: ret
  714. } // end of method ModSettings::Exists
  715.  
  716. // Properties
  717. // Token: 0x17000004 RID: 4
  718. .property instance bool Enabled()
  719. {
  720. // Token: 0x0600006A RID: 106 RVA: 0x0000541E File Offset: 0x0000361E
  721. .get instance bool DustDevilFramework.ModSettings::get_Enabled()
  722. // Token: 0x0600006B RID: 107 RVA: 0x00005426 File Offset: 0x00003626
  723. .set instance void DustDevilFramework.ModSettings::set_Enabled(bool)
  724. }
  725.  
  726. } // end of class DustDevilFramework.ModSettings
Add Comment
Please, Sign In to add comment