- Add file documentation to about 1/4 of the files in Source - Copy over a lot of the documentation from the sanctuary/notes repo - Standardise all the existing documentation - Create a configuration for Doxygen - Add more documentation (engine.cpp is now fully documented)
20 lines
645 B
C
20 lines
645 B
C
/**
|
|
* @file encrypt.h
|
|
*
|
|
* Interface of functions for compression and decompressing MPQ data.
|
|
*/
|
|
#ifndef __ENCRYPT_H__
|
|
#define __ENCRYPT_H__
|
|
|
|
extern DWORD hashtable[1280];
|
|
|
|
void Decrypt(void *block, DWORD size, DWORD key);
|
|
void Encrypt(void *block, DWORD size, DWORD key);
|
|
DWORD Hash(const char *s, int type);
|
|
void InitHash();
|
|
int PkwareCompress(void *buf, int size);
|
|
unsigned int __cdecl PkwareBufferRead(char *buf, unsigned int *size, void *param);
|
|
void __cdecl PkwareBufferWrite(char *buf, unsigned int *size, void *param);
|
|
void PkwareDecompress(void *param, int recv_size, int dwMaxBytes);
|
|
|
|
#endif /* __ENCRYPT_H__ */
|