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: Fix "syncing" the file->offset with the real offset on append mode. #256

Closed Maschell closed 2 years ago

Maschell commented 2 years ago

In order to keep our "file offset" and real file offset in sync, we need to update the file->offset to the current filesize on each write if O_APPEND is set.