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

#include <game/bases/d_res.hpp>

Description

A callback class for EGG::Archive::searchInside.

Unofficial name.

Definition at line 99 of file d_res.hpp.

Public Member Functions

 searchCallback_c (callback_c *callback, u8 **files, int numFiles, int fileIdx, u32 folderSig)
 Constructs a new searchCallback_c.
 

Static Public Member Functions

static void callback (void *cbInfo, void *file, const ARCDirEntry *dirEntry, const char *path)
 The callback function.
 

Private Member Functions

void callback (void *file, const ARCDirEntry *dirEntry, const char *path)
 The internal callback function.
 

Private Attributes

callback_cmpCallback
 The file processing callback.
 
u8 ** mpFiles
 An array of pointers to the data of each loaded resource.
 
int mNumFiles
 The number of files in mpFiles.
 
unsigned int mFileIdx
 The index of the current file in mpFiles.
 
u32 mFolderSig
 The first 4 characters of the current folder.
 

Constructor & Destructor Documentation

◆ searchCallback_c()

dRes_c::searchCallback_c::searchCallback_c ( callback_c * callback,
u8 ** files,
int numFiles,
int fileIdx,
u32 folderSig )
inline

Constructs a new searchCallback_c.

Definition at line 102 of file d_res.hpp.

Member Function Documentation

◆ callback() [1/2]

void dRes_c::searchCallback_c::callback ( void * cbInfo,
void * file,
const ARCDirEntry * dirEntry,
const char * path )
static

The callback function.

Definition at line 139 of file d_res_info.cpp.

◆ callback() [2/2]

void dRes_c::searchCallback_c::callback ( void * file,
const ARCDirEntry * dirEntry,
const char * path )
private

The internal callback function.

Definition at line 123 of file d_res_info.cpp.

Member Data Documentation

◆ mpCallback

callback_c* dRes_c::searchCallback_c::mpCallback
private

The file processing callback.

Definition at line 117 of file d_res.hpp.

◆ mpFiles

u8** dRes_c::searchCallback_c::mpFiles
private

An array of pointers to the data of each loaded resource.

Definition at line 118 of file d_res.hpp.

◆ mNumFiles

int dRes_c::searchCallback_c::mNumFiles
private

The number of files in mpFiles.

Definition at line 119 of file d_res.hpp.

◆ mFileIdx

unsigned int dRes_c::searchCallback_c::mFileIdx
private

The index of the current file in mpFiles.

Definition at line 120 of file d_res.hpp.

◆ mFolderSig

u32 dRes_c::searchCallback_c::mFolderSig
private

The first 4 characters of the current folder.

Definition at line 121 of file d_res.hpp.