devkitPro / wut

Let's try to make a Wii U Toolchain / SDK for creating rpx/rpl.
zlib License
236 stars 52 forks source link

wutdevoptab: Replace FSError usage with FSStatus in __wut_fs_translate_error #213

Closed Maschell closed 2 years ago

Maschell commented 2 years ago

The FSError values are only used for FSSetEmulatedError and FSGetEmulatedError to emulate fs errors (and interally in the FSClient struct).

No FS function is ever returning FSError values.

This PR removes the mapping for all FSError values, fixes the FS_STATUS_CANCELLED mapping, and add the mapping for the missing FSStatus values. I couldn't find a matching value for FS_STATUS_ALREADY_OPEN, FS_STATUS_CORRUPTED and FS_STATUS_FATAL_ERROR so I decided to return EIO, not sure if there is a better option