1#include <dol/bases/d_res_mng.hpp>
2#include <lib/nw4r/g3d/res_file.h>
18 if (folderSig ==
'g3d ') {
21 if (resFile.CheckRevision()) {
23 resFile.Bind(resFile);
31 for (
int i = 0; i < count; i++) {
virtual void * execute(void *data, u32 folderSig)
Executes the callback.
virtual void init(const char *name)
Initializes the callback with the resource name.
A singleton class that manages loading resource files (files contained within a .arc file).
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.
void setRes(const char *path, char **names, int count, EGG::Heap *heap)
Registers multiple archives to be loaded.
resCallback_c mCallback
The callback for after a file has been loaded.
bool setRes(const char *arcName, const char *containingFolder, u8 allocDir, EGG::Heap *heap)
Registers an archive to be loaded next.
bool init(u16 maxCount, callback_c *callback)
Initializes the dRes_c.