/// <summary> /// This method will be called for every frame captured by D3DDetour /// </summary> /// <param name="sender"></param> /// <param name="lse"></param> /// private void OnD3DFrame(object sender, EventArgs e) { lock (_frameLock) { if (LOLClientEnabled) { using (LOLClient _client = new LOLClient()) { Client = _client; if (OnFrame != null) { OnFrame(this, new EventArgs()); } //Client = null; } } else { OnFrame(this, new EventArgs()); } } }
/// <summary> /// This method will be called for every frame captured by D3DDetour /// </summary> /// <param name="sender"></param> /// <param name="lse"></param> /// private void OnD3DFrame(object sender, EventArgs e) { lock (_frameLock) { if (LOLClientEnabled) { using (LOLClient _client = new LOLClient()) { Client = _client; if (OnFrame != null) OnFrame(this, new EventArgs()); //Client = null; } } else { OnFrame(this, new EventArgs()); } } }