Crossfire Server, Trunk
|
#include <TarLoader.h>
Public Member Functions | |
virtual void | load (BufferReader *reader, const std::string &filename) override |
TarLoader (AssetLoader *loader) | |
virtual bool | willLoad (const std::string &filename) override |
virtual | ~TarLoader () |
Public Member Functions inherited from AssetLoader | |
virtual | ~AssetLoader () |
Private Attributes | |
AssetLoader * | m_loader |
BufferReader * | m_reader |
Definition at line 8 of file TarLoader.h.
TarLoader::TarLoader | ( | AssetLoader * | loader | ) |
Definition at line 16 of file TarLoader.cpp.
References bufferreader_create(), and m_reader.
|
virtual |
Definition at line 20 of file TarLoader.cpp.
References bufferreader_destroy(), and m_reader.
|
overridevirtual |
Load assets from the specified reader.
reader | reader. |
filename | full filename. |
Implements AssetLoader.
Definition at line 43 of file TarLoader.cpp.
References bufferreader_init_from_tar_file(), mtar_t::close, npc_dialog::filename, AssetLoader::load(), m_loader, m_reader, mtar_close(), MTAR_ESUCCESS, mtar_next(), mtar_read_header(), mtar_header_t::name, mtar_t::read, mtar_t::seek, mtar_t::stream, tar_close(), tar_read(), tar_seek(), and AssetLoader::willLoad().
|
inlineoverridevirtual |
Whether this instance will process or not the specified file.
filename | full file path. |
Implements AssetLoader.
Definition at line 13 of file TarLoader.h.
References Utils::endsWith(), and npc_dialog::filename.
|
private |
Definition at line 21 of file TarLoader.h.
Referenced by load().
|
private |
Definition at line 20 of file TarLoader.h.
Referenced by load(), TarLoader(), and ~TarLoader().