예제 #1
0
    public void EnableHooks()
    {
        if (HooksEnabled)
        {
            return;
        }

        HooksEnabled = true;
        ReadSqPackHook.Enable();
        GetResourceSyncHook.Enable();
        GetResourceAsyncHook.Enable();
    }
예제 #2
0
        // ======================

        public void Enable()
        {
            IsEnabled = true;

            ReadSqpackHook.Activate();
            GetResourceSyncHook.Activate();
            GetResourceAsyncHook.Activate();

            ReadSqpackHook.Enable();
            GetResourceSyncHook.Enable();
            GetResourceAsyncHook.Enable();
        }
예제 #3
0
        public void Enable()
        {
            if (IsEnabled)
            {
                return;
            }

            ReadSqpackHook.Enable();
            GetResourceSyncHook.Enable();
            GetResourceAsyncHook.Enable();

            IsEnabled = true;
        }
예제 #4
0
        public void Enable()
        {
            if (IsEnabled)
            {
                return;
            }

            if (ReadSqpackHook == null || GetResourceSyncHook == null || GetResourceAsyncHook == null)
            {
                PluginLog.Error("[GetResourceHandler] Could not activate hooks because at least one was not set.");
                return;
            }

            ReadSqpackHook.Activate();
            GetResourceSyncHook.Activate();
            GetResourceAsyncHook.Activate();

            ReadSqpackHook.Enable();
            GetResourceSyncHook.Enable();
            GetResourceAsyncHook.Enable();

            IsEnabled = true;
        }