summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-11-16 05:27:29 +0100
committerLioncash <mathew1800@gmail.com>2018-11-16 06:13:50 +0100
commitb725d1fdf7641661161815466a14ed7e8e26ce67 (patch)
treef7db94a9c706a192288879fc2566b70298a7605f /src/core/file_sys
parentFixed priority switching edge case for handheld (#1675) (diff)
downloadyuzu-b725d1fdf7641661161815466a14ed7e8e26ce67.tar
yuzu-b725d1fdf7641661161815466a14ed7e8e26ce67.tar.gz
yuzu-b725d1fdf7641661161815466a14ed7e8e26ce67.tar.bz2
yuzu-b725d1fdf7641661161815466a14ed7e8e26ce67.tar.lz
yuzu-b725d1fdf7641661161815466a14ed7e8e26ce67.tar.xz
yuzu-b725d1fdf7641661161815466a14ed7e8e26ce67.tar.zst
yuzu-b725d1fdf7641661161815466a14ed7e8e26ce67.zip
Diffstat (limited to 'src/core/file_sys')
-rw-r--r--src/core/file_sys/errors.h9
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 {
namespace ErrCodes {
enum {
NotFound = 1,
- TitleNotFound = 1002,
+ EntityNotFound = 1002,
SdCardNotFound = 2001,
RomFSNotFound = 2520,
+ InvalidOffset = 6061,
+ InvalidSize = 6062,
};
}
@@ -29,4 +31,9 @@ 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};
+
} // namespace FileSys