mpq.h
来自「骨骼动画....把魔兽模型解出的代码..」· C头文件 代码 · 共 54 行
H
54 行
//+-----------------------------------------------------------------------------
//| Inclusion guard
//+-----------------------------------------------------------------------------
#ifndef MAGOS_MPQ_H
#define MAGOS_MPQ_H
//+-----------------------------------------------------------------------------
//| Included files
//+-----------------------------------------------------------------------------
#include "Buffer.h"
#include "StormLibStatic.h"
//+-----------------------------------------------------------------------------
//| Mpq class
//+-----------------------------------------------------------------------------
class MPQ
{
public:
CONSTRUCTOR MPQ();
DESTRUCTOR ~MPQ();
BOOL Open(CONST std::string& FileName);
VOID Close();
INT GetNrOfFiles();
VOID GetFileList(std::list<std::string>& FileList);
BOOL FileExists(CONST std::string& FileName);
INT GetFileSize(CONST std::string& FileName);
BOOL LoadFile(CONST std::string& FileName, BUFFER& Buffer);
BOOL ExportFile(CONST std::string& FileName, CONST std::string& RealFileName);
protected:
HANDLE MpqHandle;
};
//+-----------------------------------------------------------------------------
//| Global objects
//+-----------------------------------------------------------------------------
extern MPQ Mpq;
extern MPQ MpqWar3;
extern MPQ MpqWar3x;
extern MPQ MpqWar3xLocal;
extern MPQ MpqWar3Patch;
//+-----------------------------------------------------------------------------
//| End of inclusion guard
//+-----------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?