2#include <lib/nw4r/g3d/res_file.h>
19 if (folderSig ==
'g3d ') {
22 if (resFile.CheckRevision()) {
24 resFile.Bind(resFile);
32 for (
int i = 0; i < count; i++) {
@ MEM_EXPHEAP_ALLOC_DIR_FRONT
Allocates from the bottom of the free memory region.
virtual void * execute(void *data, u32 folderSig, const char *path)
Executes the callback.
virtual void init(const char *name)
Initializes the callback with the resource name.
A higher-level archive resource management class.
static dResMng_c * m_instance
The instance of this class.
virtual ~dResMng_c()
Destroys this dResMng_c.
dRes_c mRes
The resource manager.
dResMng_c()
Constructs a new dResMng_c.
resCallback_c mCallback
The callback for after a file has been loaded.
void setRes(const char *path, const char **names, int count, EGG::Heap *heap)
Schedules multiple archives for loading.
bool setRes(const char *arcName, const char *containingFolder, u8 allocDir, EGG::Heap *heap)
Schedules an archive for loading.
bool init(u16 maxCount, callback_c *callback)
Initializes the manager by allocating the archive holders and setting the callback.
#define MAX_NUM_RES
The maximum number of resources that can be loaded at once.