Subversion Repositories spk

Rev

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

Rev 50 Rev 51
Line 195... Line 195...
195
 
195
 
196
	virtual bool WriteHeader ( FILE *id, int, int );
196
	virtual bool WriteHeader ( FILE *id, int, int );
197
	virtual bool WriteData ( FILE *id, CProgressInfo * = NULL );
197
	virtual bool WriteData ( FILE *id, CProgressInfo * = NULL );
198
	virtual bool WriteFile ( CyString filename, CProgressInfo * = NULL );
198
	virtual bool WriteFile ( CyString filename, CProgressInfo * = NULL );
199
	virtual bool ReadFile ( CyString filename, int readType = SPKREAD_ALL, CProgressInfo *progress = NULL );
199
	virtual bool ReadFile ( CyString filename, int readType = SPKREAD_ALL, CProgressInfo *progress = NULL );
200
	virtual bool ReadFile ( FILE *id, int readtype, CProgressInfo *progress );
200
	bool readFile(std::fstream &stream, int readtype, CProgressInfo *progress);
201
 
201
 
202
	virtual bool ExtractFile ( C_File *file, CyString dir, bool includedir = true, CProgressInfo *progress = NULL );
202
	virtual bool ExtractFile ( C_File *file, CyString dir, bool includedir = true, CProgressInfo *progress = NULL );
203
	virtual bool ExtractFile ( int file, CyString dir, bool includedir = true, CProgressInfo *progress = NULL );
203
	virtual bool ExtractFile ( int file, CyString dir, bool includedir = true, CProgressInfo *progress = NULL );
204
	virtual bool ExtractAll ( CyString dir, int game, bool includedir = true, CProgressInfo *progress = NULL );
204
	virtual bool ExtractAll ( CyString dir, int game, bool includedir = true, CProgressInfo *progress = NULL );
205
 
205
 
Line 217... Line 217...
217
	void RecompressAllFiles ( int compresstype, CProgressInfo *progress );
217
	void RecompressAllFiles ( int compresstype, CProgressInfo *progress );
218
	void CompressAllFiles ( int compresstype, CProgressInfo *progress = NULL, CProgressInfo *overallProgress = NULL, int level = DEFAULT_COMPRESSION_LEVEL );
218
	void CompressAllFiles ( int compresstype, CProgressInfo *progress = NULL, CProgressInfo *overallProgress = NULL, int level = DEFAULT_COMPRESSION_LEVEL );
219
	bool UncompressAllFiles ( CProgressInfo * = NULL );
219
	bool UncompressAllFiles ( CProgressInfo * = NULL );
220
 
220
 
221
	// static functions
221
	// static functions
-
 
222
	static Utils::String readEndOfLine(std::fstream &stream, int *line = NULL, bool upper = true);
222
	static CyString GetEndOfLine ( FILE *id, int *line = NULL, bool upper = true );
223
	static CyString GetEndOfLine ( FILE *id, int *line = NULL, bool upper = true );
223
	static int CheckFile ( CyString filename, float *version = NULL );
224
	static int CheckFile ( CyString filename, float *version = NULL );
224
 
225
 
225
	bool IsFileAdded(C_File *f) { return m_lFiles.FindData(f); }
226
	bool IsFileAdded(C_File *f) { return m_lFiles.FindData(f); }
226
 
227
 
Line 314... Line 315...
314
	bool _install_setEnabled(bool bEnable, C_File *fit);
315
	bool _install_setEnabled(bool bEnable, C_File *fit);
315
	bool _install_checkVersion(C_File *pFile, const Utils::String &sDestination);
316
	bool _install_checkVersion(C_File *pFile, const Utils::String &sDestination);
316
	Utils::String _install_adjustFilepointer(C_File *pFile, bool bEnabled, const Utils::String &sDestination);
317
	Utils::String _install_adjustFilepointer(C_File *pFile, bool bEnabled, const Utils::String &sDestination);
317
	C_File *_install_checkFile(C_File *pFile, CyStringList *errorStr, bool *bDoFile, CLinkList<C_File> *pFileList);
318
	C_File *_install_checkFile(C_File *pFile, CyStringList *errorStr, bool *bDoFile, CLinkList<C_File> *pFileList);
318
	bool _install_checkFileEnable(C_File *pCheckFile, C_File *fit, const Utils::String &sDestination, bool bEnabled, CyStringList *errorStr);
319
	bool _install_checkFileEnable(C_File *pCheckFile, C_File *fit, const Utils::String &sDestination, bool bEnabled, CyStringList *errorStr);
-
 
320
	bool _install_createDirectory(CDirIO &Dir, const Utils::String &sTo, C_File *pFile, CyStringList *errorStr);
-
 
321
	void _install_writeFile(C_File *pFile, const Utils::String &sDestination, CyStringList *errorStr);
-
 
322
 
-
 
323
	int _read_FileHeader(std::fstream &stream, int iReadType, int iMaxProgress, int iDoneLen, CProgressInfo *pProgress);
-
 
324
	int _read_Header(std::fstream &stream, int iReadType, int iMaxProgress, CProgressInfo *pProgress);
319
 
325
 
320
	SSPKHeader m_SHeader;
326
	SSPKHeader m_SHeader;
321
	SSPKHeader2 m_SHeader2;
327
	SSPKHeader2 m_SHeader2;
322
 
328
 
323
	C_File *m_pIconFile;
329
	C_File *m_pIconFile;