When reading a very small amount of bytes, sector_ofs must be added to the next fseek, because the function nca_section_fseek doesn't use sector_ofs, it only affects a new value to it, and the line 200 "ctx->sector_ofs += count" would be useless otherwise (sector_ofs is reset to 0, instead of being incremented).
When reading a very small amount of bytes, sector_ofs must be added to the next fseek, because the function nca_section_fseek doesn't use sector_ofs, it only affects a new value to it, and the line 200 "ctx->sector_ofs += count" would be useless otherwise (sector_ofs is reset to 0, instead of being incremented).