| Line 10... | Line 10... | 
          
            | 10 | #endif // _MSC_VER > 1000
 | 10 | #endif // _MSC_VER > 1000
 | 
          
            | 11 |  
 | 11 |  
 | 
          
            | 12 | #include "lists.h"
 | 12 | #include "lists.h"
 | 
          
            | 13 | #include "File.h"
 | 13 | #include "File.h"
 | 
          
            | 14 | #include "Utils/String.h"
 | 14 | #include "Utils/String.h"
 | 
          
            | 15 | #include "Utils/StringList.h"
 | - |   | 
          
            | 16 | #include "archive/zip.h"
 | 15 | #include "archive/zip.h"
 | 
          
            | 17 |  
 | 16 |  
 | 
          
            | 18 | #include "Package/CorePackage.h"
 | 17 | #include "Package/CorePackage.h"
 | 
          
            | 19 |  
 | 18 |  
 | 
          
            | 20 | #define GAME_ALL			0
 | 19 | #define GAME_ALL			0
 | 
          
            | Line 155... | Line 154... | 
          
            | 155 | 	bool removeFile(size_t pos);
 | 154 | 	bool removeFile(size_t pos);
 | 
          
            | 156 | 	bool removeFile(C_File* files);
 | 155 | 	bool removeFile(C_File* files);
 | 
          
            | 157 | 	bool removeFile(const Utils::WString &file, FileType type, const Utils::WString &dir = Utils::WString::Null(), int game = 0);
 | 156 | 	bool removeFile(const Utils::WString &file, FileType type, const Utils::WString &dir = Utils::WString::Null(), int game = 0);
 | 
          
            | 158 | 	void removeAllFiles(FileType type, int game);
 | 157 | 	void removeAllFiles(FileType type, int game);
 | 
          
            | 159 |  
 | 158 |  
 | 
          
            | 160 | 	Utils::StringcreateFilesLine(SSPKHeader2 *header, CProgressInfo* = NULL) const;
 | 159 | 	Utils::WString createFilesLine(SSPKHeader2 *header, CProgressInfo* = NULL) const;
 | 
          
            | 161 |  
 | 160 |  
 | 
          
            | 162 | 	// error handling
 | 161 | 	// error handling
 | 
          
            | 163 | 	void ClearError () { _sLastError = ""; _iLastError = SPKERR_NONE; }
 | 162 | 	void ClearError () { _sLastError = ""; _iLastError = SPKERR_NONE; }
 | 
          
            | 164 | 	int lastError() const { return _iLastError; }
 | 163 | 	int lastError() const { return _iLastError; }
 | 
          
            | 165 | 	const Utils::WString lastErrorString() const { return _sLastError; }
 | 164 | 	const Utils::WString lastErrorString() const { return _sLastError; }
 | 
          
            | Line 272... | Line 271... | 
          
            | 272 | 	virtual bool _checkHeader(const Utils::WString &header) const;
 | 271 | 	virtual bool _checkHeader(const Utils::WString &header) const;
 | 
          
            | 273 | 	bool _parseHeader(const Utils::WString &header);
 | 272 | 	bool _parseHeader(const Utils::WString &header);
 | 
          
            | 274 | 	bool _parseFileHeader(const Utils::WString& header);
 | 273 | 	bool _parseFileHeader(const Utils::WString& header);
 | 
          
            | 275 | 	bool _parseFilesLine(const Utils::WString& line);
 | 274 | 	bool _parseFilesLine(const Utils::WString& line);
 | 
          
            | 276 | 	void _readValues(const Utils::WString& values);
 | 275 | 	void _readValues(const Utils::WString& values);
 | 
          
            | 277 | 	void _readFiles(const Utils::String& values);
 | 276 | 	void _readFiles(const Utils::WString& values);
 | 
          
            | 278 |  
 | 277 |  
 | 
          
            | 279 | 	void _install_adjustFakePatches(CPackages *pPackages);
 | 278 | 	void _install_adjustFakePatches(CPackages *pPackages);
 | 
          
            | 280 | 	void _install_renameText(CPackages *pPackages);
 | 279 | 	void _install_renameText(CPackages *pPackages);
 | 
          
            | 281 | 	bool _install_uncompress(C_File *fit, CProgressInfo *progress, Utils::WStringList *errorStr, bool *uncomprToFile);
 | 280 | 	bool _install_uncompress(C_File *fit, CProgressInfo *progress, Utils::WStringList *errorStr, bool *uncomprToFile);
 | 
          
            | 282 | 	bool _install_setEnabled(bool bEnable, C_File *fit);
 | 281 | 	bool _install_setEnabled(bool bEnable, C_File *fit);
 |