Пример #1
0
        // ======================

        public void Enable()
        {
            IsEnabled = true;

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

            ReadSqpackHook.Enable();
            GetResourceSyncHook.Enable();
            GetResourceAsyncHook.Enable();
        }
Пример #2
0
        public void Enable()
        {
            if (IsEnabled)
            {
                return;
            }

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

            IsEnabled = true;
        }
Пример #3
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;
        }