/// <summary> /// Connect to PS3 console /// </summary> private void ConnectPS3() { try { if (PS3.ConnectTarget()) { if (PS3.AttachProcess()) { IsConsoleConnected = true; SetStatusConsole(PS3.GetConsoleName()); ConsoleType = "PS3"; EnableConsoleActions(); MenuItemConnectPS3CCAPI.Visible = false; MenuItemConnectPS3TMAPI.Visible = false; MenuItemConnectPS3Disconnect.Visible = true; MenuItemConnectXBOX.Enabled = false; if (!IsInGame()) { NotifyMessagePS3("^2Hooked to AtomicX", "Successfully connected and attached!", "party_ready"); } XtraMessageBox.Show(this, "Connected and attached to Black Ops II", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { XtraMessageBox.Show(this, "Unable to attach to game process.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } } else { XtraMessageBox.Show(this, "Unable to connect to console.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } } catch (Exception ex) { XtraMessageBox.Show(this, "Unable to connect to console.\n\nError Message:\n" + ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }