stormhelp.h

来自「mpq文件的格式就是一种压缩格式」· C头文件 代码 · 共 53 行

H
53
字号
/*****************************************************************************/
/* StormHelp.h                            Copyright (c) Ladislav Zezula 2003 */
/*---------------------------------------------------------------------------*/
/* Helps with some MPQ operations                                            */
/*---------------------------------------------------------------------------*/
/*   Date    Ver   Who  Comment                                              */
/* --------  ----  ---  -------                                              */
/* 05.04.03  1.00  Lad  The first version of StormHelp.h                     */
/*****************************************************************************/

#ifndef __STORMHELP_H__
#define __STORMHELP_H__

//-----------------------------------------------------------------------------
// Helper functions

// Returns TRUE of the file name appears to be a Mac file name
BOOL IsMacFileName(const char * szFileName);

// Retrieves Blizzard-specific file type
int    GetBlizzardFileTypeName(const char * szFileName, SHFILEINFO & sfi);

// Gets pointer to plain file name and to ext
char * GetPlainName(const char * szFileName);
char * GetFileExt(const char * szFileName);

// Ensures that the path exists.
int ForcePathExist(const char * szPathName);

// Creates the name of a local file from archived file name
CString GetLocalFileName(const char * szArchivedName, BOOL bKeepPath);

// Creates the name of a temporary file
CString GetTempFileName(const char * szFileName);
     
// Adds/removes backslash to path
void RemoveBackslash(char * szPathName);
void AddBackslash(char * szPathName);

// Deletes the string list
void FreeStringList(CPtrList *& pList);

// Fills a combobox with supported locales
void FillLocalesAndSelect(CComboBox * pCombo, LCID lcID);

// Converts hexa string to 32-bit integer
int StrToInt(const char * ptr, char ** end, int root);

// Retrieves flags for adding a file into archive
int GetAddFlagsByName(TAddFlags * pFlags, int nFlags, const char * szName, DWORD & dwFlags, DWORD & dwQuality);

#endif // __STORMHELP_H__

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?