Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Needed Code
- public static uint ProcessID;
- public static uint[] processIDs;
- public static string snresult;
- private static string usage;
- public static string Info;
- public static PS3TMAPI.ConnectStatus connectStatus;
- public static string Status;
- public static string MemStatus;
- //Connect
- PS3TMAPI.InitTargetComms();
- PS3TMAPI.Connect(0, null);
- //Attach
- PS3TMAPI.GetProcessList(0, out processIDs);
- ulong uProcess = processIDs[0];
- ProcessID = Convert.ToUInt32(uProcess);
- PS3TMAPI.ProcessAttach(0, PS3TMAPI.UnitType.PPU, ProcessID);
- PS3TMAPI.ProcessContinue(0, ProcessID);
- MessageBox.Show("PS3 and Game Has been Attached");
- //Set Byte
- byte[] NAME = new byte[] { BYTE, BYTE };
- PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, OFFSET, NAME);
- //Set Text
- byte[] buffer = Encoding.ASCII.GetBytes(textBox1.Text);
- Array.Resize(ref buffer, buffer.Length + 1);
- PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x02000934, buffer);
- //Get Bytes
- byte[] GetName = new byte[LENGTH];
- PS3TMAPI.ProcessGetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x02000934, ref GetName);[/CODE]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement