NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches

#include <game/cLib/c_dylink.hpp>

Description

A debug map file wrapper.

Wraps nw4r::db::MapFile to provide a simpler interface for managing debug map files.

Definition at line 11 of file c_dylink.hpp.

Public Member Functions

 DbMapFile ()
 Creates the map file.
 ~DbMapFile ()
 Destroys the map file.
void RegisterOnDvd (const char *path, const OSModuleInfo *moduleInfo)
 Loads and registers a map file from disc.
void Unregister ()
 Unregisters the map file.

Public Attributes

nw4r::db::MapFile * mpMapFile
 A pointer to the internal MapFile instance.
u8 mBuf [sizeof(nw4r::db::MapFile)]
 The raw storage for the MapFile instance.

Constructor & Destructor Documentation

◆ DbMapFile()

DbMapFile::DbMapFile ( )
inline

Creates the map file.

Definition at line 14 of file c_dylink.hpp.

◆ ~DbMapFile()

DbMapFile::~DbMapFile ( )

Destroys the map file.

Note
The map file is unregistered automatically on destruction.

Definition at line 345 of file c_dylink.cpp.

Member Function Documentation

◆ RegisterOnDvd()

void DbMapFile::RegisterOnDvd ( const char * path,
const OSModuleInfo * moduleInfo )

Loads and registers a map file from disc.

Parameters
pathThe path to the map file on disc.
moduleInfoThe module information associated with this map file, or nullptr if the map file belongs to a non-relocatable module.

Definition at line 351 of file c_dylink.cpp.

◆ Unregister()

void DbMapFile::Unregister ( )

Unregisters the map file.

Note
Safe to call multiple times; subsequent calls have no effect.

Definition at line 355 of file c_dylink.cpp.

Member Data Documentation

◆ mpMapFile

nw4r::db::MapFile* DbMapFile::mpMapFile

A pointer to the internal MapFile instance.

Definition at line 30 of file c_dylink.hpp.

◆ mBuf

u8 DbMapFile::mBuf[sizeof(nw4r::db::MapFile)]

The raw storage for the MapFile instance.

Definition at line 31 of file c_dylink.hpp.