📄 mpq.h
字号:
//+-----------------------------------------------------------------------------
//| 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -