diff options
author | Lioncash <mathew1800@gmail.com> | 2018-11-16 06:08:41 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-11-16 06:13:50 +0100 |
commit | edd5b6f12f4959588dbeb02d43180af3b3f7f226 (patch) | |
tree | 2aff3ba7d22d4ef410631cb92b59ec0a09fe9df9 /src/core/file_sys/errors.h | |
parent | file_sys/errors: Extract FS-related error codes to file_sys/errors.h (diff) | |
download | yuzu-edd5b6f12f4959588dbeb02d43180af3b3f7f226.tar yuzu-edd5b6f12f4959588dbeb02d43180af3b3f7f226.tar.gz yuzu-edd5b6f12f4959588dbeb02d43180af3b3f7f226.tar.bz2 yuzu-edd5b6f12f4959588dbeb02d43180af3b3f7f226.tar.lz yuzu-edd5b6f12f4959588dbeb02d43180af3b3f7f226.tar.xz yuzu-edd5b6f12f4959588dbeb02d43180af3b3f7f226.tar.zst yuzu-edd5b6f12f4959588dbeb02d43180af3b3f7f226.zip |
Diffstat (limited to 'src/core/file_sys/errors.h')
-rw-r--r-- | src/core/file_sys/errors.h | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/src/core/file_sys/errors.h b/src/core/file_sys/errors.h index 043fccf42..40e2b41b0 100644 --- a/src/core/file_sys/errors.h +++ b/src/core/file_sys/errors.h @@ -8,19 +8,6 @@ namespace FileSys { -namespace ErrCodes { -enum { - NotFound = 1, - EntityNotFound = 1002, - SdCardNotFound = 2001, - RomFSNotFound = 2520, - InvalidOffset = 6061, - InvalidSize = 6062, -}; -} - -constexpr ResultCode ERROR_PATH_NOT_FOUND(ErrorModule::FS, ErrCodes::NotFound); - // TODO(bunnei): Replace these with correct errors for Switch OS constexpr ResultCode ERROR_INVALID_PATH(-1); constexpr ResultCode ERROR_UNSUPPORTED_OPEN_FLAGS(-1); @@ -31,9 +18,10 @@ constexpr ResultCode ERROR_DIRECTORY_ALREADY_EXISTS(-1); constexpr ResultCode ERROR_FILE_ALREADY_EXISTS(-1); constexpr ResultCode ERROR_DIRECTORY_NOT_EMPTY(-1); -constexpr ResultCode ERROR_ENTITY_NOT_FOUND{ErrorModule::FS, ErrCodes::EntityNotFound}; -constexpr ResultCode ERROR_SD_CARD_NOT_FOUND{ErrorModule::FS, ErrCodes::SdCardNotFound}; -constexpr ResultCode ERROR_INVALID_OFFSET{ErrorModule::FS, ErrCodes::InvalidOffset}; -constexpr ResultCode ERROR_INVALID_SIZE{ErrorModule::FS, ErrCodes::InvalidSize}; +constexpr ResultCode ERROR_PATH_NOT_FOUND{ErrorModule::FS, 1}; +constexpr ResultCode ERROR_ENTITY_NOT_FOUND{ErrorModule::FS, 1002}; +constexpr ResultCode ERROR_SD_CARD_NOT_FOUND{ErrorModule::FS, 2001}; +constexpr ResultCode ERROR_INVALID_OFFSET{ErrorModule::FS, 6061}; +constexpr ResultCode ERROR_INVALID_SIZE{ErrorModule::FS, 6062}; } // namespace FileSys |