Exemplo n.º 1
0
        private void button4_Click(object sender, EventArgs e)
        {
            Button btn = sender as Button;

            try
            {
                switch (btn.Text)
                {
                case "Attach":
                    PS4.AttachDebugger(PID, DebuggerInterruptCallback);
                    if (PS4.IsConnected)
                    {
                        PS4.ProcessResume();
                    }
                    atch.Text = "Detach";
                    this.Size = new Size(1415, 505);
                    PS4.Notify(222, "Cain532 is watching your game");
                    gameInfo   = new GameInfo(PS4);
                    this.Text += $"  ||  ◄{gameInfo.titleID} v{gameInfo.version}  '{gameInfo.username}'  ►";
                    break;

                case "Detach":
                    PS4.DetachDebugger();
                    this.Size = new Size(300, 120);
                    PS4.Notify(222, "Your game is hidden from Cain532");
                    atch.Text = "Attach";
                    this.Text = "PS4 Debugger - Cain532";
                    break;
                }
            }
            catch (Exception ex) {
                //MessageBox.Show(ex.Message);
            }
        }