devkitPro / wut

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

wutdevoptab: Fix setting mode flags in edge cases #230

Closed Maschell closed 2 years ago

Maschell commented 2 years ago

In some cases flags for the file/dir are not set, but we can determine the type based on the size. E.g. /vol/external01 can be opened via FSOpenDir but FSGetStat (and friends) don't set FS_STAT_DIRECTORY. In other cases (e.g. reading files from discs) there a similar problem where the filesize is not, but not FS_STAT_FILE