NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
cnt.h
1#ifndef RVL_SDK_CNT_H
2#define RVL_SDK_CNT_H
3#include <types.h>
4
5#include <revolution/ARC.h>
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11typedef struct CNTHandle {
12 ARCHandle arcHandle; // at 0x0
13 s32 fd; // at 0x1C
14} CNTHandle;
15
16typedef struct CNTFileInfo {
17 CNTHandle* handle; // at 0x0
18 u32 offset; // at 0x4
19 u32 length; // at 0x8
20 u32 position; // at 0xC
22
23typedef enum {
24 CNT_RESULT_OK = 0,
25} CNTResult;
26
27s32 contentFastOpenNAND(CNTHandle* handle, s32 entrynum, CNTFileInfo* info);
28s32 contentConvertPathToEntrynumNAND(CNTHandle* handle, const char* path);
29u32 contentGetLengthNAND(const CNTFileInfo* info);
30s32 contentReadNAND(CNTFileInfo* info, void* dst, u32 len, s32 offset);
31s32 contentCloseNAND(CNTFileInfo* info);
32
33#ifdef __cplusplus
34}
35#endif
36#endif