Devilution
Diablo devolved - magic behind the 1996 computer game
mpqapi.h
Go to the documentation of this file.
1 
6 #ifndef __MPQAPI_H__
7 #define __MPQAPI_H__
8 
9 #include <stdint.h>
10 
11 void mpqapi_remove_hash_entry(const char *pszName);
12 void mpqapi_alloc_block(uint32_t block_offset, uint32_t block_size);
13 _BLOCKENTRY *mpqapi_new_block(int *block_index);
14 int FetchHandle(const char *pszName);
15 int mpqapi_get_hash_index(short index, int hash_a, int hash_b, int locale);
16 void mpqapi_remove_hash_entries(BOOL(*fnGetName)(DWORD, char *));
17 BOOL mpqapi_write_file(const char *pszName, const BYTE *pbData, DWORD dwLen);
18 _BLOCKENTRY *mpqapi_add_file(const char *pszName, _BLOCKENTRY *pBlk, int block_index);
19 BOOL mpqapi_write_file_contents(const char *pszName, const BYTE *pbData, DWORD dwLen, _BLOCKENTRY *pBlk);
20 int mpqapi_find_free_block(uint32_t size, uint32_t *block_size);
21 void mpqapi_rename(char *pszOld, char *pszNew);
22 BOOL mpqapi_has_file(const char *pszName);
23 BOOL OpenMPQ(const char *pszArchive, DWORD dwChar);
24 BOOL mpqapi_flush_and_close(const char *pszArchive, BOOL bFree, DWORD dwChar);
25 /* rdata */
26 
27 /* data */
28 
29 #endif /* __MPQAPI_H__ */
mpqapi_has_file
BOOL mpqapi_has_file(const char *pszName)
Definition: mpqapi.cpp:636
FetchHandle
int FetchHandle(const char *pszName)
Definition: mpqapi.cpp:429
mpqapi_get_hash_index
int mpqapi_get_hash_index(short index, int hash_a, int hash_b, int locale)
Definition: mpqapi.cpp:434
OpenMPQ
BOOL OpenMPQ(const char *pszArchive, DWORD dwChar)
Definition: mpqapi.cpp:641
mpqapi_write_file
BOOL mpqapi_write_file(const char *pszName, const BYTE *pbData, DWORD dwLen)
Definition: mpqapi.cpp:462
mpqapi_new_block
_BLOCKENTRY * mpqapi_new_block(int *block_index)
Definition: mpqapi.cpp:407
mpqapi_remove_hash_entries
void mpqapi_remove_hash_entries(BOOL(*fnGetName)(DWORD, char *))
Definition: mpqapi.cpp:451
mpqapi_add_file
_BLOCKENTRY * mpqapi_add_file(const char *pszName, _BLOCKENTRY *pBlk, int block_index)
Definition: mpqapi.cpp:476
_BLOCKENTRY
Definition: structs.h:1491
mpqapi_flush_and_close
BOOL mpqapi_flush_and_close(const char *pszArchive, BOOL bFree, DWORD dwChar)
Definition: mpqapi.cpp:695
mpqapi_write_file_contents
BOOL mpqapi_write_file_contents(const char *pszName, const BYTE *pbData, DWORD dwLen, _BLOCKENTRY *pBlk)
Definition: mpqapi.cpp:506
mpqapi_alloc_block
void mpqapi_alloc_block(uint32_t block_offset, uint32_t block_size)
Definition: mpqapi.cpp:368
mpqapi_remove_hash_entry
void mpqapi_remove_hash_entry(const char *pszName)
Definition: mpqapi.cpp:349
mpqapi_find_free_block
int mpqapi_find_free_block(uint32_t size, uint32_t *block_size)
Definition: mpqapi.cpp:588
mpqapi_rename
void mpqapi_rename(char *pszOld, char *pszNew)
Definition: mpqapi.cpp:619