UnPackFile.cpp
上传用户:garry_shen
上传日期:2015-04-15
资源大小:45647k
文件大小:4k
- #include "stdafx.h"
- #include "XMudClient.h"
- #include "Unpackfile.h"
- extern char g_tszPathName[256];
- UNPACKALL :: UNPACKALL (void)
- {
- m_Idx=0;
- Count = 0;
- }
- UNPACKALL :: ~UNPACKALL ( void )
- {
- if(m_Idx!=0)
- {
- delete [] m_Idx;
- m_Idx=0;
- }
- Idxf.Abort();
- Datf.Abort();
- }
- CString UNPACKALL :: GetFile ( char * dirName, const char * fileName )
- {
- CString ret;
- ret = "";
- if(OpenFile(dirName))
- {
- for(int i=0;i<Count;i++)
- if(_stricmp(fileName, m_Idx[i].Name)==0)
- ret = UnpackOne(i);
- }
- else
- {
- char m_Path[256];
- CString Path;//