NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
d_res_mng.hpp
Go to the documentation of this file.
1#pragma once
2#include <types.h>
3#include <game/bases/d_res.hpp>
5
6#define MAX_NUM_RES 300
7
20class dResMng_c {
21private:
24 public:
25 virtual void init(const char *name);
26 virtual void *execute(void *data, u32 folderSig, const char* path);
27 };
28
29public:
30 dResMng_c();
31 virtual ~dResMng_c();
32
40 void setRes(const char *path, const char **names, int count, EGG::Heap *heap);
41
49 bool setRes(const char *path, const char *name, EGG::Heap *heap);
50
52
53private:
55
56public:
58};
A callback class for processing resources that handles loading g3d data.
Definition d_res_mng.hpp:23
virtual void * execute(void *data, u32 folderSig, const char *path)
Executes the callback.
Definition d_res_mng.cpp:18
virtual void init(const char *name)
Initializes the callback with the resource name.
Definition d_res_mng.cpp:16
A higher-level archive resource management class.
Definition d_res_mng.hpp:20
static dResMng_c * m_instance
The instance of this class.
Definition d_res_mng.hpp:57
virtual ~dResMng_c()
Destroys this dResMng_c.
Definition d_res_mng.cpp:12
dRes_c mRes
The resource manager.
Definition d_res_mng.hpp:51
dResMng_c()
Constructs a new dResMng_c.
Definition d_res_mng.cpp:7
resCallback_c mCallback
The callback for after a file has been loaded.
Definition d_res_mng.hpp:54
void setRes(const char *path, const char **names, int count, EGG::Heap *heap)
Schedules multiple archives for loading.
Definition d_res_mng.cpp:31
A callback class for processing resources.
Definition d_res.hpp:82
An archive resource management class.
Definition d_res.hpp:77