Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.25 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. using PS3Lib;
  11.  
  12. namespace BF4_Jecou_RTM_Tool
  13. {
  14. public partial class Form1 : Form
  15. {
  16. public Form1()
  17. {
  18. InitializeComponent();
  19. }
  20.  
  21. private void Form1_Load(object sender, EventArgs e)
  22. {
  23. public static PS3API PS3 = new PS3API();
  24. public static PS3API PS32 = new PS3API();
  25. public static PS3API PS31 = new PS3API();
  26. public static CCAPI CCAPI = new CCAPI();
  27. public static string userName;
  28. public static string userClan;
  29.  
  30. private void deimosButton1_Click(object sender, EventArgs e)
  31. {
  32. PS3.DisconnectTarget();
  33. MessageBox.Show("PS3 Disconnected");
  34. ATTATCHLBL.Text = "Not Attached";
  35. connectstuslbl2.Text = "Not Connected";
  36. }
  37.  
  38. private void deimosRadioButton1_Click(object sender, EventArgs e)
  39. {
  40. PS3.ChangeAPI(SelectAPI.ControlConsole);
  41. connectButton.Enabled = true;
  42. }
  43. private void deimosGroupbox1_Click(object sender, EventArgs e)
  44. {
  45.  
  46. }
  47.  
  48. private void deimosRadioButton2_Click(object sender, EventArgs e)
  49. {
  50. PS3.ChangeAPI(SelectAPI.TargetManager);
  51. connecttButton.Enabled = true;
  52. }
  53.  
  54. private void deimosButton2_Click(object sender, EventArgs e)
  55. {
  56. try
  57.  
  58. {
  59. if (!PS3.ConnectTarget(0))
  60. {
  61. connectstuslbl2.Text = "Failed";
  62. connectstuslbl2.ForeColor = Color.Red;
  63. return;
  64. }
  65.  
  66. if (PS3.GetCurrentAPI() == SelectAPI.ControlConsole)
  67. {
  68. MessageBox.Show("Successfully Connected To PS3", "Success", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
  69. connectstuslbl2.Text = "Connected";
  70. connectstuslbl2.ForeColor = Color.Green;
  71. PS3.CCAPI.RingBuzzer(CCAPI.BuzzerMode.Single);
  72. PS3.CCAPI.Notify(CCAPI.NotifyIcon.TROPHY4, "Successfully Connected To BF4 - Jecou RTM Tool!");
  73. attachButton.Enabled = true;
  74. disconnectButton.Enabled = false;
  75.  
  76. }
  77. else if (PS3.GetCurrentAPI() == SelectAPI.TargetManager)
  78. {
  79. MessageBox.Show("Connected", "Success", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
  80. connectstuslbl2.Text = "Connected";
  81. connectstuslbl2.ForeColor = Color.Green;
  82. attachButton.Enabled = true;
  83. disconnectButton.Enabled = false;
  84.  
  85. }
  86.  
  87. }
  88. catch
  89. {
  90.  
  91. MessageBox.Show("Something is wrong please try again :/", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
  92. connectstuslbl2.Text = "Failed";
  93. connectstuslbl2.ForeColor = Color.Red;
  94. }
  95. }
  96.  
  97. private void deimosButton3_Click(object sender, EventArgs e)
  98. {
  99. try
  100. {
  101. if (!PS3.AttachProcess())//what this does is runs a error code if theres nothing there, so instead of it saying "Connected" like some tools do it will say ERROR.
  102. {
  103. ATTATCHLBL.Text = "Failed";
  104. ATTATCHLBL.ForeColor = Color.Red;
  105. return;
  106. }
  107. if (PS3.GetCurrentAPI() == SelectAPI.ControlConsole)
  108. {
  109. PS3.CCAPI.Notify(CCAPI.NotifyIcon.TROPHY4, "Successfully Attached To BF4 - Jecou RTM Tool!");
  110. PS3.CCAPI.RingBuzzer(CCAPI.BuzzerMode.Double);
  111. PS3.CCAPI.Notify(CCAPI.NotifyIcon.DIALOGSHADOW, "FULL ACCESS GRANTED");
  112. this.timer1.Enabled = true;
  113. }
  114. ATTATCHLBL.Text = "Attached";
  115. ATTATCHLBL.ForeColor = Color.Green;
  116. MessageBox.Show("Successfully Attached To BF4 - Jecou RTM Tool!", "Success", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
  117. disconnectButton.Enabled = true;
  118. }
  119. catch
  120. {
  121. ATTATCHLBL.Text = "Failed To Attach";
  122. ATTATCHLBL.ForeColor = Color.Red;
  123. PS3.CCAPI.Notify(CCAPI.NotifyIcon.TROPHY4, "Access to BF4 - Jecou RTM Tool denied:/");
  124. private void getinfo()
  125. {
  126. string firmwareType = PS3.CCAPI.GetFirmwareType();
  127. string firmwareVersion = PS3.CCAPI.GetFirmwareVersion();
  128. string temperatureCell = CCAPI.GetTemperatureCELL();
  129. string temperatureRsx = CCAPI.GetTemperatureRSX();
  130. this.label38.Text = temperatureCell;
  131. this.label39.Text = temperatureRsx;
  132. this.label34.Text = firmwareVersion;
  133. this.label33.Text = firmwareType;
  134. this.Refresh();
  135. }
  136. }
  137. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement