Trim parameters result to get more clear prototypes
This commit is contained in:
parent
6b5dc3d718
commit
df7b1df338
1 changed files with 4 additions and 6 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue