Subversion Repositories spk

Rev

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

Rev 178 Rev 179
Line 171... Line 171...
171
	int  GetAllPackageFiles(CBaseFile *package, CLinkList<C_File> *fileList, bool includeChild);
171
	int  GetAllPackageFiles(CBaseFile *package, CLinkList<C_File> *fileList, bool includeChild);
172
	int	 GetAllPackageFiles(CLinkList<CBaseFile> *list, CLinkList<C_File> *fileList, bool includeChild);
172
	int	 GetAllPackageFiles(CLinkList<CBaseFile> *list, CLinkList<C_File> *fileList, bool includeChild);
173
	void AddLogEntry(int type, CyString args, CyStringList* errors);
173
	void AddLogEntry(int type, CyString args, CyStringList* errors);
174
	void addLogEntry(int type, const Utils::String &args, Utils::CStringList* errors);
174
	void addLogEntry(int type, const Utils::String &args, Utils::CStringList* errors);
175
	Utils::String findDataDir(const Utils::String &dir, const Utils::String &file);
175
	Utils::String findDataDir(const Utils::String &dir, const Utils::String &file);
176
	int  CountPackages(int type, bool onlyEnabled);
176
	int  countPackages(int type, bool onlyEnabled) const;
177
	int  CountBuiltInPackages(bool onlyEnabled);
177
	int  CountBuiltInPackages(bool onlyEnabled);
178
	bool isCurrentDir(const Utils::String &dir) const;
178
	bool isCurrentDir(const Utils::String &dir) const;
179
	bool CheckOtherPackage(CBaseFile *package);
179
	bool CheckOtherPackage(CBaseFile *package);
180
	int CheckPreparedInstallRequired(CLinkList<CBaseFile> *list);
180
	int CheckPreparedInstallRequired(CLinkList<CBaseFile> *list);
181
	static int ConvertWareType(char w);
181
	static int ConvertWareType(char w);
Line 187... Line 187...
187
	void backupSaves(bool vanilla);
187
	void backupSaves(bool vanilla);
188
	void restoreSaves() { restoreSaves(m_bVanilla); }
188
	void restoreSaves() { restoreSaves(m_bVanilla); }
189
	void restoreSaves(bool vanilla);
189
	void restoreSaves(bool vanilla);
190
	bool UnPackFile(const Utils::String &filename, bool checkxml = true);
190
	bool UnPackFile(const Utils::String &filename, bool checkxml = true);
191
	bool PackFile(CyString filename);
191
	bool PackFile(CyString filename);
192
	bool PackFile(CFileIO *File, CyString filename);
192
	bool PackFile(CFileIO* File, CyString filename);
-
 
193
	bool packFile(CFileIO* File, const Utils::String &filename);
193
	Utils::String ConvertTextString(const Utils::String &text);
194
	Utils::String ConvertTextString(const Utils::String &text);
194
	void LoadVirtualFileSystem();
195
	void LoadVirtualFileSystem();
195
	bool CheckAccessRights(CyString dir);
196
	bool CheckAccessRights(CyString dir);
196
	bool LoadShipData(CyString file, CyStringList *list);
197
	bool LoadShipData(CyString file, CyStringList *list);
197
	bool LoadShipData(CVirtualFileSystem *pVfs, CyStringList *list);
198
	bool LoadShipData(CVirtualFileSystem *pVfs, CyStringList *list);
Line 269... Line 270...
269
	void CreateCutData();
270
	void CreateCutData();
270
	void CreateBodies();
271
	void CreateBodies();
271
	void CreateGlobals();
272
	void CreateGlobals();
272
	void CreateAnimations();
273
	void CreateAnimations();
273
	void CreateTShips();
274
	void CreateTShips();
274
	CyStringList *CreateCockpits();
-
 
275
	void CreateCustomStarts();
275
	void CreateCustomStarts();
276
	void AddCreatedFile(CyString file);
276
	void AddCreatedFile(CyString file);
277
	
277
	
278
	bool readGlobals(Utils::CStringList &globals) const;
278
	bool readGlobals(Utils::CStringList &globals) const;
279
	bool readWares(int iLang, CLinkList<SWareEntry> &list);
279
	bool readWares(int iLang, CLinkList<SWareEntry> &list);
Line 338... Line 338...
338
 
338
 
339
	CBaseFile *FindScriptByAuthor(CyString author, CBaseFile *prev = NULL);
339
	CBaseFile *FindScriptByAuthor(CyString author, CBaseFile *prev = NULL);
340
	void RemoveFailedFiles();
340
	void RemoveFailedFiles();
341
 
341
 
342
private:
342
private:
-
 
343
	size_t _createCockpits(Utils::CStringList &list);
-
 
344
 
343
	bool _checkForDisable(CBaseFile *package, bool disabled, CBaseFile *oldPackage);
345
	bool _checkForDisable(CBaseFile *package, bool disabled, CBaseFile *oldPackage);
344
	CBaseFile *_archive_fromRar(CyString filename, bool toInstall);
346
	CBaseFile *_archive_fromRar(CyString filename, bool toInstall);
345
	CBaseFile *_archive_fromZip(CyString filename, bool toInstall);
347
	CBaseFile *_archive_fromZip(CyString filename, bool toInstall);
346
	void _addToFakePatch(CBaseFile *pPackage);
348
	void _addToFakePatch(CBaseFile *pPackage);
347
	int _gameTextNumber() const;
349
	int _gameTextNumber() const;