Subversion Repositories spk

Rev

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

Rev 52 Rev 53
Line 52... Line 52...
52
	bool CheckExtensionPck ( CyString filename );
52
	bool CheckExtensionPck ( CyString filename );
53
	bool CheckPackedExtension ( 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 );
59
	SInCatFile *FindData ( CyString filename );
59
	SInCatFile *FindData ( CyString filename );
60
	bool ReadFileToData ( CyString filename );
60
	bool ReadFileToData ( CyString filename );
61
	bool ReadFileToData ( SInCatFile *c );
61
	bool ReadFileToData ( SInCatFile *c );
62
 
62
 
63
	bool MarkRemoveFile ( SInCatFile *f );
63
	bool MarkRemoveFile ( SInCatFile *f );
Line 74... Line 74...
74
	bool RemoveFile ( CyString filename );
74
	bool RemoveFile ( CyString filename );
75
	bool WriteCatFile ();
75
	bool WriteCatFile ();
76
	bool AppendFile(const Utils::String &sFilename, const Utils::String &to, bool pck = true, bool bXor = true, Utils::String *sChangeTo = NULL);
76
	bool AppendFile(const Utils::String &sFilename, const Utils::String &to, bool pck = true, bool bXor = true, Utils::String *sChangeTo = NULL);
77
	bool AppendData ( unsigned char *data, size_t size, CyString to, bool pck = true, bool bXor = true );
77
	bool AppendData ( unsigned char *data, size_t size, CyString to, bool pck = true, bool bXor = true );
78
	bool AddData ( CyString catfile, unsigned char *data, size_t size, CyString to, bool pck = true, bool create = true );
78
	bool AddData ( CyString catfile, unsigned char *data, size_t size, CyString to, bool pck = true, bool create = true );
79
	void WriteFiles ();
-
 
80
 
79
 
81
	CyString ChangeExtension ( CyString f );
80
	CyString ChangeExtension ( CyString f );
82
	CLinkList<SInCatFile> *GetFiles() { return &m_lFiles; }
81
	CLinkList<SInCatFile> *GetFiles() { return &m_lFiles; }
83
 
82
 
84
	bool ExtractFile ( CyString filename, CyString to = NullString, bool preserve = false );
83
	bool ExtractFile ( CyString filename, CyString to = NullString, bool preserve = false );
Line 112... Line 111...
112
	CyString m_sAddonDir;
111
	CyString m_sAddonDir;
113
 
112
 
114
	int m_iError;
113
	int m_iError;
115
 
114
 
116
	bool m_bCreate;
115
	bool m_bCreate;
-
 
116
	bool m_bCatChanged;
117
};
117
};
118
 
118
 
119
#endif //__CATFILE_H__
119
#endif //__CATFILE_H__