NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
archive.hpp
1#pragma once
2#include <lib/rvl/arc/ARC.h>
3
4namespace EGG {
5 class Archive {
6 public:
7 struct FileInfo {
8 FileInfo() : mFileOffset(0), mFileSize(0) {}
9 int mFileOffset;
10 int mFileSize;
11 };
12
13 typedef void (*searchCallback)(void *, void *, const ARCDirEntry *, const char *);
14
15 void unmount();
16 int countFile();
17
18 void getFileArray(u8 **files, unsigned long numFiles);
19 void searchInside(searchCallback callback, void *callbackParam);
20
21 long convertPathToEntryID(const char *path);
22 void *getFile(const char *path, FileInfo *fileInfo);
23 void *getFileFast(long entryID, FileInfo *fileInfo);
24 };
25}