Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using JRPC_Client;
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Diagnostics;
- using System.Drawing;
- using System.Globalization;
- using System.Linq;
- using System.Text;
- using System.Threading;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Windows.Forms;
- using XDevkit;
- namespace Destiny_Ammo_Editor
- {
- public partial class Form1 : Form
- {
- IXboxConsole Console;
- public Form1()
- {
- InitializeComponent();
- }
- private void connectToolStripMenuItem1_Click(object sender, EventArgs e)
- {
- try
- {
- if (Console.Connect(out Console))
- MessageBox.Show("Successfully connected your console!");
- else
- MessageBox.Show("Unable to connect to your console!");
- }
- catch (Exception ex)
- {
- MessageBox.Show("Unable to connect to your console!\n\n" + ex);
- }
- }
- private void downloadToolStripMenuItem1_Click(object sender, EventArgs e)
- {
- Process.Start("http://www.se7ensins.com/forums/threads/jrpcv2-ultimate-remote-procedure-call-release.983655/");
- }
- private void aboutToolStripMenuItem2_Click(object sender, EventArgs e)
- {
- MessageBox.Show("JRPC\n- Created by Xx jAmes t xX\n- Version 2.0.0.0");
- }
- private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
- {
- MessageBox.Show("This game is over hyped. Get over yourselves.\nHalo > Destiny\n\n- XeClutch");
- }
- private void button1_Click(object sender, EventArgs e)
- {
- uint offset = 0xD9800000;
- string str = "";
- string cur = "";
- byte[] buf = BitConverter.GetBytes((int)numericUpDown1.Value);
- Array.Reverse(buf);
- foreach (byte b in buf)
- cur += b.ToString("X2");
- buf = BitConverter.GetBytes((int)numericUpDown2.Value);
- Array.Reverse(buf);
- foreach (byte b in buf)
- cur += b.ToString("X2");
- byte[] mem = Console.GetMemory(offset, 0xFFFFFF);
- for (int i = 0; i < 0xFFFFF7; i++)
- {
- for (int x = 0; i < 8; i++)
- str += mem[x].ToString("X2");
- if (str == cur)
- {
- offset += (uint)i;
- Console.WriteInt32(offset, (int)numericUpDown3.Value);
- Console.WriteInt32(offset + 4, (int)numericUpDown4.Value);
- }
- else
- str = "";
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement