errors.h 933 B

1234567891011121314151617181920212223242526272829
  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. };
  11. }
  12. constexpr ResultCode ERROR_PATH_NOT_FOUND(ErrorModule::FS, ErrCodes::NotFound);
  13. // TODO(bunnei): Replace these with correct errors for Switch OS
  14. constexpr ResultCode ERROR_INVALID_PATH(ResultCode(-1));
  15. constexpr ResultCode ERROR_UNSUPPORTED_OPEN_FLAGS(ResultCode(-1));
  16. constexpr ResultCode ERROR_INVALID_OPEN_FLAGS(ResultCode(-1));
  17. constexpr ResultCode ERROR_FILE_NOT_FOUND(ResultCode(-1));
  18. constexpr ResultCode ERROR_UNEXPECTED_FILE_OR_DIRECTORY(ResultCode(-1));
  19. constexpr ResultCode ERROR_DIRECTORY_ALREADY_EXISTS(ResultCode(-1));
  20. constexpr ResultCode ERROR_FILE_ALREADY_EXISTS(ResultCode(-1));
  21. constexpr ResultCode ERROR_DIRECTORY_NOT_EMPTY(ResultCode(-1));
  22. } // namespace FileSys