NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
|
#include <dol/bases/d_res.hpp>
Public Member Functions | |
info_c () | |
Constructs a new info_c. | |
~info_c () | |
Destroys this info_c. | |
bool | cleanup () |
Unmounts the archive and frees the holder for use. | |
bool | set (const char *arcName, const char *containingFolder, u8 allocDirection, EGG::Heap *heap) |
Sets information about the archive to be loaded. | |
int | setRes (callback_c *callback) |
Attempts to load the archive into memory and load the resources with a callback. | |
const char * | getName () const |
int | getRefCount () const |
void * | getDvdCmd () const |
EGG::Archive * | getArchive () const |
void | incRefCount () |
Increments the reference count. | |
void | decRefCount () |
Decrements the reference count. | |
Private Member Functions | |
int | loadRes (callback_c *callback) |
Executes a callback on each file and folder of the archive. | |
Private Attributes | |
char | mName [0x20] |
The name of the archive. | |
u16 | mRefCount |
The number of references to this archive. | |
mDvd_mountMemArchive_c * | mpDvdCmd |
The DVD command for mounting the archive. | |
EGG::Archive * | mpArchive |
An EGG::Archive instance for this archive. | |
EGG::Heap * | mpMountHeap |
The heap used for mounting the archive. | |
void * | mpArcBinary |
The raw archive data. | |
int | mUnk |
Unknown. | |
EGG::FrmHeap * | mDataHeap |
The heap used for loading the resources of the archive. [No p because of the string "dRes_c::info_c::mDataHeap"]. | |
u8 ** | mpFiles |
An array of pointers to the data of each loaded resource. | |
dRes_c::info_c::info_c | ( | ) |
Constructs a new info_c.
Definition at line 7 of file d_res_info.cpp.
dRes_c::info_c::~info_c | ( | ) |
Destroys this info_c.
Definition at line 17 of file d_res_info.cpp.
bool dRes_c::info_c::cleanup | ( | ) |
Unmounts the archive and frees the holder for use.
Definition at line 27 of file d_res_info.cpp.
bool dRes_c::info_c::set | ( | const char * | arcName, |
const char * | containingFolder, | ||
u8 | allocDirection, | ||
EGG::Heap * | heap | ||
) |
Sets information about the archive to be loaded.
arcName | The name of the archive. |
containingFolder | The path to the folder which the archive is in. |
allocDirection | The allocation direction. 1: top-down, anything else: bottom-up. |
heap | The heap to load the resources of the archive into. |
Definition at line 63 of file d_res_info.cpp.
int dRes_c::info_c::setRes | ( | callback_c * | callback | ) |
Attempts to load the archive into memory and load the resources with a callback.
callback | The callback for the resources. |
Definition at line 79 of file d_res_info.cpp.
|
inline |
|
inline |
|
inline |
|
private |
Executes a callback on each file and folder of the archive.
If the callback is nullptr
, the files will still be loaded and pointers to each file will be stored in mpFiles.
callback | The callback for this resource, or nullptr . |
Definition at line 143 of file d_res_info.cpp.
|
private |
|
private |
|
private |
|
private |
An EGG::Archive instance for this archive.
|
private |
|
private |
|
private |