errors.h 916 B

1234567891011121314151617181920212223242526272829303132
  1. // Copyright 2016 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include "core/hle/result.h"
  6. namespace FileSys {
  7. namespace ErrCodes {
  8. enum {
  9. NotFound = 1,
  10. TitleNotFound = 1002,
  11. SdCardNotFound = 2001,
  12. RomFSNotFound = 2520,
  13. };
  14. }
  15. constexpr ResultCode ERROR_PATH_NOT_FOUND(ErrorModule::FS, ErrCodes::NotFound);
  16. // TODO(bunnei): Replace these with correct errors for Switch OS
  17. constexpr ResultCode ERROR_INVALID_PATH(-1);
  18. constexpr ResultCode ERROR_UNSUPPORTED_OPEN_FLAGS(-1);
  19. constexpr ResultCode ERROR_INVALID_OPEN_FLAGS(-1);
  20. constexpr ResultCode ERROR_FILE_NOT_FOUND(-1);
  21. constexpr ResultCode ERROR_UNEXPECTED_FILE_OR_DIRECTORY(-1);
  22. constexpr ResultCode ERROR_DIRECTORY_ALREADY_EXISTS(-1);
  23. constexpr ResultCode ERROR_FILE_ALREADY_EXISTS(-1);
  24. constexpr ResultCode ERROR_DIRECTORY_NOT_EMPTY(-1);
  25. } // namespace FileSys