AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "loadlib.h"
Public Member Functions | |
virtual bool | prepareLoadedData () |
uint8 * | GetData () |
uint32 | GetDataSize () |
FileLoader () | |
~FileLoader () | |
bool | loadFile (std::string const &filename, bool log=true) |
virtual void | free () |
virtual bool | prepareLoadedData () |
uint8 * | GetData () |
uint32 | GetDataSize () |
FileLoader () | |
~FileLoader () | |
bool | loadFile (std::string const &filename, bool log=true) |
virtual void | free () |
Public Attributes | |
file_MVER * | version |
Private Attributes | |
uint8 * | data |
uint32 | data_size |
FileLoader::FileLoader | ( | ) |
FileLoader::~FileLoader | ( | ) |
References free().
FileLoader::FileLoader | ( | ) |
FileLoader::~FileLoader | ( | ) |
|
virtual |
Reimplemented in ADT_file, and WDT_file.
References data, data_size, and version.
Referenced by ADT_file::free(), WDT_file::free(), loadFile(), and ~FileLoader().
|
inline |
bool FileLoader::loadFile | ( | std::string const & | filename, |
bool | log = true |
||
) |
References MPQFile::close(), data, data_size, free(), MPQFile::getSize(), MPQFile::isEof(), prepareLoadedData(), and MPQFile::read().
Referenced by ConvertADT(), and ExtractMapsFromMpq().
bool FileLoader::loadFile | ( | std::string const & | filename, |
bool | log = true |
||
) |
|
virtual |
Reimplemented in ADT_file, and WDT_file.
References data, u_map_fcc::fcc, file_MVER::fcc, FILE_FORMAT_VERSION, MverMagic, file_MVER::ver, and version.
Referenced by loadFile(), ADT_file::prepareLoadedData(), and WDT_file::prepareLoadedData().
|
private |
Referenced by FileLoader(), free(), GetData(), loadFile(), and prepareLoadedData().
|
private |
Referenced by FileLoader(), free(), GetDataSize(), and loadFile().
file_MVER * FileLoader::version |
Referenced by FileLoader(), free(), prepareLoadedData(), ADT_file::prepareLoadedData(), and WDT_file::prepareLoadedData().