public void EnableHooks() { if (HooksEnabled) { return; } HooksEnabled = true; ReadSqPackHook.Enable(); GetResourceSyncHook.Enable(); GetResourceAsyncHook.Enable(); }
// ====================== public void Enable() { IsEnabled = true; ReadSqpackHook.Activate(); GetResourceSyncHook.Activate(); GetResourceAsyncHook.Activate(); ReadSqpackHook.Enable(); GetResourceSyncHook.Enable(); GetResourceAsyncHook.Enable(); }
public void Enable() { if (IsEnabled) { return; } ReadSqpackHook.Enable(); GetResourceSyncHook.Enable(); GetResourceAsyncHook.Enable(); IsEnabled = true; }
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; }