コード例 #1
0
        // ======================

        public void Enable()
        {
            IsEnabled = true;

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

            ReadSqpackHook.Enable();
            GetResourceSyncHook.Enable();
            GetResourceAsyncHook.Enable();
        }
コード例 #2
0
ファイル: ResourceLoader.cs プロジェクト: goaaats/Penumbra
        public void Enable()
        {
            if (IsEnabled)
            {
                return;
            }

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

            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;
        }