|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <loadlib.h>
Public Member Functions | |
| ChunkedFile () | |
| void | free () |
| FileChunk * | GetChunk (std::string const &name) |
| uint8 * | GetData () |
| uint32 | GetDataSize () |
| bool | loadFile (HANDLE mpq, char *filename, bool log=true) |
| void | parseChunks () |
| bool | prepareLoadedData () |
| virtual | ~ChunkedFile () |
Public Attributes | |
| std::multimap< std::string, FileChunk * > | chunks |
| uint8 * | data |
| uint32 | data_size |
| ChunkedFile::ChunkedFile | ( | ) |
Definition at line 13 of file loadlib.cpp.
|
virtual |
Definition at line 19 of file loadlib.cpp.
References free().
| void ChunkedFile::free | ( | ) |
Definition at line 66 of file loadlib.cpp.
References chunks, data, and data_size.
Referenced by loadFile(), and ~ChunkedFile().
| FileChunk * ChunkedFile::GetChunk | ( | std::string const & | name | ) |
Definition at line 122 of file loadlib.cpp.
References chunks.
Referenced by ConvertADT(), ExtractMapsFromMpq(), and prepareLoadedData().
|
inline |
|
inline |
| bool ChunkedFile::loadFile | ( | HANDLE | mpq, |
| char * | filename, | ||
| bool | log = true ) |
Definition at line 24 of file loadlib.cpp.
References data, data_size, free(), parseChunks(), and prepareLoadedData().
Referenced by ConvertADT(), and ExtractMapsFromMpq().
| void ChunkedFile::parseChunks | ( | ) |
Definition at line 96 of file loadlib.cpp.
References chunks, data_size, u_map_fcc::fcc_txt, GetData(), GetDataSize(), and IsInterestingChunk().
Referenced by loadFile().
| bool ChunkedFile::prepareLoadedData | ( | ) |
Definition at line 51 of file loadlib.cpp.
References file_MVER::fcc, FILE_FORMAT_VERSION, GetChunk(), MverMagic, and file_MVER::ver.
Referenced by loadFile().
| std::multimap<std::string, FileChunk*> ChunkedFile::chunks |
Definition at line 91 of file loadlib.h.
Referenced by ConvertADT(), free(), GetChunk(), and parseChunks().
| uint8* ChunkedFile::data |
Definition at line 79 of file loadlib.h.
Referenced by ChunkedFile(), free(), GetData(), and loadFile().
| uint32 ChunkedFile::data_size |
Definition at line 80 of file loadlib.h.
Referenced by ChunkedFile(), free(), GetDataSize(), loadFile(), and parseChunks().