NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
dRes_c::callback_c Class Referenceabstract

#include <dol/bases/d_res.hpp>

Inheritance diagram for dRes_c::callback_c:
[legend]

Description

A callback class for processing resources.

The calls to execute occur during the initial loading of an archive.

Definition at line 17 of file d_res.hpp.

Public Member Functions

virtual void init (const char *name)=0
 Initializes the callback with the resource name.
 
virtual void * execute (void *data, u32 folderSig)=0
 Executes the callback.
 

Member Function Documentation

◆ init()

virtual void dRes_c::callback_c::init ( const char *  name)
pure virtual

Initializes the callback with the resource name.

Implemented in dResMng_c::resCallback_c.

◆ execute()

virtual void * dRes_c::callback_c::execute ( void *  data,
u32  folderSig 
)
pure virtual

Executes the callback.

Parameters
dataThe resource data.
folderSigThe first 4 characters of the folder name.
Returns
The resource data.

Implemented in dResMng_c::resCallback_c.