Added PFS0 related structs.

This commit is contained in:
Steven Mattera 2019-05-08 17:36:58 -04:00
parent e114a361be
commit 5c59627d73

25
nx/include/switch/nca.h Normal file
View File

@ -0,0 +1,25 @@
/**
* @file nca.h
* @brief NCA structure.
* @copyright libnx Authors
*/
#pragma once
#define PFS0HEADER_MAGIC 0x30534650
/// Offset 0x0 in the NSP file.
typedef struct {
u32 magic;
u32 number_of_files;
u32 size_of_string_table;
u32 reserved;
} Pfs0Header;
/// These follow after the Pfs0Header, based on the number of files in the header.
typedef struct {
u64 offset;
u64 size;
u32 name_offset;
u32 reserved;
} Pfs0FileEntry;