Example #1
0
        /// <summary>
        /// Handle PS3 RTE connection
        /// </summary>
        private void pS3CCAPIToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (PS3_CCAPI_CONNECTED)
            {
                PS3.DisconnectTarget();
                connectionToolStripMenuItem.Text = "Connection";
                PS3_CCAPI_CONNECTED = false;
                attachProcessToolStripMenuItem.Enabled     = false;
                initializeGuarderToolStripMenuItem.Enabled = false;
                enableForceHostToolStripMenuItem.Enabled   = false;
                MessageBox.Show("You are now disconnected from PS3 CCAPI", "MW3Guard", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
            }
            else if (PS3.ConnectTarget())
            {
                string Message = "You are now connected with this API : " + PS3.GetCurrentAPIName();
                MessageBox.Show(Message, "MW3Guard", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);

                connectionToolStripMenuItem.Text = "Disconnect";
                PS3_CCAPI_CONNECTED = true;
                attachProcessToolStripMenuItem.Enabled     = true;
                initializeGuarderToolStripMenuItem.Enabled = false;
            }
            else
            {
                string Message = "Impossible to connect :/";
                MessageBox.Show(Message, "MW3Guard", MessageBoxButtons.OK, MessageBoxIcon.Error);
                PS3_CCAPI_CONNECTED = false;
                connectionToolStripMenuItem.Text           = "Connection";
                attachProcessToolStripMenuItem.Enabled     = false;
                initializeGuarderToolStripMenuItem.Enabled = false;
            }
        }
Example #2
0
        private void flatButton2_Click(object sender, EventArgs e)
        {
            string API   = PS3.GetCurrentAPIName();
            string Check = flatTextBox1.Text;

            if (PS3.AttachProcess())
            {
                int MsgC = (int)MessageBox.Show("Black Ops 2 Has been attached", "Success", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
                if (API == "Control Console")
                {
                    PS3.CCAPI.RingBuzzer(CCAPI.BuzzerMode.Double);
                    PS3.CCAPI.Notify(CCAPI.NotifyIcon.INFO, "Thanks For Using My Tool <3");
                }
                flatStatusBar1.Text = "Welcome To The Tool - " + PS3.Extension.ReadString(0x26c067f);
                nameBox.Text        = PS3.Extension.ReadString(0x26c067f);
                storedName          = nameBox.Text;
                PS3.SetMemory(0x8E3590, new byte[] { 0x94, 50, 0, 0, 0, 0, 0, 32, 32, 32, 32, 32, 32 });
                PS3.SetMemory(0x37FEC, new byte[] { 0x60, 0x00, 0x00, 0x00 });
                if (Check == "Custom Text")
                {
                    WriteFPS("TehMerkMods Menu");
                }
                else
                {
                    WriteFPS(Check);
                }
                CallInjector();
            }
            else
            {
                int MsgE = (int)MessageBox.Show("No Game Process Found", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
            }
        }
Example #3
0
 private void btnConnect_Click(object sender, EventArgs e)
 {
     if (PS3.ConnectTarget())
     {
         EnableOthersBox(true);
         string Message = "You are now connected with this API : " + PS3.GetCurrentAPIName();
         MessageBox.Show(Message, "Connected!", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
     }
     else
     {
         EnableOthersBox(false);
         string Message = "Impossible to connect :/";
         MessageBox.Show(Message, "Error...", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Example #4
0
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         if (PS3.ConnectTarget(0))
         {
             PS3.AttachProcess();
             MessageBox.Show($"Connected and Attached with {PS3.GetCurrentAPIName()} ");
         }
         else
         {
             MessageBox.Show("Could not Connect/attach");
         }
     }
     catch { MessageBox.Show(e.ToString()); }
 }