?? 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 + -