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 a99807c commit 0204239
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions include/nspmini/install/pfs0.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

#pragma once

#include <switch/types.h>
Expand All @@ -32,7 +31,7 @@ namespace tin::install
u64 fileSize;
u32 stringTableOffset;
u32 padding;
} PACKED;
};

static_assert(sizeof(PFS0FileEntry) == 0x18, "PFS0FileEntry must be 0x18");

Expand All @@ -42,7 +41,12 @@ namespace tin::install
u32 numFiles;
u32 stringTableSize;
u32 reserved;
} PACKED;
};

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

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

0 comments on commit 0204239

Please sign in to comment.