3#include <revolution/MEM.h>
19 if (folderSig ==
'g3d ') {
22 if (resFile.CheckRevision()) {
24 resFile.Bind(resFile);
32 for (
int i = 0; i < count; i++) {
33 mRes.setRes(names[i], path, MEM_EXP_HEAP_ALLOC_FAST, heap);
38 return mRes.setRes(name, path, MEM_EXP_HEAP_ALLOC_FAST, heap);
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.
#define MAX_NUM_RES
The maximum number of resources that can be loaded at once.