ManaPlus
Namespaces | Macros | Functions | Variables
zipreader.cpp File Reference

(986a3bf)

#include "fs/virtfs/zipreader.h"
#include "fs/paths.h"
#include "fs/virtfs/zipentry.h"
#include "fs/virtfs/ziplocalheader.h"
#include "utils/cast.h"
#include "utils/checkutils.h"
#include "utils/delete2.h"
#include "utils/stringutils.h"
#include <zlib.h>
#include <SDL_endian.h>
#include "debug.h"

Go to the source code of this file.

Namespaces

 VirtFs
 
 VirtFs::ZipReader
 

Macros

#define readVal(val, sz, msg)
 
#define swapVal16(val)
 
#define swapVal32(val)
 

Functions

bool VirtFs::ZipReader::readArchiveInfo (ZipEntry *entry)
 
void VirtFs::ZipReader::reportZlibError (std::string &text, int err)
 
std::string VirtFs::ZipReader::getZlibError (int err)
 
uint8_t * VirtFs::ZipReader::readCompressedFile (ZipLocalHeader *header)
 
uint8_t * VirtFs::ZipReader::readFile (ZipLocalHeader *header)
 

Variables

char * dirSeparator
 

Macro Definition Documentation

◆ readVal

#define readVal (   val,
  sz,
  msg 
)
Value:
cnt = fread(static_cast<void*>(val), 1, sz, arcFile); \
if (cnt != (sz)) \
{ \
reportAlways("Error reading " msg " in file %s", \
archiveName.c_str()) \
delete2(header) \
delete [] buf; \
fclose(arcFile); \
return false; \
}
bool msg(InputEvent &event)
Definition: chat.cpp:39

Definition at line 50 of file zipreader.cpp.

◆ swapVal16

#define swapVal16 (   val)

Definition at line 66 of file zipreader.cpp.

◆ swapVal32

#define swapVal32 (   val)

Definition at line 67 of file zipreader.cpp.

Variable Documentation

◆ dirSeparator

char* dirSeparator
extern