Rename Demangler -> Demangle + Fix coding style

This commit is contained in:
Thog 2018-05-05 19:41:12 +02:00
commit 9356c1bac9
No known key found for this signature in database
GPG key ID: 0CD291558FAFDBC6
2 changed files with 7 additions and 4 deletions

View file

@ -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)

View file

@ -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) + ")");