Trim parameters result to get more clear prototypes

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