summaryrefslogtreecommitdiff
path: root/include/rvl/ESP/esp.h
blob: d158e3c84a1d5e9b8768a12efa7b15afa4839308 (plain)
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
#ifndef RVL_SDK_ESP_H
#define RVL_SDK_ESP_H
#include "common.h"
#include "rvl/ARC.h" // IWYU pragma: export
#include "rvl/IPC.h" // IWYU pragma: export


#ifdef __cplusplus
extern "C" {
#endif

typedef enum {
    ES_IOCTLV_LAUNCH_TITLE = 8,
    ES_IOCTLV_GET_NUM_TICKET_VIEWS = 18,
    ES_IOCTLV_GET_TICKET_VIEWS = 19,
    ES_IOCTLV_GET_DATA_DIR = 29,
    ES_IOCTLV_GET_TITLE_ID = 32,
} ESIoctl;

typedef struct ESPTicket {
    u8 dummy[0x2A4];
    char padding[0x2C0 - 0x2A4];
} ESPTicket;

typedef struct ESPTmd {
    u8 dummy[0x49E4];
    char padding[0x4A00 - 0x49E4];
} ESPTmd;

s32 ESP_ReadContentFile(UNKWORD, void *, u32);
s32 ESP_SeekContentFile(UNKWORD, s32, UNKWORD);

#ifdef __cplusplus
}
#endif
#endif