Rename Demangler -> Demangle + Fix coding style
This commit is contained in:
parent
fbba87b41a
commit
9356c1bac9
2 changed files with 7 additions and 4 deletions
|
@ -1,12 +1,15 @@
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Ryujinx.Core.OsHle.Diagnostics {
|
namespace Ryujinx.Core.OsHle.Diagnostics
|
||||||
static class Demangler {
|
{
|
||||||
|
static class Demangle
|
||||||
|
{
|
||||||
public static string ReadName(string mangled)
|
public static string ReadName(string mangled)
|
||||||
{
|
{
|
||||||
string result = null;
|
string result = null;
|
||||||
string charCountTemp = null;
|
string charCountTemp = null;
|
||||||
int charCount = 0;
|
int charCount = 0;
|
||||||
|
|
||||||
foreach (var chr in mangled)
|
foreach (var chr in mangled)
|
||||||
{
|
{
|
||||||
if (charCount == 0)
|
if (charCount == 0)
|
|
@ -307,7 +307,7 @@ namespace Ryujinx.Core.OsHle
|
||||||
}
|
}
|
||||||
else if (SubName.StartsWith("_ZN"))
|
else if (SubName.StartsWith("_ZN"))
|
||||||
{
|
{
|
||||||
SubName = Demangler.ReadName(SubName.Substring(3));
|
SubName = Demangle.ReadName(SubName.Substring(3));
|
||||||
}
|
}
|
||||||
|
|
||||||
Trace.AppendLine(" " + SubName + " (" + GetNsoNameAndAddress(Position) + ")");
|
Trace.AppendLine(" " + SubName + " (" + GetNsoNameAndAddress(Position) + ")");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue