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/FsAccessHeader.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/FsAccessHeader.cs')
-rw-r--r-- | src/Ryujinx.HLE/Loaders/Npdm/FsAccessHeader.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Ryujinx.HLE/Loaders/Npdm/FsAccessHeader.cs b/src/Ryujinx.HLE/Loaders/Npdm/FsAccessHeader.cs index 5987be0e..249f8dd9 100644 --- a/src/Ryujinx.HLE/Loaders/Npdm/FsAccessHeader.cs +++ b/src/Ryujinx.HLE/Loaders/Npdm/FsAccessHeader.cs @@ -9,6 +9,12 @@ namespace Ryujinx.HLE.Loaders.Npdm public int Version { get; private set; } public ulong PermissionsBitmask { get; private set; } + /// <exception cref="InvalidNpdmException">The stream contains invalid data.</exception> + /// <exception cref="NotImplementedException">The ContentOwnerId section is not implemented.</exception> + /// <exception cref="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="ObjectDisposedException">The stream is closed.</exception> + /// <exception cref="IOException">An I/O error occurred.</exception> public FsAccessHeader(Stream stream, int offset, int size) { stream.Seek(offset, SeekOrigin.Begin); |