diff options
author | TSRBerry <20988865+TSRBerry@users.noreply.github.com> | 2024-07-20 21:35:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-20 16:35:43 -0300 |
commit | c6dc00815aa15ef95671f19b6fecc3ecc1c84c4c (patch) | |
tree | 3ccf5f7b73d300f9b030735f3d17d2ee76f27f4f /src/Ryujinx.HLE/Loaders/Npdm/KernelAccessControl.cs | |
parent | 99f04ac1a64400d45052e4a83c572e50ba86de0d (diff) |
Make sure TryGetApplicationsFromFile() doesn't throw exceptions anymore (#7046)1.1.1357
* Add docstrings for exceptions to methods near TryGetApplicationsFromFile()
* Make sure TryGetApplicationsFromFile() doesn't throw exceptions anymore
* Add missing filePath to ApplicationData when loading applications from ExeFS
* Fix typo
Co-authored-by: riperiperi <rhy3756547@hotmail.com>
---------
Co-authored-by: riperiperi <rhy3756547@hotmail.com>
Diffstat (limited to 'src/Ryujinx.HLE/Loaders/Npdm/KernelAccessControl.cs')
-rw-r--r-- | src/Ryujinx.HLE/Loaders/Npdm/KernelAccessControl.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Ryujinx.HLE/Loaders/Npdm/KernelAccessControl.cs b/src/Ryujinx.HLE/Loaders/Npdm/KernelAccessControl.cs index 17124379..979c6f66 100644 --- a/src/Ryujinx.HLE/Loaders/Npdm/KernelAccessControl.cs +++ b/src/Ryujinx.HLE/Loaders/Npdm/KernelAccessControl.cs @@ -6,6 +6,10 @@ namespace Ryujinx.HLE.Loaders.Npdm { public int[] Capabilities { get; private set; } + /// <exception cref="System.ArgumentException">The stream does not support reading, is <see langword="null"/>, or is already closed.</exception> + /// <exception cref="EndOfStreamException">The end of the stream is reached.</exception> + /// <exception cref="System.ObjectDisposedException">The stream is closed.</exception> + /// <exception cref="IOException">An I/O error occurred.</exception> public KernelAccessControl(Stream stream, int offset, int size) { stream.Seek(offset, SeekOrigin.Begin); |