3#include <game/bases/d_res.hpp>
15 virtual void init(
const char *name);
16 virtual void *
execute(
void *data, u32 folderSig,
const char* path);
30 void setRes(
const char *path,
const char **names,
int count, EGG::Heap *heap);
39 bool setRes(
const char *path,
const char *name, EGG::Heap *heap);
42 nw4r::g3d::ResFile
getRes(
const char *arcName,
const char *resPath)
const {
43 return mRes.getRes(arcName, resPath);
47 nw4r::g3d::ResFile
getResSilently(
const char *arcName,
const char *resPath)
const {
48 return mRes.getResSilently(arcName, resPath);
53 return mRes.syncAllRes();
A callback class for processing resources that handles loading g3d data.
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.
nw4r::g3d::ResFile getRes(const char *arcName, const char *resPath) const
Gets a resource.
static dResMng_c * m_instance
The instance of this class.
virtual ~dResMng_c()
Destroys this dResMng_c.
dRes_c mRes
The resource manager.
bool syncAllRes()
Attempts to load the resources of an archive that has finished loading since the last call to this fu...
dResMng_c()
Constructs a new dResMng_c.
nw4r::g3d::ResFile getResSilently(const char *arcName, const char *resPath) const
Gets a resource without logging a message if the resource is not found.
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.
A callback class for processing resources.
An archive resource management class.