Subversion Repositories spk

Rev

Rev 98 | Rev 121 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 98 Rev 109
Line 12... Line 12...
12
#include "lists.h"
12
#include "lists.h"
13
#include "StringList.h"
13
#include "StringList.h"
14
#include "File.h"
14
#include "File.h"
15
#include "Utils/String.h"
15
#include "Utils/String.h"
16
#include "Utils/StringList.h"
16
#include "Utils/StringList.h"
-
 
17
#include "archive/zip.h"
17
 
18
 
18
#include "Package/CorePackage.h"
19
#include "Package/CorePackage.h"
19
 
20
 
20
#define GAME_ALL			0
21
#define GAME_ALL			0
21
#define GAME_X2				1
22
#define GAME_X2				1
Line 185... Line 186...
185
	virtual bool ExtractFile ( C_File *file, CyString dir, bool includedir = true, CProgressInfo *progress = NULL );
186
	virtual bool ExtractFile ( C_File *file, CyString dir, bool includedir = true, CProgressInfo *progress = NULL );
186
	virtual bool ExtractFile ( int file, CyString dir, bool includedir = true, CProgressInfo *progress = NULL );
187
	virtual bool ExtractFile ( int file, CyString dir, bool includedir = true, CProgressInfo *progress = NULL );
187
	virtual bool ExtractAll ( CyString dir, int game, bool includedir = true, CProgressInfo *progress = NULL );
188
	virtual bool ExtractAll ( CyString dir, int game, bool includedir = true, CProgressInfo *progress = NULL );
188
 
189
 
189
	virtual bool SaveToArchive(CyString filename, int game, CProgressInfo *progress = NULL);
190
	virtual bool SaveToArchive(CyString filename, int game, CProgressInfo *progress = NULL);
-
 
191
	virtual void addGeneratedFiles(HZIP &hz) {};
-
 
192
 
190
	void ClearFileData();
193
	void ClearFileData();
191
 
194
 
192
	CLinkList<SNames> *GetNamesList() { return &m_lNames; }
195
	CLinkList<SNames> *GetNamesList() { return &m_lNames; }
193
 
196
 
194
	// reading files
197
	// reading files
Line 305... Line 308...
305
	C_File *_install_checkFile(C_File *pFile, CyStringList *errorStr, bool *bDoFile, CLinkList<C_File> *pFileList);
308
	C_File *_install_checkFile(C_File *pFile, CyStringList *errorStr, bool *bDoFile, CLinkList<C_File> *pFileList);
306
	bool _install_checkFileEnable(C_File *pCheckFile, C_File *fit, const Utils::String &sDestination, bool bEnabled, CyStringList *errorStr);
309
	bool _install_checkFileEnable(C_File *pCheckFile, C_File *fit, const Utils::String &sDestination, bool bEnabled, CyStringList *errorStr);
307
	bool _install_createDirectory(CDirIO &Dir, const Utils::String &sTo, C_File *pFile, CyStringList *errorStr);
310
	bool _install_createDirectory(CDirIO &Dir, const Utils::String &sTo, C_File *pFile, CyStringList *errorStr);
308
	void _install_writeFile(C_File *pFile, const Utils::String &sDestination, CyStringList *errorStr);
311
	void _install_writeFile(C_File *pFile, const Utils::String &sDestination, CyStringList *errorStr);
309
 
312
 
310
	int _read_FileHeader(std::fstream &stream, int iReadType, int iMaxProgress, int iDoneLen, CProgressInfo *pProgress);
313
	int _read_FileHeader(CFileIO &File, int iReadType, int iMaxProgress, int iDoneLen, CProgressInfo *pProgress);
311
	int _read_Header(std::fstream &stream, int iReadType, int iMaxProgress, CProgressInfo *pProgress);
314
	int _read_Header(CFileIO &File, int iReadType, int iMaxProgress, CProgressInfo *pProgress);
312
	CFileIO *_startRead();
315
	CFileIO *_startRead();
313
 
316
 
314
	void _addFile(C_File *file, bool dontChange = false);
317
	void _addFile(C_File *file, bool dontChange = false);
315
	void _updateTextDB(C_File *file);
318
	void _updateTextDB(C_File *file);
316
	void _resetTextDB();
319
	void _resetTextDB();