forked from tiliarou/4NXCI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnsp.h
38 lines (31 loc) · 760 Bytes
/
nsp.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef NXCI_NSP_H_
#define NXCI_NSP_H_
#include <inttypes.h>
#include "filepath.h"
#include "nca.h"
#include "cnmt.h"
typedef struct {
char *filepath;
char *nsp_filename;
uint64_t filesize;
} nsp_create_info_t;
typedef struct {
uint64_t offset;
uint64_t size;
uint32_t filename_offset;
uint32_t padding;
} nsp_file_entry_table_t;
typedef struct {
char magic[4];
uint32_t files_count;
uint32_t string_table_size;
uint32_t reserved;
nsp_file_entry_table_t file_entry_table[7];
char string_table[0x118];
} nsp_header_t;
extern nsp_create_info_t nsp_create_info[7];
void create_cnmt_xml();
void create_dummy_cert(filepath_t filepath);
void create_dummy_tik(filepath_t filepath);
void create_nsp();
#endif