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/ServiceAccessControl.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/ServiceAccessControl.cs')
-rw-r--r-- | src/Ryujinx.HLE/Loaders/Npdm/ServiceAccessControl.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Ryujinx.HLE/Loaders/Npdm/ServiceAccessControl.cs b/src/Ryujinx.HLE/Loaders/Npdm/ServiceAccessControl.cs index bb6df27f..b6bc6492 100644 --- a/src/Ryujinx.HLE/Loaders/Npdm/ServiceAccessControl.cs +++ b/src/Ryujinx.HLE/Loaders/Npdm/ServiceAccessControl.cs @@ -9,6 +9,11 @@ namespace Ryujinx.HLE.Loaders.Npdm { public IReadOnlyDictionary<string, bool> Services { get; private set; } + /// <exception cref="System.ArgumentException">The stream does not support reading, is <see langword="null"/>, or is already closed.</exception> + /// <exception cref="System.ArgumentException">An error occured while reading bytes from the stream.</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 ServiceAccessControl(Stream stream, int offset, int size) { stream.Seek(offset, SeekOrigin.Begin); |