mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-10-18 15:15:00 +00:00

Moved the reply functionality into the command processor, move the main debugger thread into a dedicated class part, and more
29 lines
1.1 KiB
C#
29 lines
1.1 KiB
C#
using System.Collections.Generic;
|
|
using System.IO;
|
|
|
|
namespace Ryujinx.HLE.Debugger
|
|
{
|
|
class RegisterInformation
|
|
{
|
|
public static readonly Dictionary<string, string> Features = new()
|
|
{
|
|
{ "target64.xml", GetEmbeddedResourceContent("target64.xml") },
|
|
{ "target32.xml", GetEmbeddedResourceContent("target32.xml") },
|
|
{ "aarch64-core.xml", GetEmbeddedResourceContent("aarch64-core.xml") },
|
|
{ "aarch64-fpu.xml", GetEmbeddedResourceContent("aarch64-fpu.xml") },
|
|
{ "arm-core.xml", GetEmbeddedResourceContent("arm-core.xml") },
|
|
{ "arm-neon.xml", GetEmbeddedResourceContent("arm-neon.xml") },
|
|
};
|
|
|
|
private static string GetEmbeddedResourceContent(string resourceName)
|
|
{
|
|
Stream stream = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("Ryujinx.HLE.Debugger.Gdb.Xml." + resourceName);
|
|
StreamReader reader = new(stream);
|
|
string result = reader.ReadToEnd();
|
|
reader.Dispose();
|
|
stream.Dispose();
|
|
return result;
|
|
}
|
|
}
|
|
}
|