mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 18:42:15 +02:00
Added PFS0 related structs.
This commit is contained in:
parent
e114a361be
commit
5c59627d73
25
nx/include/switch/nca.h
Normal file
25
nx/include/switch/nca.h
Normal 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;
|
Loading…
Reference in New Issue
Block a user