Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kronos2308 committed Apr 14, 2024
1 parent 0204239 commit 116f3da
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions include/nspmini/install/nca.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace tin::install
};
};
u8 _0x148[0xB8]; /* Padding. */
} PACKED;
};

static_assert(sizeof(NcaFsHeader) == 0x200, "NcaFsHeader must be 0x200");

Expand All @@ -38,7 +38,7 @@ namespace tin::install
u32 media_start_offset;
u32 media_end_offset;
u8 _0x8[0x8]; /* Padding. */
} PACKED;
};

static_assert(sizeof(NcaSectionEntry) == 0x10, "NcaSectionEntry must be 0x10");

Expand Down Expand Up @@ -71,7 +71,12 @@ namespace tin::install
u8 m_keys[4 * 0x10]; /* Encrypted key area. */
u8 _0x340[0xC0]; /* Padding. */
NcaFsHeader fs_headers[4]; /* FS section headers. */
} PACKED;
};

static_assert(sizeof(NcaHeader) == 0xc00, "NcaHeader must be 0xc00");
}
}

// Lugar donde se usan las estructuras
#pragma pack(push, 1)
// Código que usa las estructuras empaquetadas
#pragma pack(pop)

0 comments on commit 116f3da

Please sign in to comment.