1 #define _CRT_SECURE_NO_DEPRECATE
2 #ifndef _CRT_SECURE_NO_WARNINGS // fuck the police^Wwarnings
3 #define _CRT_SECURE_NO_WARNINGS
44 MPQFile(
HANDLE mpq,
const char* filename,
bool warnNoExist =
true);
46 size_t read(
void* dest,
size_t bytes);
52 void seek(
int offset);
void flipcc(char *fcc)
Definition: mpqfile.h:57
void * HANDLE
Definition: CascPort.h:146
MPQFile(const MPQFile &f)
uint32_t uint32
Definition: mpqfile.h:22
signed short int16_t
Definition: stdint.h:76
size_t getPos()
Definition: mpqfile.h:48
~MPQFile()
Definition: mpqfile.h:45
void close()
Definition: mpqfile.cpp:81
uint16_t uint16
Definition: mpqfile.h:23
char * getBuffer()
Definition: mpqfile.h:49
bool isEof()
Definition: mpqfile.h:51
size_t getSize()
Definition: mpqfile.h:47
signed __int64 int64_t
Definition: stdint.h:89
bool eof
Definition: mpqfile.h:35
unsigned int uint32_t
Definition: stdint.h:80
unsigned __int64 uint64_t
Definition: stdint.h:90
void seekRelative(int offset)
Definition: mpqfile.cpp:75
char * buffer
Definition: mpqfile.h:36
void operator=(const MPQFile &f)
int64_t int64
Definition: mpqfile.h:17
int8_t int8
Definition: mpqfile.h:20
size_t pointer
Definition: mpqfile.h:37
int16_t int16
Definition: mpqfile.h:19
int GetLastError()
Definition: Common.cpp:70
char * getPointer()
Definition: mpqfile.h:50
unsigned char uint8_t
Definition: stdint.h:78
size_t read(void *dest, size_t bytes)
Definition: mpqfile.cpp:52
signed char int8_t
Definition: stdint.h:75
uint64_t uint64
Definition: mpqfile.h:21
signed int int32_t
Definition: stdint.h:77
size_t size
Definition: mpqfile.h:37
int32_t int32
Definition: mpqfile.h:18
uint8_t uint8
Definition: mpqfile.h:24
void seek(int offset)
Definition: mpqfile.cpp:69
unsigned short uint16_t
Definition: stdint.h:79