#include <mpqfile.h>
25 fprintf(stderr,
"Can't open %s, size[hi] = %u!\n", filename,
uint32(hi));
#define CASC_LOCALE_ALL
Definition: CascLib.h:64
void * HANDLE
Definition: CascPort.h:146
FMT_API int fprintf(std::FILE *f, CStringRef format, ArgList args)
bool eof
Definition: mpqfile.h:35
#define ERROR_FILE_NOT_FOUND
Definition: CascPort.h:205
char * buffer
Definition: mpqfile.h:36
DWORD WINAPI CascGetFileSize(HANDLE hFile, PDWORD pdwFileSizeHigh)
Definition: CascReadFile.cpp:367
size_t pointer
Definition: mpqfile.h:37
unsigned int DWORD
Definition: CascPort.h:139
int GetLastError()
Definition: Common.cpp:70
bool WINAPI CascCloseFile(HANDLE hFile)
Definition: CascOpenFile.cpp:273
bool WINAPI CascReadFile(HANDLE hFile, void *lpBuffer, DWORD dwToRead, PDWORD pdwRead)
Definition: CascReadFile.cpp:459
size_t read(void *dest, size_t bytes)
Definition: mpqfile.cpp:52
size_t size
Definition: mpqfile.h:37
uint32_t uint32
Definition: g3dmath.h:168
bool WINAPI CascOpenFile(HANDLE hStorage, const char *szFileName, DWORD dwLocale, DWORD dwFlags, HANDLE *phFile)
Definition: CascOpenFile.cpp:196
void close()
Definition: mpqfile.cpp:81
bool eof
Definition: mpqfile.h:35
char * buffer
Definition: mpqfile.h:36
char* MPQFile::getBuffer |
( |
| ) |
|
|
inline |
char * buffer
Definition: mpqfile.h:36
char* MPQFile::getPointer |
( |
| ) |
|
|
inline |
char * buffer
Definition: mpqfile.h:36
size_t pointer
Definition: mpqfile.h:37
size_t MPQFile::getPos |
( |
| ) |
|
|
inline |
size_t pointer
Definition: mpqfile.h:37
size_t MPQFile::getSize |
( |
| ) |
|
|
inline |
size_t size
Definition: mpqfile.h:37
bool eof
Definition: mpqfile.h:35
size_t MPQFile::read |
( |
void * |
dest, |
|
|
size_t |
bytes |
|
) |
| |
bool eof
Definition: mpqfile.h:35
char * buffer
Definition: mpqfile.h:36
size_t pointer
Definition: mpqfile.h:37
size_t size
Definition: mpqfile.h:37
void MPQFile::seek |
( |
int |
offset | ) |
|
bool eof
Definition: mpqfile.h:35
size_t pointer
Definition: mpqfile.h:37
size_t size
Definition: mpqfile.h:37
void MPQFile::seekRelative |
( |
int |
offset | ) |
|
bool eof
Definition: mpqfile.h:35
size_t pointer
Definition: mpqfile.h:37
size_t size
Definition: mpqfile.h:37
The documentation for this class was generated from the following files: