using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using PS3Lib;
namespace RTM_UnboundGodz_DEX___COD4___v1._0._0
{
public partial class Form1 : MetroFramework.Forms.MetroForm
{
public static bool istmapi = true;
private PS3API PS3 = new PS3API();
public Form1()
{
InitializeComponent();
}
private void metroButton1_Click(object sender, EventArgs e)
{
{
{
if (!this.PS3.ConnectTarget(0))
{
MessageBox.Show("Impossible to connect. Check IP ", "Error...", MessageBoxButtons.OK, MessageBoxIcon.Hand);
}
else
{
string str = string.Concat("You are now connected with this API : ", this.PS3.GetCurrentAPIName());
MessageBox.Show(str, "Connected!", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
if (istmapi == true)
{
if (PS3.AttachProcess())
{
MessageBox.Show("Successfully Attached the process!\n\nHope Your Satisfied :3", "Attached!", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
else
MessageBox.Show("Failed to attach the process!\n\nMake sure your ingame!", "Failed...", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
else if (istmapi == false)
{
if (PS3.AttachProcess())
{
MessageBox.Show("Successfully Attached the process!\n\nHope Your Satisfied :3", "Attached", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
else
{
MessageBox.Show("Failed to attach the process!\n\nMake sure your ingame!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
private void metroTextBox1_Click(object sender, EventArgs e)
{
}