Rename Demangler -> Demangle + Fix coding style

This commit is contained in:
Thog 2018-05-05 19:41:12 +02:00
parent fbba87b41a
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,13 +1,16 @@
using System;
namespace Ryujinx.Core.OsHle.Diagnostics {
static class Demangler {
namespace Ryujinx.Core.OsHle.Diagnostics
{
static class Demangle
{
public static string ReadName(string mangled)
{
string result = null;
string charCountTemp = null;
int charCount = 0;
foreach(var chr in mangled)
foreach (var chr in mangled)
{
if (charCount == 0)
{

View file

@ -307,7 +307,7 @@ namespace Ryujinx.Core.OsHle
}
else if (SubName.StartsWith("_ZN"))
{
SubName = Demangler.ReadName(SubName.Substring(3));
SubName = Demangle.ReadName(SubName.Substring(3));
}
Trace.AppendLine(" " + SubName + " (" + GetNsoNameAndAddress(Position) + ")");