NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
arc.h
1
/**
2
* Modified from decompilation by riidefi in WiiCore
3
*/
4
5
#ifndef RVL_SDK_ARC_H
6
#define RVL_SDK_ARC_H
7
#include <types.h>
8
#ifdef __cplusplus
9
extern
"C"
{
10
#endif
11
12
typedef
struct
ARCHandle
{
13
void
* archiveStartAddr;
// at 0x0
14
void
* FSTStart;
// at 0x4
15
void
* fileStart;
// at 0x8
16
u32 entryNum;
// at 0xC
17
char
* FSTStringStart;
// at 0x10
18
u32 FSTLength;
// at 0x14
19
s32 currDir;
// at 0x18
20
}
ARCHandle
;
21
22
typedef
struct
ARCFileInfo
{
23
ARCHandle
* handle;
// at 0x0
24
u32 startOffset;
// at 0x4
25
u32 length;
// at 0x8
26
}
ARCFileInfo
;
27
28
typedef
struct
ARCDir
{
29
ARCHandle
* handle;
// at 0x0
30
u32 entryNum;
// at 0x4
31
u32 location;
// at 0x8
32
u32 next;
// at 0xC
33
}
ARCDir
;
34
35
typedef
struct
ARCDirEntry
{
36
ARCHandle
* handle;
// at 0x0
37
u32 entryNum;
// at 0x4
38
BOOL isDir;
// at 0x8
39
char
* name;
// at 0xC
40
}
ARCDirEntry
;
41
42
BOOL ARCGetCurrentDir(
ARCHandle
* handle,
char
*
string
, u32 maxlen);
43
BOOL ARCInitHandle(
void
* bin,
ARCHandle
* handle);
44
BOOL ARCOpen(
ARCHandle
* handle,
const
char
* path,
ARCFileInfo
* info);
45
BOOL ARCFastOpen(
ARCHandle
* handle, s32 entrynum,
ARCFileInfo
* info);
46
s32 ARCConvertPathToEntrynum(
ARCHandle
* handle,
const
char
* path);
47
void
* ARCGetStartAddrInMem(
ARCFileInfo
* info);
48
u32 ARCGetStartOffset(
ARCFileInfo
* info);
49
u32 ARCGetLength(
ARCFileInfo
* info);
50
BOOL ARCClose(
ARCFileInfo
* info);
51
BOOL ARCChangeDir(
ARCHandle
* handle,
const
char
* path);
52
BOOL ARCOpenDir(
ARCHandle
* handle,
const
char
* path,
ARCDir
* dir);
53
BOOL ARCReadDir(
ARCDir
* dir,
ARCDirEntry
* entry);
54
BOOL ARCCloseDir(
ARCDir
* dir);
55
56
#ifdef __cplusplus
57
}
58
#endif
59
#endif
ARCDirEntry
Definition
arc.h:35
ARCDir
Definition
arc.h:28
ARCFileInfo
Definition
arc.h:22
ARCHandle
Definition
arc.h:12
include
lib
revolution
ARC
arc.h
Made with ❤️ by
CLF78
and
RootCubed
. Logos by
Chasical
and
B1
. Website generated by
Doxygen
1.13.2