diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-05-01 09:33:00 -0400 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-05-01 09:33:00 -0400 |
commit | 72b22fd43301548873164dbaa5856a0c2fd19a30 (patch) | |
tree | a781ef57b4aa637f85a711213e13fcb1112c9cc0 /src/core/file_sys | |
parent | fa3ffff8ded9ca071908701c911142001cc62f73 (diff) |
service: filesystem: Return proper error codes for CreateFile
This improves the accuracy of CreateFile by returning the correct error codes on certain conditions (parent directory does not exist, path already exists).
This fixes saving and the loading of existing saves in New Pokemon Snap
Diffstat (limited to 'src/core/file_sys')
-rw-r--r-- | src/core/file_sys/errors.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/file_sys/errors.h b/src/core/file_sys/errors.h index bb4654366..1a920b45d 100644 --- a/src/core/file_sys/errors.h +++ b/src/core/file_sys/errors.h @@ -9,6 +9,7 @@ namespace FileSys { constexpr ResultCode ERROR_PATH_NOT_FOUND{ErrorModule::FS, 1}; +constexpr ResultCode ERROR_PATH_ALREADY_EXISTS{ErrorModule::FS, 2}; constexpr ResultCode ERROR_ENTITY_NOT_FOUND{ErrorModule::FS, 1002}; constexpr ResultCode ERROR_SD_CARD_NOT_FOUND{ErrorModule::FS, 2001}; constexpr ResultCode ERROR_OUT_OF_BOUNDS{ErrorModule::FS, 3005}; |