Пример #1
0
        // Token: 0x06000006 RID: 6 RVA: 0x000023E4 File Offset: 0x000005E4
        public static void InjectStuff()
        {
            MethodInfo method  = typeof(ApparelGraphicRecordGetter).GetMethod("TryGetGraphicApparel", BindingFlags.Static | BindingFlags.Public);
            MethodInfo method2 = typeof(ApparelGraphicRecordGetter).GetMethod("TryGetGraphicApparel", BindingFlags.Static | BindingFlags.NonPublic);
            bool       flag    = !Detours.TryDetourFromTo(method, method2);

            if (flag)
            {
                //Log.Error(InjectorThingy.AssemblyName + " failed to get injected properly.", false);
            }
        }
Пример #2
0
        // Token: 0x06000006 RID: 6 RVA: 0x000023E4 File Offset: 0x000005E4
        public static void InjectStuff()
        {
            return;

            var method = typeof(ApparelGraphicRecordGetter).GetMethod("TryGetGraphicApparel",
                                                                      BindingFlags.Static | BindingFlags.Public);
            var method2 = typeof(ApparelGraphicRecordGetter).GetMethod("TryGetGraphicApparel",
                                                                       BindingFlags.Static | BindingFlags.NonPublic);

            if (!Detours.TryDetourFromTo(method, method2))
            {
                Log.Error(AssemblyName + " failed to get injected properly.");
            }
        }