From 9356c1bac959d9c1180ed9c1fd16512bc1617288 Mon Sep 17 00:00:00 2001 From: Thog Date: Sat, 5 May 2018 19:41:12 +0200 Subject: [PATCH] Rename Demangler -> Demangle + Fix coding style --- .../OsHle/Diagnostics/{Demangler.cs => Demangle.cs} | 9 ++++++--- Ryujinx.Core/OsHle/Process.cs | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) rename Ryujinx.Core/OsHle/Diagnostics/{Demangler.cs => Demangle.cs} (93%) diff --git a/Ryujinx.Core/OsHle/Diagnostics/Demangler.cs b/Ryujinx.Core/OsHle/Diagnostics/Demangle.cs similarity index 93% rename from Ryujinx.Core/OsHle/Diagnostics/Demangler.cs rename to Ryujinx.Core/OsHle/Diagnostics/Demangle.cs index f83634a7eb..ee51c9e040 100644 --- a/Ryujinx.Core/OsHle/Diagnostics/Demangler.cs +++ b/Ryujinx.Core/OsHle/Diagnostics/Demangle.cs @@ -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) { diff --git a/Ryujinx.Core/OsHle/Process.cs b/Ryujinx.Core/OsHle/Process.cs index 49ad281c58..4d7506421e 100644 --- a/Ryujinx.Core/OsHle/Process.cs +++ b/Ryujinx.Core/OsHle/Process.cs @@ -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) + ")");