Exemplo n.º 1
0
 public void LoadTest()
 {
     var Memory = new Xbox360MemoryNormal();
     var Xex = new Xex();
     Xex.LoadHeader(File.OpenRead("../../../TestInput/test.xex"));
     Xex.Pe.LoadSectionsTo(new Xbox360MemoryStream(Memory));
     Console.WriteLine(Xex.Header.ToStringDefault());
 }
Exemplo n.º 2
0
 static void Test1()
 {
     var Memory = new Xbox360MemoryNormal();
     var Xex = new Xex();
     var CpuThreadState = new CpuThreadState();
     Xex.LoadHeader(File.OpenRead("../../../TestInput/test.xex"));
     Xex.Pe.LoadSectionsTo(new Xbox360MemoryStream(Memory));
     CpuThreadState.pc = Xex.Pe.PeOptionalHeader.AddressOfEntryPoint + Xex.Pe.PeOptionalHeader.ImageBase;
     Console.WriteLine("{0:X}: {1:X}", CpuThreadState.pc, Memory.Read4(CpuThreadState.pc));
 }