Line 109... |
Line 109... |
109 |
void SetPackageUpdate() { this->SetPackageType(PACKAGETYPE_UPDATE); }
|
109 |
void SetPackageUpdate() { this->SetPackageType(PACKAGETYPE_UPDATE); }
|
110 |
void SetNormalPackage() { this->SetPackageType(PACKAGETYPE_NORMAL); }
|
110 |
void SetNormalPackage() { this->SetPackageType(PACKAGETYPE_NORMAL); }
|
111 |
void SetScriptType(int i) { SetNormalPackage(); m_iScriptType = i; _changed(); }
|
111 |
void SetScriptType(int i) { SetNormalPackage(); m_iScriptType = i; _changed(); }
|
112 |
|
112 |
|
113 |
virtual bool loadPackageData(const Utils::WString &sFirst, const Utils::WString &sRest, const Utils::WString &sMainGame, Utils::WStringList &otherGames, Utils::WStringList &gameAddons, CProgressInfo *progress = NULL) override;
|
113 |
virtual bool loadPackageData(const Utils::WString &sFirst, const Utils::WString &sRest, const Utils::WString &sMainGame, Utils::WStringList &otherGames, Utils::WStringList &gameAddons, CProgressInfo *progress = NULL) override;
|
114 |
virtual bool GeneratePackagerScript(bool wildcard, Utils::CStringList *list, int game, const Utils::CStringList &gameAddons, bool datafile = false) override;
|
114 |
virtual bool GeneratePackagerScript(bool wildcard, Utils::WStringList *list, int game, const Utils::WStringList &gameAddons, bool datafile = false) override;
|
115 |
|
115 |
|
116 |
CSpkFile();
|
116 |
CSpkFile();
|
117 |
virtual ~CSpkFile();
|
117 |
virtual ~CSpkFile();
|
118 |
|
118 |
|
119 |
bool IsMatchingMod(const Utils::String &mod) const;
|
119 |
bool IsMatchingMod(const Utils::String &mod) const;
|
Line 164... |
Line 164... |
164 |
static CSpkFile *convertFromOld(const Utils::String &sOldFilename);
|
164 |
static CSpkFile *convertFromOld(const Utils::String &sOldFilename);
|
165 |
|
165 |
|
166 |
protected:
|
166 |
protected:
|
167 |
virtual void Delete ();
|
167 |
virtual void Delete ();
|
168 |
virtual void SetDefaults ();
|
168 |
virtual void SetDefaults ();
|
169 |
virtual bool _checkHeader(const Utils::String header) const override;
|
169 |
virtual bool _checkHeader(const Utils::WString &header) const override;
|
170 |
|
170 |
|
171 |
// old conversion functions
|
171 |
// old conversion functions
|
172 |
unsigned char *_convert_uncompressFile(const Utils::String &sOldFilename, int *pLen);
|
172 |
unsigned char *_convert_uncompressFile(const Utils::String &sOldFilename, int *pLen);
|
173 |
void _convert_parse(const Utils::String &sCmd, const Utils::String &sRest);
|
173 |
void _convert_parse(const Utils::String &sCmd, const Utils::String &sRest);
|
174 |
Utils::String _convert_fileEndString(const Utils::String &sFile);
|
174 |
Utils::String _convert_fileEndString(const Utils::String &sFile);
|