diff options
| author | riperiperi <rhy3756547@hotmail.com> | 2020-09-23 22:57:18 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-23 18:57:18 -0300 |
| commit | e00ca92063b9dda7b3272f6461610743cfa83ad5 (patch) | |
| tree | 9f74972622393aca226aa60fa8e2588b8b6a6716 /Ryujinx.HLE/HOS/UserChannelPersistence.cs | |
| parent | 840afabc22dcb3966fc05ddad8bc4212ba7d7b1d (diff) | |
Return "NotAvailable" when no UserChannel data is present. (#1569)
* Return "NotAvailable" when no UserChannel data is present.
* Return ObjectInvalid for undefined parameter kinds.
* No need to specify which, there's only one.
* Just works as a literal string.
Diffstat (limited to 'Ryujinx.HLE/HOS/UserChannelPersistence.cs')
| -rw-r--r-- | Ryujinx.HLE/HOS/UserChannelPersistence.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Ryujinx.HLE/HOS/UserChannelPersistence.cs b/Ryujinx.HLE/HOS/UserChannelPersistence.cs index 62f28fee..13e7364f 100644 --- a/Ryujinx.HLE/HOS/UserChannelPersistence.cs +++ b/Ryujinx.HLE/HOS/UserChannelPersistence.cs @@ -31,7 +31,9 @@ namespace Ryujinx.HLE.HOS public byte[] Pop() { - return _userChannelStorages.Pop(); + _userChannelStorages.TryPop(out byte[] result); + + return result; } public bool IsEmpty => _userChannelStorages.Count == 0; |
