示例#1
0
        public static void Bootstrap()
        {
            if (!IsAprilFools())
            {
                return;
            }

            if (bootstrapped)
            {
                return;
            }

            ReplaceLogo();

            RedirectionHelper.RedirectCalls
            (
                typeof(WorkshopAdPanel).GetMethod("OnQueryCompleted",
                                                  BindingFlags.Instance | BindingFlags.NonPublic),
                typeof(AprilFools).GetMethod("WorkshopAdPanelOnQueryCompleted",
                                             BindingFlags.Instance | BindingFlags.NonPublic)
            );

            bootstrapped = true;
        }