nca.c
/* Seek to an offset within a section. */
Seek to an offset within a section.
Seek to an offset within a section .
void nca_section_fseek(nca_section_ctx_t *ctx, uint64_t offset)
{
    fseeko64(ctx->file, (ctx->offset + offset) & ~0xF, SEEK_SET);
    ctx->cur_seek = (ctx->offset + offset) & ~0xF;
    nca_update_ctr(ctx->ctr, ctx->offset + offset);
    ctx->sector_ofs = offset & 0xF;
}
void nca_section_fseek ( nca_section_ctx_t * ctx , uint64_t offset ) { fseeko64 ( ctx -> file , ( ctx -> offset + offset ) & ~ 0xF , SEEK_SET ) ; ctx -> cur_seek = ( ctx -> offset + offset ) & ~ 0xF ; nca_update_ctr ( ctx -> ctr , ctx -> offset + offset ) ; ctx -> sector_ofs = offset & 0xF ; }
Seek to an offset within a section.
Seek to an offset within a section .