Advertisement
Guest User

Codes

a guest
Oct 26th, 2013
2,474
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.11 KB | None | 0 0
  1. //Needed Code
  2. public static uint ProcessID;
  3. public static uint[] processIDs;
  4. public static string snresult;
  5. private static string usage;
  6. public static string Info;
  7. public static PS3TMAPI.ConnectStatus connectStatus;
  8. public static string Status;
  9. public static string MemStatus;
  10.  
  11. //Connect
  12. PS3TMAPI.InitTargetComms();
  13. PS3TMAPI.Connect(0, null);
  14.  
  15. //Attach
  16. PS3TMAPI.GetProcessList(0, out processIDs);
  17. ulong uProcess = processIDs[0];
  18. ProcessID = Convert.ToUInt32(uProcess);
  19. PS3TMAPI.ProcessAttach(0, PS3TMAPI.UnitType.PPU, ProcessID);
  20. PS3TMAPI.ProcessContinue(0, ProcessID);
  21. MessageBox.Show("PS3 and Game Has been Attached");
  22.  
  23. //Set Byte
  24. byte[] NAME = new byte[] { BYTE, BYTE };
  25. PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, OFFSET, NAME);
  26.  
  27. //Set Text
  28. byte[] buffer = Encoding.ASCII.GetBytes(textBox1.Text);
  29. Array.Resize(ref buffer, buffer.Length + 1);
  30. PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x02000934, buffer);
  31.  
  32. //Get Bytes
  33. byte[] GetName = new byte[LENGTH];
  34. PS3TMAPI.ProcessGetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x02000934, ref GetName);[/CODE]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement