private void btnFollowers_Click(object sender, EventArgs e) { if (attached) { ulong pointer = PS4.ReadUInt64(processID, processEntry + 0x5F45460); byte[] followers = BitConverter.GetBytes((int)numFollowers.Value); if (pointer > 0) { PS4.WriteMemory(processID, pointer + 0x6E0, followers); } else { } } }
public static ulong GetPointerAdress(string pointer, int pid) { PS4 = main.PS4; try { ulong currentAddress = 0; currentAddress = PS4.ReadUInt64(pid, PointerBase(pointer, pid)); for (int i = 0; i < PointerLevels(pointer).Length - 1; i++) { currentAddress = PS4.ReadUInt64(pid, currentAddress + PointerLevels(pointer)[i]); } currentAddress = currentAddress + PointerLevels(pointer)[PointerLevels(pointer).Length - 1]; return(currentAddress); } catch { return(0); } }