ManaPlus
|
Functions | |
FsFuncs * | getFuncs () |
void | deinit () |
void | init () |
void | initFuncs (FsFuncs *const ptr) |
bool | getRealDir (FsEntry *const entry, std::string filename, std::string dirName, std::string &realDir) |
bool | exists (FsEntry *const entry, std::string filename, std::string dirName) |
void | enumerate (FsEntry *const entry, std::string dirName, StringVect &names) |
void | getFiles (FsEntry *const entry, std::string dirName, StringVect &names) |
void | getFilesWithDir (FsEntry *const entry, const std::string &dirName, StringVect &names) |
void | getDirs (FsEntry *const entry, std::string dirName, StringVect &names) |
bool | isDirectory (FsEntry *const entry, std::string dirName, bool &isDirFlag) |
void | freeList (List *const handle) |
File * | openRead (FsEntry *const entry, std::string filename) |
File * | openWrite (FsEntry *const entry, const std::string &filename) |
File * | openAppend (FsEntry *const entry, const std::string &filename) |
int | close (File *const file) |
int64_t | read (File *const file, void *const buffer, const uint32_t objSize, const uint32_t objCount) |
int64_t | write (File *const file, const void *const buffer, const uint32_t objSize, const uint32_t objCount) |
int64_t | fileLength (File *const file) |
int64_t | tell (File *const file) |
int | seek (File *const file, const uint64_t pos) |
int | eof (File *const file) |
const char * | loadFile (FsEntry *const entry, std::string filename, int &fileSize) |
File * | openReadInternal (const std::string &filename) |
int32_t | rwops_seek (SDL_RWops *const rw, const int32_t offset, const int whence) |
int | rwops_read (SDL_RWops *const rw, void *const ptr, const int size, const int maxnum) |
int | rwops_write (SDL_RWops *const rw, const void *const ptr, const int size, const int num) |
int | rwops_close (SDL_RWops *const rw) |
int VirtFs::FsZip::close | ( | File *const | file | ) |
Definition at line 583 of file fszip.cpp.
Referenced by initFuncs().
void VirtFs::FsZip::deinit | ( | ) |
void VirtFs::FsZip::enumerate | ( | FsEntry *const | entry, |
std::string | dirName, | ||
StringVect & | names | ||
) |
Definition at line 157 of file fszip.cpp.
References dirSeparator, VirtFs::ZipLocalHeader::fileName, fileName, findCutFirst(), FOR_EACH, VirtFs::ZipEntry::mHeaders, pathJoin(), and VirtFs::FsEntry::subDir.
Referenced by initFuncs().
int VirtFs::FsZip::eof | ( | File *const | file | ) |
bool VirtFs::FsZip::exists | ( | FsEntry *const | entry, |
std::string | filename, | ||
std::string | dirName | ||
) |
Definition at line 129 of file fszip.cpp.
References FOR_EACH, VirtFs::ZipEntry::mDirs, VirtFs::ZipEntry::mHeaders, pathJoin(), and VirtFs::FsEntry::subDir.
Referenced by initFuncs().
int64_t VirtFs::FsZip::fileLength | ( | File *const | file | ) |
Definition at line 638 of file fszip.cpp.
Referenced by initFuncs().
void VirtFs::FsZip::freeList | ( | List *const | handle | ) |
void VirtFs::FsZip::getDirs | ( | FsEntry *const | entry, |
std::string | dirName, | ||
StringVect & | names | ||
) |
Definition at line 419 of file fszip.cpp.
References dirSeparator, VirtFs::ZipLocalHeader::fileName, fileName, findCutFirst(), findLast(), FOR_EACH, VirtFs::ZipEntry::mDirs, VirtFs::ZipEntry::mHeaders, pathJoin(), and VirtFs::FsEntry::subDir.
Referenced by initFuncs().
void VirtFs::FsZip::getFiles | ( | FsEntry *const | entry, |
std::string | dirName, | ||
StringVect & | names | ||
) |
Definition at line 220 of file fszip.cpp.
References dirSeparator, VirtFs::ZipLocalHeader::fileName, fileName, findCutFirst(), findLast(), FOR_EACH, VirtFs::ZipEntry::mDirs, VirtFs::ZipEntry::mHeaders, pathJoin(), and VirtFs::FsEntry::subDir.
Referenced by initFuncs().
void VirtFs::FsZip::getFilesWithDir | ( | FsEntry *const | entry, |
const std::string & | dirName, | ||
StringVect & | names | ||
) |
Definition at line 318 of file fszip.cpp.
References dirSeparator, VirtFs::ZipLocalHeader::fileName, fileName, findCutFirst(), findLast(), FOR_EACH, VirtFs::ZipEntry::mDirs, VirtFs::ZipEntry::mHeaders, pathJoin(), and VirtFs::FsEntry::subDir.
Referenced by initFuncs().
FsFuncs * VirtFs::FsZip::getFuncs | ( | ) |
Definition at line 51 of file fszip.cpp.
References anonymous_namespace{fszip.cpp}::funcs.
Referenced by VirtFs::mountZip(), and VirtFs::mountZip2().
bool VirtFs::FsZip::getRealDir | ( | FsEntry *const | entry, |
std::string | filename, | ||
std::string | dirName, | ||
std::string & | realDir | ||
) |
Definition at line 94 of file fszip.cpp.
References FOR_EACH, VirtFs::ZipEntry::mDirs, VirtFs::ZipEntry::mHeaders, pathJoin(), and VirtFs::FsEntry::subDir.
Referenced by initFuncs().
void VirtFs::FsZip::init | ( | ) |
Definition at line 60 of file fszip.cpp.
References anonymous_namespace{fszip.cpp}::funcs, and initFuncs().
Referenced by VirtFs::init().
void VirtFs::FsZip::initFuncs | ( | FsFuncs *const | ptr | ) |
Definition at line 65 of file fszip.cpp.
References close(), enumerate(), eof(), exists(), fileLength(), getDirs(), getFiles(), getFilesWithDir(), getRealDir(), isDirectory(), loadFile(), openAppend(), openRead(), openWrite(), read(), rwops_close(), rwops_read(), rwops_seek(), rwops_write(), seek(), tell(), and write().
Referenced by init().
bool VirtFs::FsZip::isDirectory | ( | FsEntry *const | entry, |
std::string | dirName, | ||
bool & | isDirFlag | ||
) |
Definition at line 517 of file fszip.cpp.
References FOR_EACH, VirtFs::ZipEntry::mDirs, pathJoin(), and VirtFs::FsEntry::subDir.
Referenced by initFuncs().
const char * VirtFs::FsZip::loadFile | ( | FsEntry *const | entry, |
std::string | filename, | ||
int & | fileSize | ||
) |
Definition at line 674 of file fszip.cpp.
References FOR_EACH, Logger::log(), logger, VirtFs::ZipEntry::mHeaders, pathJoin(), VirtFs::ZipReader::readFile(), restrict, and VirtFs::FsEntry::subDir.
Referenced by initFuncs().
Definition at line 543 of file fszip.cpp.
References FOR_EACH, anonymous_namespace{fszip.cpp}::funcs, VirtFs::ZipEntry::mHeaders, pathJoin(), VirtFs::ZipReader::readFile(), restrict, and VirtFs::FsEntry::subDir.
Referenced by initFuncs().
File* VirtFs::FsZip::openReadInternal | ( | const std::string & | filename | ) |
int64_t VirtFs::FsZip::read | ( | File *const | file, |
void *const | buffer, | ||
const uint32_t | objSize, | ||
const uint32_t | objCount | ||
) |
Definition at line 591 of file fszip.cpp.
References CAST_U32, reportAlways, and restrict.
Referenced by initFuncs().
int VirtFs::FsZip::rwops_close | ( | SDL_RWops *const | rw | ) |
int VirtFs::FsZip::rwops_read | ( | SDL_RWops *const | rw, |
void *const | ptr, | ||
const int | size, | ||
const int | maxnum | ||
) |
Definition at line 112 of file fsziprwops.cpp.
References CAST_S32, CAST_U32, VirtFs::File::funcs, VirtFs::FsFuncs::read, and EmoteDB::size().
Referenced by initFuncs().
int32_t VirtFs::FsZip::rwops_seek | ( | SDL_RWops *const | rw, |
const int32_t | offset, | ||
const int | whence | ||
) |
Definition at line 43 of file fsziprwops.cpp.
References Logger::assertLog(), CAST_S32, logger, VirtFs::File::mPos, anonymous_namespace{mrand.cpp}::mPos, VirtFs::File::mSize, and RWOPSINT.
Referenced by initFuncs().
int VirtFs::FsZip::rwops_write | ( | SDL_RWops *const | rw, |
const void *const | ptr, | ||
const int | size, | ||
const int | num | ||
) |
int VirtFs::FsZip::seek | ( | File *const | file, |
const uint64_t | pos | ||
) |
int64_t VirtFs::FsZip::tell | ( | File *const | file | ) |
Definition at line 646 of file fszip.cpp.
Referenced by initFuncs().
int64_t VirtFs::FsZip::write | ( | File *const | file, |
const void *const | buffer, | ||
const uint32_t | objSize, | ||
const uint32_t | objCount | ||
) |