错误可以在代码下面找到!
基本代码:
XDevkit.IXboxDebugTarget.GetMemory(uint, uint, byte[], out uint)
我有什么新的:
uint num1;
uint num2;
uint num4;
num1 = Convert.ToUInt32(textBox2.Text);
num2 = Convert.ToUInt32(textBox3.Text);
num4 = Convert.ToUInt32(textBox5.Text);
byte[] num3;
num3 = BitConverter.GetBytes(Convert.ToInt32(textBox3.Text));
IXboxManager xbm = new XboxManager();
IXboxConsole xbc = xbm.OpenConsole("textBox1.Text"); //Or Console Name in ""
IXboxDebugTarget xdt = xbc.DebugTarget;
xdt.ConnectAsDebugger("XeDevMemPatcher", XboxDebugConnectFlags.Force); // this isn't always needed
IXboxDebugTarget.GetMemory(num1, num2, num3, out num4);
}
错误
1) 当前上下文中不存在名称“Encoding”
2) 'XDevkit.IXboxDebugTarget.GetMemory(uint, uint, byte[], out uint)' 的最佳重载方法匹配有一些无效参数
3) 参数 3:无法从 'byte' 转换为 'byte[]'
来源:
使用系统;使用 System.Windows.Forms;
命名空间 XDevkit { 公共部分类 Form1 : Form { 公共 Form1() { InitializeComponent(); }
private void button1_Click(object sender, EventArgs e)
{
IXboxManager xbm = new XboxManager();
//IXboxConsole xbc = xbm.OpenConsole(xbm.DefaultConsole); // dev
IXboxConsole xbc = xbm.OpenConsole("textBox1.Text");
IXboxDebugTarget xdt = xbc.DebugTarget;
xdt.ConnectAsDebugger("XeDevMemPatcher", XboxDebugConnectFlags.Force);
}
private void button2_Click(object sender, EventArgs e)
{
uint num1 = Convert.ToUInt32(textBox2.Text);
uint num2 = Convert.ToUInt32(textBox3.Text);
byte[] num3 = Encoding.ASCII.GetBytes(textBox4.Text);
uint num4 = Convert.ToUInt32(textBox5.Text);
int num5 = Convert.ToInt32(textBox4.Text);
// ...
if (num3.Length > 1)
{
IXboxManager xbm = new XboxManager();
IXboxConsole xbc = xbm.OpenConsole("textBox1.Text");
IXboxDebugTarget xdt = xbc.DebugTarget;
xdt.ConnectAsDebugger("XeDevMemPatcher", XboxDebugConnectFlags.Force);
IXboxDebugTarget.GetMemory(num1, num2, num3, out num4);
}
private void button3_Click(object sender, EventArgs e)
{
string a;
a = "textBox6.Text";
IXboxManager xbm = new XboxManager();
IXboxConsole xbc = xbm.OpenConsole(textBox1.Text);
IXboxConsole.ScreenShot(a)
}
}
}