Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. Connect:
  2.  
  3. try
  4. {
  5.  
  6. if (PS3.ConnectTarget())
  7. {
  8.  
  9. string Message = "You are now connected with this API : " + PS3.GetCurrentAPIName();
  10. MessageBox.Show(Message, "Connected!", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
  11. else
  12. {
  13.  
  14. string Message = "Impossible to connect :/";
  15. MessageBox.Show(Message, "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);
  16.  
  17. }
  18. }
  19. catch (Exception)
  20. {
  21. MessageBox.Show("Connection Failed!", "Something went wrong!", MessageBoxButtons.OK, MessageBoxIcon.Error);
  22. }
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31. Attach:
  32.  
  33. if (PS3.AttachProcess())
  34. {
  35.  
  36. MessageBox.Show("Current game is attached successfully!", "Success!", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
  37.  
  38.  
  39. }
  40. else
  41. {
  42. MessageBox.Show("No game process found!", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);
  43.  
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement