Example of Capstone for both libxenia and the UI. Going to shuffle around.
This commit is contained in:
@@ -113,7 +113,17 @@ namespace Xenia.Debug {
|
||||
DisasmMachineCode = DisasmMachineCode.Replace("\n", "\r\n");
|
||||
}
|
||||
|
||||
DisassembleX64();
|
||||
|
||||
OnChanged();
|
||||
}
|
||||
|
||||
private static Native.X64Disassembler disassembler = new Native.X64Disassembler();
|
||||
|
||||
private void DisassembleX64() {
|
||||
var str = disassembler.GenerateString(IntPtr.Zero, 0);
|
||||
System.Diagnostics.Debug.WriteLine(str);
|
||||
disassembler.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -125,6 +125,12 @@
|
||||
<Compile Include="Utilities\FileMapping.cs" />
|
||||
<Compile Include="Utilities\TaskExtensions.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Xenia.Debug.Native\Xenia.Debug.Native.vcxproj">
|
||||
<Project>{5ae85790-f2ea-4077-8953-825e9c0aade9}</Project>
|
||||
<Name>Xenia.Debug.Native</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
|
||||
Reference in New Issue
Block a user