Subversion Repositories spk

Rev

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

Rev 121 Rev 126
Line 21... Line 21...
21
#define GAME_ALL			0
21
#define GAME_ALL			0
22
#define GAME_X2				1
22
#define GAME_X2				1
23
#define GAME_X3				2
23
#define GAME_X3				2
24
#define GAME_X3TC			3
24
#define GAME_X3TC			3
25
#define GAME_X3AP			4
25
#define GAME_X3AP			4
-
 
26
#define GAME_X3FL			5
26
#define GAME_XREBIRTH		5
27
#define GAME_XREBIRTH		6
27
#define GAME_MAX			(GAME_XREBIRTH)
28
#define GAME_MAX			(GAME_XREBIRTH)
28
 
29
 
29
#define FILEVERSION 4.20f
30
#define FILEVERSION 4.20f
30
 
31
 
31
#define WRITECHUNK		50000
32
#define WRITECHUNK		50000
32
 
33
 
33
class CPackages;
34
class CPackages;
-
 
35
class CGameExe;
34
 
36
 
35
namespace SPK {
37
namespace SPK {
36
	class CTextDB;
38
	class CTextDB;
37
}
39
}
38
 
40
 
Line 133... Line 135...
133
	C_File *GetPrevFile(C_File *next) const;
135
	C_File *GetPrevFile(C_File *next) const;
134
 
136
 
135
	virtual Utils::String CreateValuesLine () const;
137
	virtual Utils::String CreateValuesLine () const;
136
 
138
 
137
	virtual bool LoadPackageData(const Utils::String &sFfirst, const Utils::String &sRest, const Utils::String &sMainGame, Utils::CStringList &otherGames);
139
	virtual bool LoadPackageData(const Utils::String &sFfirst, const Utils::String &sRest, const Utils::String &sMainGame, Utils::CStringList &otherGames);
138
	virtual bool GeneratePackagerScript(bool wildcard, CyStringList *list, bool datafile = false);
140
	virtual bool GeneratePackagerScript(bool wildcard, Utils::CStringList *list, int game, bool datafile = false);
139
	virtual bool GeneratePackagerScriptFile(bool wildcard, CyStringList *list);
141
	virtual bool GeneratePackagerScriptFile(bool wildcard, Utils::CStringList *list, int game);
140
 
142
 
141
	void ConvertNormalMod(C_File *f, CyString to);
143
	void ConvertNormalMod(C_File *f, CyString to);
142
	void ConvertFakePatch(C_File *f);
144
	void ConvertFakePatch(C_File *f);
143
	void ConvertAutoText(C_File *f);
145
	void ConvertAutoText(C_File *f);
144
	C_File *FindMatchingMod(C_File *f);
146
	C_File *FindMatchingMod(C_File *f);
Line 185... Line 187...
185
 
187
 
186
	virtual bool ExtractFile ( C_File *file, CyString dir, bool includedir = true, CProgressInfo *progress = NULL );
188
	virtual bool ExtractFile ( C_File *file, CyString dir, bool includedir = true, CProgressInfo *progress = NULL );
187
	virtual bool ExtractFile ( int file, CyString dir, bool includedir = true, CProgressInfo *progress = NULL );
189
	virtual bool ExtractFile ( int file, CyString dir, bool includedir = true, CProgressInfo *progress = NULL );
188
	virtual bool ExtractAll ( CyString dir, int game, bool includedir = true, CProgressInfo *progress = NULL );
190
	virtual bool ExtractAll ( CyString dir, int game, bool includedir = true, CProgressInfo *progress = NULL );
189
 
191
 
190
	virtual bool SaveToArchive(CyString filename, int game, CProgressInfo *progress = NULL);
192
	virtual bool SaveToArchive(CyString filename, int game, const CGameExe *exes, CProgressInfo *progress = NULL);
191
	virtual void addGeneratedFiles(HZIP &hz) {};
193
	virtual void addGeneratedFiles(HZIP &hz) {};
192
 
194
 
193
	void ClearFileData();
195
	void ClearFileData();
194
 
196
 
195
	CLinkList<SNames> *GetNamesList() { return &m_lNames; }
197
	CLinkList<SNames> *GetNamesList() { return &m_lNames; }