mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-10-01 12:30:00 +02:00
Fix return value of Get function when a result does not yet exist for the address. (#5768)
This commit is contained in:
parent
f460ecc182
commit
e40470bbe1
1 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,6 @@ namespace ARMeilleure.Diagnostics
|
||||||
|
|
||||||
public static string Get(ulong address)
|
public static string Get(ulong address)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (_symbols.TryGetValue(address, out string result))
|
if (_symbols.TryGetValue(address, out string result))
|
||||||
{
|
{
|
||||||
return result;
|
return result;
|
||||||
|
@ -57,7 +56,8 @@ namespace ARMeilleure.Diagnostics
|
||||||
resultBuilder.Append($"+{rem}");
|
resultBuilder.Append($"+{rem}");
|
||||||
}
|
}
|
||||||
|
|
||||||
_symbols.TryAdd(address, resultBuilder.ToString());
|
result = resultBuilder.ToString();
|
||||||
|
_symbols.TryAdd(address, result);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue