mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
Rebase resync
This commit is contained in:
parent
a0797532e8
commit
1997c1e903
3106 changed files with 11118 additions and 627576 deletions
|
|
@ -53,12 +53,12 @@ typedef uint8_t uint8;
|
|||
#endif
|
||||
|
||||
typedef std::deque<HANDLE> ArchiveSet;
|
||||
typedef std::pair<ArchiveSet::const_iterator,ArchiveSet::const_iterator> ArchiveSetBounds;
|
||||
typedef std::pair<ArchiveSet::const_iterator, ArchiveSet::const_iterator> ArchiveSetBounds;
|
||||
|
||||
bool OpenArchive(char const* mpqFileName, HANDLE* mpqHandlePtr = NULL);
|
||||
bool OpenNewestFile(char const* filename, HANDLE* fileHandlerPtr);
|
||||
ArchiveSetBounds GetArchivesBounds();
|
||||
bool ExtractFile( char const* mpq_name, std::string const& filename );
|
||||
bool ExtractFile(char const* mpq_name, std::string const& filename);
|
||||
void CloseArchives();
|
||||
|
||||
#define FILE_FORMAT_VERSION 18
|
||||
|
|
@ -68,7 +68,8 @@ void CloseArchives();
|
|||
//
|
||||
struct file_MVER
|
||||
{
|
||||
union{
|
||||
union
|
||||
{
|
||||
uint32 fcc;
|
||||
char fcc_txt[4];
|
||||
};
|
||||
|
|
@ -76,18 +77,19 @@ struct file_MVER
|
|||
uint32 ver;
|
||||
};
|
||||
|
||||
class FileLoader{
|
||||
uint8 *data;
|
||||
uint32 data_size;
|
||||
public:
|
||||
virtual bool prepareLoadedData();
|
||||
uint8 *GetData() {return data;}
|
||||
uint32 GetDataSize() {return data_size;}
|
||||
class FileLoader
|
||||
{
|
||||
uint8* data;
|
||||
uint32 data_size;
|
||||
public:
|
||||
virtual bool prepareLoadedData();
|
||||
uint8* GetData() {return data;}
|
||||
uint32 GetDataSize() {return data_size;}
|
||||
|
||||
file_MVER *version;
|
||||
FileLoader();
|
||||
~FileLoader();
|
||||
bool loadFile(char *filename, bool log = true);
|
||||
virtual void free();
|
||||
file_MVER* version;
|
||||
FileLoader();
|
||||
~FileLoader();
|
||||
bool loadFile(char* filename, bool log = true);
|
||||
virtual void free();
|
||||
};
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue