diff options
| author | 2018-11-15 23:27:29 -0500 | |
|---|---|---|
| committer | 2018-11-16 00:13:50 -0500 | |
| commit | b725d1fdf7641661161815466a14ed7e8e26ce67 (patch) | |
| tree | f7db94a9c706a192288879fc2566b70298a7605f /src/core/file_sys | |
| parent | Fixed priority switching edge case for handheld (#1675) (diff) | |
| download | yuzu-b725d1fdf7641661161815466a14ed7e8e26ce67.tar.gz yuzu-b725d1fdf7641661161815466a14ed7e8e26ce67.tar.xz yuzu-b725d1fdf7641661161815466a14ed7e8e26ce67.zip | |
file_sys/errors: Extract FS-related error codes to file_sys/errors.h
Keeps filesystem-related error codes in one spot.
Diffstat (limited to 'src/core/file_sys')
| -rw-r--r-- | src/core/file_sys/errors.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/core/file_sys/errors.h b/src/core/file_sys/errors.h index fea0593c7..043fccf42 100644 --- a/src/core/file_sys/errors.h +++ b/src/core/file_sys/errors.h | |||
| @@ -11,9 +11,11 @@ namespace FileSys { | |||
| 11 | namespace ErrCodes { | 11 | namespace ErrCodes { |
| 12 | enum { | 12 | enum { |
| 13 | NotFound = 1, | 13 | NotFound = 1, |
| 14 | TitleNotFound = 1002, | 14 | EntityNotFound = 1002, |
| 15 | SdCardNotFound = 2001, | 15 | SdCardNotFound = 2001, |
| 16 | RomFSNotFound = 2520, | 16 | RomFSNotFound = 2520, |
| 17 | InvalidOffset = 6061, | ||
| 18 | InvalidSize = 6062, | ||
| 17 | }; | 19 | }; |
| 18 | } | 20 | } |
| 19 | 21 | ||
| @@ -29,4 +31,9 @@ constexpr ResultCode ERROR_DIRECTORY_ALREADY_EXISTS(-1); | |||
| 29 | constexpr ResultCode ERROR_FILE_ALREADY_EXISTS(-1); | 31 | constexpr ResultCode ERROR_FILE_ALREADY_EXISTS(-1); |
| 30 | constexpr ResultCode ERROR_DIRECTORY_NOT_EMPTY(-1); | 32 | constexpr ResultCode ERROR_DIRECTORY_NOT_EMPTY(-1); |
| 31 | 33 | ||
| 34 | constexpr ResultCode ERROR_ENTITY_NOT_FOUND{ErrorModule::FS, ErrCodes::EntityNotFound}; | ||
| 35 | constexpr ResultCode ERROR_SD_CARD_NOT_FOUND{ErrorModule::FS, ErrCodes::SdCardNotFound}; | ||
| 36 | constexpr ResultCode ERROR_INVALID_OFFSET{ErrorModule::FS, ErrCodes::InvalidOffset}; | ||
| 37 | constexpr ResultCode ERROR_INVALID_SIZE{ErrorModule::FS, ErrCodes::InvalidSize}; | ||
| 38 | |||
| 32 | } // namespace FileSys | 39 | } // namespace FileSys |