Subversion Repositories spk

Rev

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

Rev 134 Rev 155
Line 154... Line 154...
154
	void SetFileCompression ( int c )       { m_SHeader2.iFileCompression = c; }
154
	void SetFileCompression ( int c )       { m_SHeader2.iFileCompression = c; }
155
	void SetValueCompression( int c )       { m_SHeader.iValueCompression = c; }
155
	void SetValueCompression( int c )       { m_SHeader.iValueCompression = c; }
156
	void SetIcon ( C_File *file, CyString ext ) { if ( m_pIconFile ) delete m_pIconFile; m_sIconExt = ext; m_pIconFile = file; _changed(); }
156
	void SetIcon ( C_File *file, CyString ext ) { if ( m_pIconFile ) delete m_pIconFile; m_sIconExt = ext; m_pIconFile = file; _changed(); }
157
	void SetFtpAddr			( CyString str ) { m_sFtpAddr = str; }
157
	void SetFtpAddr			( CyString str ) { m_sFtpAddr = str; }
158
 
158
 
159
	void AddFileScript(FileType filetype, bool shared, CyString rest, const Utils::String &sMainGame, Utils::CStringList &otherGames, Utils::CStringList &gameAddons, CProgressInfo *progress = NULL);
159
	void AddFileScript(FileType filetype, bool shared, bool packed, const Utils::String &rest, const Utils::String &sMainGame, Utils::CStringList &otherGames, Utils::CStringList &gameAddons, CProgressInfo *progress = NULL);
160
 
160
 
161
	bool IsMod();
161
	bool IsMod();
162
	bool IsFakePatch() const;
162
	bool IsFakePatch() const;
163
 
163
 
164
	// error handling
164
	// error handling
Line 167... Line 167...
167
	const Utils::String lastErrorString() const { return _sLastError; }
167
	const Utils::String lastErrorString() const { return _sLastError; }
168
 
168
 
169
	// file handling
169
	// file handling
170
	void AddFile ( C_File *file );
170
	void AddFile ( C_File *file );
171
	C_File *AddFile(CyString, CyString, int type, int game = 0);
171
	C_File *AddFile(CyString, CyString, int type, int game = 0);
172
	C_File *addFile(const Utils::String &file, const Utils::String &dir, FileType type, int game = 0);
172
	C_File *addFile(const Utils::String &file, const Utils::String &dir, FileType type, int game = 0, bool packed = false);
173
	C_File *AppendFile ( CyString file, int type, int game, CyString dir = NullString, CProgressInfo *progress = NULL );
173
	C_File *appendFile(const Utils::String &file, int type, int game, bool packed, const Utils::String &dir = Utils::String::Null(), CProgressInfo *progress = NULL );
174
	C_File *FindFile ( CyString, int, CyString = NullString, int game = 0 );
174
	C_File *FindFile ( CyString, int, CyString = NullString, int game = 0 );
175
	bool AddFileNow ( CyString, CyString, int type, CProgressInfo *progress = NULL );
175
	bool AddFileNow ( CyString, CyString, int type, CProgressInfo *progress = NULL );
176
	int CountFiles ( int filetype );
176
	int CountFiles ( int filetype );
177
	C_File *FindFileAt ( int filetype, int pos );
177
	C_File *FindFileAt ( int filetype, int pos );
178
	virtual bool RemoveFile ( int pos );
178
	virtual bool RemoveFile ( int pos );