Subversion Repositories spk

Rev

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

Rev 53 Rev 58
Line 34... Line 34...
34
 
34
 
35
public:
35
public:
36
	static CyString PckChangeExtension ( CyString f );
36
	static CyString PckChangeExtension ( CyString f );
37
	static CyString RenameFileExtension(SInCatFile *f);
37
	static CyString RenameFileExtension(SInCatFile *f);
38
	static bool IsAddonDir(CyString dir);
38
	static bool IsAddonDir(CyString dir);
-
 
39
	static bool CheckPackedExtension(const Utils::String &sFilename);
39
 
40
 
40
	CCatFile ();
41
	CCatFile ();
41
	~CCatFile ();
42
	~CCatFile ();
42
 
43
 
43
	int  Open ( CyString catfile, CyString addon, int readtype = CATREAD_CATDECRYPT, bool = true );
44
	int  Open ( CyString catfile, CyString addon, int readtype = CATREAD_CATDECRYPT, bool = true );
Line 48... Line 49...
48
	bool ReadFiles ();
49
	bool ReadFiles ();
49
	void LoadDatFile ();
50
	void LoadDatFile ();
50
	CyString GetCatFilename() { return m_fCatFile.GetFullFilename(); }
51
	CyString GetCatFilename() { return m_fCatFile.GetFullFilename(); }
51
 
52
 
52
	bool CheckExtensionPck ( CyString filename );
53
	bool CheckExtensionPck ( CyString filename );
53
	bool CheckPackedExtension ( CyString filename );
-
 
54
	CyStringList *GetTShipsEntries();
54
	CyStringList *GetTShipsEntries();
55
	CyString GetTShipsEntry(CyString id);
55
	CyString GetTShipsEntry(CyString id);
56
 
56
 
57
	unsigned char *readData ( CyString filename, size_t *size );
57
	unsigned char *readData ( CyString filename, size_t *size );
58
	unsigned char *readData ( SInCatFile *c, size_t *size );
58
	unsigned char *readData ( SInCatFile *c, size_t *size );