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
8
extern
"C"
{
9
#endif
10
11
typedef
struct
CNTHandle
{
12
ARCHandle
arcHandle;
// at 0x0
13
s32 fd;
// at 0x1C
14
}
CNTHandle
;
15
16
typedef
struct
CNTFileInfo
{
17
CNTHandle
* handle;
// at 0x0
18
u32 offset;
// at 0x4
19
u32 length;
// at 0x8
20
u32 position;
// at 0xC
21
}
CNTFileInfo
;
22
23
typedef
enum
{
24
CNT_RESULT_OK = 0,
25
} CNTResult;
26
27
s32 contentFastOpenNAND(
CNTHandle
* handle, s32 entrynum,
CNTFileInfo
* info);
28
s32 contentConvertPathToEntrynumNAND(
CNTHandle
* handle,
const
char
* path);
29
u32 contentGetLengthNAND(
const
CNTFileInfo
* info);
30
s32 contentReadNAND(
CNTFileInfo
* info,
void
* dst, u32 len, s32 offset);
31
s32 contentCloseNAND(
CNTFileInfo
* info);
32
33
#ifdef __cplusplus
34
}
35
#endif
36
#endif
ARCHandle
Definition
arc.h:12
CNTFileInfo
Definition
cnt.h:16
CNTHandle
Definition
cnt.h:11
include
lib
revolution
CNT
cnt.h
Made with ❤️ by
CLF78
and
RootCubed
. Logos by
Chasical
and
B1
. Website generated by
Doxygen
1.13.2