#include "loadlib.h"
◆ FileLoader() [1/2]
FileLoader::FileLoader |
( |
| ) |
|
29{
33}
uint32 data_size
Definition loadlib.h:50
file_MVER * version
Definition loadlib.h:56
uint8 * data
Definition loadlib.h:49
References data, data_size, and version.
◆ ~FileLoader() [1/2]
FileLoader::~FileLoader |
( |
| ) |
|
36{
38}
virtual void free()
Definition loadlib.cpp:76
References free().
◆ FileLoader() [2/2]
FileLoader::FileLoader |
( |
| ) |
|
◆ ~FileLoader() [2/2]
FileLoader::~FileLoader |
( |
| ) |
|
◆ free() [1/2]
void FileLoader::free |
( |
| ) |
|
|
virtual |
◆ free() [2/2]
virtual void FileLoader::free |
( |
| ) |
|
|
virtual |
◆ GetData() [1/2]
uint8 * FileLoader::GetData |
( |
| ) |
|
|
inline |
◆ GetData() [2/2]
uint8 * FileLoader::GetData |
( |
| ) |
|
|
inline |
◆ GetDataSize() [1/2]
uint32 FileLoader::GetDataSize |
( |
| ) |
|
|
inline |
◆ GetDataSize() [2/2]
uint32 FileLoader::GetDataSize |
( |
| ) |
|
|
inline |
◆ loadFile() [1/2]
bool FileLoader::loadFile |
( |
std::string const & |
filename, |
|
|
bool |
log = true |
|
) |
| |
41{
44 if (mf.isEof())
45 {
46 if (log)
47 printf("No such file %s\n", fileName.c_str());
48 return false;
49 }
50
52
55 mf.close();
57 return true;
58
59 printf("Error loading %s", fileName.c_str());
60 mf.close();
62 return false;
63}
std::uint8_t uint8
Definition Define.h:109
virtual bool prepareLoadedData()
Definition loadlib.cpp:65
Definition mpq_libmpq04.h:74
References MPQFile::close(), data, data_size, free(), MPQFile::getSize(), MPQFile::isEof(), prepareLoadedData(), and MPQFile::read().
Referenced by ConvertADT(), and ExtractMapsFromMpq().
◆ loadFile() [2/2]
bool FileLoader::loadFile |
( |
std::string const & |
filename, |
|
|
bool |
log = true |
|
) |
| |
◆ prepareLoadedData() [1/2]
bool FileLoader::prepareLoadedData |
( |
| ) |
|
|
virtual |
◆ prepareLoadedData() [2/2]
virtual bool FileLoader::prepareLoadedData |
( |
| ) |
|
|
virtual |
◆ data
◆ data_size
◆ version
The documentation for this class was generated from the following files:
- azerothcore-wotlk/src/tools/map_extractor/loadlib/loadlib.h
- azerothcore-wotlk/src/tools/vmap4_extractor/loadlib/loadlib.h
- azerothcore-wotlk/src/tools/map_extractor/loadlib.cpp