Trim parameters result to get more clear prototypes

This commit is contained in:
Thog 2018-05-11 19:35:32 +02:00
parent 6b5dc3d718
commit df7b1df338
No known key found for this signature in database
GPG key ID: 0CD291558FAFDBC6

View file

@ -30,7 +30,7 @@ namespace Ryujinx.Core.OsHle.Diagnostics
{ "d", "double" },
{ "e", "long double, __float80" },
{ "g", "__float128" },
{ "z", "ellipsis" },
{ "z", "..." },
{ "Dd", "__iec559_double" },
{ "De", "__iec559_float128" },
{ "Df", "__iec559_float" },
@ -75,8 +75,7 @@ namespace Ryujinx.Core.OsHle.Diagnostics
if (compressionData.Count == 0 || !compression.StartsWith("S"))
return null;
string temp = null;
if (compression.Length > 2 && BuiltinTypes.TryGetValue(compression.Substring(0, 2), out temp))
if (compression.Length > 2 && BuiltinTypes.TryGetValue(compression.Substring(0, 2), out string temp))
{
pos = 2;
res = temp;
@ -373,9 +372,8 @@ namespace Ryujinx.Core.OsHle.Diagnostics
// parameters parsing error, we return the original data to avoid information loss.
if (pos == -1)
return originalMangled;
res += "(";
res += String.Join(", ", parameters);
res += ")";
parameters = parameters.Select(outer => outer.Trim()).ToList();
res += "(" + String.Join(", ", parameters) + ")";
}
return res;
}