Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 System.Threading;
- using PS3Lib;
- namespace xpartygo
- {
- public partial class Form1 : Form
- {
- private PS3API PS3 = new PS3API();
- public Form1()
- {
- InitializeComponent();
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- }
- private void button1_Click(object sender, EventArgs e)
- {
- try
- {
- PS3.ConnectTarget();
- PS3.AttachProcess();
- MessageBox.Show("Connected!");
- button3.Enabled = true;
- button2.Enabled = true;
- PS3.Extension.WriteUInt32(0x3DBD54, 0x480000D8); // Disable Cheat Protection
- }
- catch
- {
- MessageBox.Show("Failed to connect!");
- }
- }
- private void radioButton1_CheckedChanged(object sender, EventArgs e)
- {
- PS3.ChangeAPI(SelectAPI.TargetManager);
- }
- private void radioButton2_CheckedChanged(object sender, EventArgs e)
- {
- PS3.ChangeAPI(SelectAPI.ControlConsole);
- }
- public void Cbuf_AddText(string text)
- {
- PS3.Extension.WriteString(0x10075000, text); // Write Command Input
- PS3.SetMemory(0x37F80, new byte[] { 0xF8, 0x21, 0xFF, 0x91, 0x7C, 0x08, 0x02, 0xA6, 0xF8, 0x01, 0x00, 0x80, 0x38, 0x60, 0x00, 0x00, 0x3C, 0x80, 0x10, 0x07, 0x30, 0x84, 0x50, 0x00, 0x48, 0x2D, 0xBC, 0x81, 0xE8, 0x01, 0x00, 0x80, 0x7C, 0x08, 0x03, 0xA6, 0x38, 0x21, 0x00, 0x70, 0x4E, 0x80, 0x00, 0x20 }); // Cbuf_AddText RPC
- Thread.Sleep(100);
- PS3.SetMemory(0x37F80, new byte[] { 0xF8, 0x21, 0xFE, 0xD1, 0x7C, 0x08, 0x02, 0xA6, 0xF8, 0x01, 0x01, 0x40, 0xDB, 0x21, 0x00, 0xF8, 0xDB, 0x41, 0x01, 0x00, 0xDB, 0x61, 0x01, 0x08, 0xDB, 0x81, 0x01, 0x10, 0xDB, 0xA1, 0x01, 0x18, 0xDB, 0xC1, 0x01, 0x20, 0xDB, 0xE1, 0x01, 0x28, 0xFB, 0xE1, 0x00, 0xF0 }); // Restore CG_DrawFPS Function
- }
- private void button3_Click(object sender, EventArgs e)
- {
- Cbuf_AddText("party_connectToOthers 0;partyMigrate_disabled 1;party_mergingEnabled 0;xpartygo");
- MessageBox.Show("Has been executed!", "xpartygo", MessageBoxButtons.OK, MessageBoxIcon.Information);
- }
- private void button2_Click(object sender, EventArgs e)
- {
- Cbuf_AddText("reset party_connectToOthers;partyMigrate_disabled;party_mergingEnabled");
- MessageBox.Show("Has been executed!", "Dvar Reset", MessageBoxButtons.OK, MessageBoxIcon.Information);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement