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,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)
|
||||
{
|
|
@ -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) + ")");
|
||||
|
|
Loading…
Add table
Reference in a new issue