Advertisement
Sc2ad

dnSpy Hook Method IL

Mar 27th, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.73 KB | None | 0 0
  1. // Token: 0x06000025 RID: 37 RVA: 0x00002FC4 File Offset: 0x000011C4
  2. .method private hidebysig
  3. instance void InputManager_TriggerClickDownEvent (
  4. class ['HOOKS-Assembly-CSharp']On.InputManager/orig_TriggerClickDownEvent orig,
  5. class ['Assembly-CSharp']InputManager self,
  6. string eventName,
  7. class [mscorlib]System.Collections.Generic.List`1<class ['Assembly-CSharp-firstpass']ClickDownInfo>& clickInfosContainer
  8. ) cil managed
  9. {
  10. // Header Size: 12 bytes
  11. // Code Size: 51 (0x33) bytes
  12. // LocalVarSig Token: 0x11000008 RID: 8
  13. .maxstack 4
  14. .locals init (
  15. [0] bool
  16. )
  17.  
  18. /* 0x000011D0 00 */ IL_0000: nop
  19. /* 0x000011D1 02 */ IL_0001: ldarg.0
  20. /* 0x000011D2 17 */ IL_0002: ldc.i4.1
  21. /* 0x000011D3 2833000006 */ IL_0003: call instance bool TASTools_Mod.TASToolsMod::HasFlag(valuetype TASTools_Mod.State)
  22. /* 0x000011D8 2C0C */ IL_0008: brfalse.s IL_0016
  23.  
  24. /* 0x000011DA 02 */ IL_000A: ldarg.0
  25. /* 0x000011DB 18 */ IL_000B: ldc.i4.2
  26. /* 0x000011DC 2833000006 */ IL_000C: call instance bool TASTools_Mod.TASToolsMod::HasFlag(valuetype TASTools_Mod.State)
  27. /* 0x000011E1 16 */ IL_0011: ldc.i4.0
  28. /* 0x000011E2 FE01 */ IL_0012: ceq
  29. /* 0x000011E4 2B01 */ IL_0014: br.s IL_0017
  30.  
  31. /* 0x000011E6 16 */ IL_0016: ldc.i4.0
  32.  
  33. /* 0x000011E7 0A */ IL_0017: stloc.0
  34. /* 0x000011E8 06 */ IL_0018: ldloc.0
  35. /* 0x000011E9 2C0C */ IL_0019: brfalse.s IL_0027
  36.  
  37. /* 0x000011EB 00 */ IL_001B: nop
  38. /* 0x000011EC 04 */ IL_001C: ldarg.2
  39. /* 0x000011ED 05 */ IL_001D: ldarg.3
  40. /* 0x000011EE 0E04 */ IL_001E: ldarg.s clickInfosContainer
  41. /* 0x000011F0 2801000006 */ IL_0020: call void TASTools_Mod.InputManagerHooks::TriggerClickDownEvent(class ['Assembly-CSharp']InputManager, string, class [mscorlib]System.Collections.Generic.List`1<class ['Assembly-CSharp-firstpass']ClickDownInfo>&)
  42. /* 0x000011F5 00 */ IL_0025: nop
  43. /* 0x000011F6 00 */ IL_0026: nop
  44.  
  45. /* 0x000011F7 03 */ IL_0027: ldarg.1
  46. /* 0x000011F8 04 */ IL_0028: ldarg.2
  47. /* 0x000011F9 05 */ IL_0029: ldarg.3
  48. /* 0x000011FA 0E04 */ IL_002A: ldarg.s clickInfosContainer
  49. /* 0x000011FC 6F8400000A */ IL_002C: callvirt instance void ['HOOKS-Assembly-CSharp']On.InputManager/orig_TriggerClickDownEvent::Invoke(class ['Assembly-CSharp']InputManager, string, class [mscorlib]System.Collections.Generic.List`1<class ['Assembly-CSharp-firstpass']ClickDownInfo>&)
  50. /* 0x00001201 00 */ IL_0031: nop
  51. /* 0x00001202 2A */ IL_0032: ret
  52. } // end of method TASToolsMod::InputManager_TriggerClickDownEvent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement