public static void applycarchange(uint selcar) { byte[] Cartype = PS3.GetBytes(garageoffset + CARTYPEOFFSET + (selcar * GARAGEITEMLENGTH), 4); PS3.SetMemory(garageoffset + CARTYPEOFFSET + (selcar * GARAGEITEMLENGTH), new Byte[] { 0x00, 0x00, 0x00, 0x00 }); System.Threading.Thread.Sleep(50); PS3.SetMemory(garageoffset + CARTYPEOFFSET + (selcar * GARAGEITEMLENGTH), Cartype); }
private void button2_Click(object sender, EventArgs e) //0x51, 0x05, 0x00, 0x00 { if (GameFilename.Text != "" || GameFilename.Text != string.Empty) { if (freememtochange != 0x00000000 && gamevalue != null) { if (!textBox1.Text.StartsWith("0x")) { restore = PS3.GetBytes(Convert.ToUInt32(textBox1.Text, 16), (int)16); } restoreGame = Convert.ToUInt32(textBox1.Text, 16); Dank.ChangeString(freememtochange, gamevalue, textBox2.Text, Convert.ToUInt32(textBox1.Text, 16)); } else { MessageBox.Show("Please Select a Game setting From the drop down menu", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } } else { MessageBox.Show("Please Enter a File name to save as", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public static void Enable() { if (PS3.GetBytes(function_address, 4) == new byte[] { 0xf8, 0x21, 0xff, 0x91 }) { MessageBox.Show("Already Enabled"); } else { PS3.SetMemory(function_address, new byte[] { 0x4e, 0x80, 0, 0x20 }); Thread.Sleep(20); byte[] buffer = new byte[] { 0x7c, 8, 2, 0xa6, 0xf8, 1, 0, 0x80, 60, 0x60, 0x10, 2, 0x81, 0x83, 0, 0x4c, 0x2c, 12, 0, 0, 0x41, 130, 0, 100, 0x80, 0x83, 0, 4, 0x80, 0xa3, 0, 8, 0x80, 0xc3, 0, 12, 0x80, 0xe3, 0, 0x10, 0x81, 3, 0, 20, 0x81, 0x23, 0, 0x18, 0x81, 0x43, 0, 0x1c, 0x81, 0x63, 0, 0x20, 0xc0, 0x23, 0, 0x24, 0xc0, 0x43, 0, 40, 0xc0, 0x63, 0, 0x2c, 0xc0, 0x83, 0, 0x30, 0xc0, 0xa3, 0, 0x34, 0xc0, 0xc3, 0, 0x38, 0xc0, 0xe3, 0, 60, 0xc1, 3, 0, 0x40, 0xc1, 0x23, 0, 0x48, 0x80, 0x63, 0, 0, 0x7d, 0x89, 3, 0xa6, 0x4e, 0x80, 4, 0x21, 60, 0x80, 0x10, 2, 0x38, 160, 0, 0, 0x90, 0xa4, 0, 0x4c, 0x90, 100, 0, 80, 0xe8, 1, 0, 0x80, 0x7c, 8, 3, 0xa6, 0x38, 0x21, 0, 0x70, 0x4e, 0x80, 0, 0x20 }; PS3.SetMemory(function_address + 4, buffer); PS3.SetMemory(0x10020000, new byte[0x2854]); PS3.SetMemory(function_address, new byte[] { 0xf8, 0x21, 0xff, 0x91 }); } }
private static bool buttonPressed(Buttons button) { byte[] buffer = PS3.GetBytes((uint)button, 1); if (buffer[0] == 0x01) { return(true); } return(false); }
public static bool IsEnable() { bool reslut = false; if (PS3.GetBytes(a, 4).SequenceEqual(new byte[] { 0x3D, 0x60, 0x10, 0x05 })) { reslut = true; } return(reslut); }
public static byte[] ReadBytes(uint offset, int length) { return(API.GetBytes(offset, length)); }
public static void Enable() { if (PS3.GetBytes(function_address, 4) == new byte[4] { 248, 33, 255, 145 }) { MessageBox.Show("Already Enabled"); return; } PS3.SetMemory(function_address, new byte[4] { 78, 128, 0, 32 }); Thread.Sleep(20); byte[] buffer = new byte[136] { 124, 8, 2, 166, 248, 1, 0, 128, 60, 96, 16, 2, 129, 131, 0, 76, 44, 12, 0, 0, 65, 130, 0, 100, 128, 131, 0, 4, 128, 163, 0, 8, 128, 195, 0, 12, 128, 227, 0, 16, 129, 3, 0, 20, 129, 35, 0, 24, 129, 67, 0, 28, 129, 99, 0, 32, 192, 35, 0, 36, 192, 67, 0, 40, 192, 99, 0, 44, 192, 131, 0, 48, 192, 163, 0, 52, 192, 195, 0, 56, 192, 227, 0, 60, 193, 3, 0, 64, 193, 35, 0, 72, 128, 99, 0, 0, 125, 137, 3, 166, 78, 128, 4, 33, 60, 128, 16, 2, 56, 160, 0, 0, 144, 164, 0, 76, 144, 100, 0, 80, 232, 1, 0, 128, 124, 8, 3, 166, 56, 33, 0, 112, 78, 128, 0, 32 }; PS3.SetMemory(function_address + 4, buffer); PS3.SetMemory(268566528u, new byte[10324]); PS3.SetMemory(function_address, new byte[4] { 248, 33, 255, 145 }); }
/// <summary> /// Creative mode GUI toggle. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void CreativeMode_Click(object sender, RoutedEventArgs e) { clickSound.Play(); if (mainPS3.GetBytes(creativeModeGUI, 4).SequenceEqual(new byte[] { 0x38, 0x80, 0x00, 0x00 })) { mainPS3.SetMemory(creativeModeGUI, new byte[] { 0x38, 0x80, 0x00, 0x01 }); } else { mainPS3.SetMemory(creativeModeGUI, new byte[] { 0x38, 0x80, 0x00, 0x00 }); } }