Line 93... |
Line 93... |
93 |
// Virtual Functions
|
93 |
// Virtual Functions
|
94 |
virtual Utils::WString getFullPackageName(int language, const Utils::WString &byString) const;
|
94 |
virtual Utils::WString getFullPackageName(int language, const Utils::WString &byString) const;
|
95 |
virtual Utils::WString getFullPackageName(int language, bool includeVersion = true, const Utils::WString &byString = L"by") const;
|
95 |
virtual Utils::WString getFullPackageName(int language, bool includeVersion = true, const Utils::WString &byString = L"by") const;
|
96 |
virtual Utils::WString getFullPackageName(const Utils::WString &format, int lang) const;
|
96 |
virtual Utils::WString getFullPackageName(const Utils::WString &format, int lang) const;
|
97 |
|
97 |
|
98 |
virtual Utils::String createValuesLine() const;
|
98 |
virtual Utils::WString createValuesLine() const;
|
99 |
|
99 |
|
100 |
virtual bool loadPackageData(const Utils::WString& sFirst, const Utils::WString& sRest, const Utils::WString& sMainGame, Utils::WStringList& otherGames, Utils::WStringList& gameAddons, CProgressInfo* progress);
|
100 |
virtual bool loadPackageData(const Utils::WString& sFirst, const Utils::WString& sRest, const Utils::WString& sMainGame, Utils::WStringList& otherGames, Utils::WStringList& gameAddons, CProgressInfo* progress);
|
101 |
virtual bool GeneratePackagerScript(bool wildcard, Utils::CStringList* list, int game, const Utils::CStringList& gameAddons, bool datafile = false);
|
101 |
virtual bool GeneratePackagerScript(bool wildcard, Utils::CStringList* list, int game, const Utils::CStringList& gameAddons, bool datafile = false);
|
102 |
virtual bool GeneratePackagerScriptFile(bool wildcard, Utils::CStringList* list, int game, const Utils::CStringList& gameAddons);
|
102 |
virtual bool GeneratePackagerScriptFile(bool wildcard, Utils::CStringList* list, int game, const Utils::CStringList& gameAddons);
|
103 |
|
103 |
|
Line 221... |
Line 221... |
221 |
|
221 |
|
222 |
int GetLoadError() { return m_iLoadError; }
|
222 |
int GetLoadError() { return m_iLoadError; }
|
223 |
void SetLoadError(int i) { m_iLoadError = i; }
|
223 |
void SetLoadError(int i) { m_iLoadError = i; }
|
224 |
Utils::WString createUpdateFile(const Utils::WString &dir) const;
|
224 |
Utils::WString createUpdateFile(const Utils::WString &dir) const;
|
225 |
|
225 |
|
226 |
virtual bool ParseValueLine(const Utils::String &line);
|
226 |
virtual bool parseValueLine(const Utils::WString &line);
|
227 |
|
227 |
|
228 |
CLinkList<SGameCompat> *GetGameCompatabilityList() { return &m_lGames; }
|
228 |
CLinkList<SGameCompat> *GetGameCompatabilityList() { return &m_lGames; }
|
229 |
|
229 |
|
230 |
Utils::WString fileSizeString() const;
|
230 |
Utils::WString fileSizeString() const;
|
231 |
|
231 |
|
Line 235... |
Line 235... |
235 |
SNeededLibrary *findPackageNeeded(const Utils::WString &scriptName, const Utils::WString &author);
|
235 |
SNeededLibrary *findPackageNeeded(const Utils::WString &scriptName, const Utils::WString &author);
|
236 |
void removePackageNeeded(const Utils::WString &scriptName, const Utils::WString &author);
|
236 |
void removePackageNeeded(const Utils::WString &scriptName, const Utils::WString &author);
|
237 |
void ClearNeededPackages();
|
237 |
void ClearNeededPackages();
|
238 |
bool AnyDependacies() { return (m_lNeededLibrarys.size()) ? true: false; }
|
238 |
bool AnyDependacies() { return (m_lNeededLibrarys.size()) ? true: false; }
|
239 |
bool AutoGenerateUpdateFile() { return m_bAutoGenerateUpdateFile; }
|
239 |
bool AutoGenerateUpdateFile() { return m_bAutoGenerateUpdateFile; }
|
240 |
void removeFakePatchOrder(bool after, const Utils::String &scriptName, const Utils::String &author);
|
240 |
void removeFakePatchOrder(bool after, const Utils::WString &scriptName, const Utils::WString &author);
|
241 |
void removeFakePatchOrder(const Utils::String &scriptName, const Utils::String &author);
|
241 |
void removeFakePatchOrder(const Utils::WString &scriptName, const Utils::WString &author);
|
242 |
void addFakePatchOrder(bool after, const Utils::String &scriptName, const Utils::String &author);
|
242 |
void addFakePatchOrder(bool after, const Utils::WString &scriptName, const Utils::WString &author);
|
243 |
bool anyFakePatchOrder() const { if ( !_lFakePatchBefore.empty() || !_lFakePatchAfter.empty() ) return true; return false; }
|
243 |
bool anyFakePatchOrder() const { if ( !_lFakePatchBefore.empty() || !_lFakePatchAfter.empty() ) return true; return false; }
|
244 |
const Utils::CStringList &getFakePatchBeforeOrder() const { return _lFakePatchBefore; }
|
244 |
const Utils::WStringList &getFakePatchBeforeOrder() const { return _lFakePatchBefore; }
|
245 |
const Utils::CStringList &getFakePatchAfterOrder() const { return _lFakePatchAfter; }
|
245 |
const Utils::WStringList &getFakePatchAfterOrder() const { return _lFakePatchAfter; }
|
246 |
void updateTextDB() { this->_resetTextDB(); }
|
246 |
void updateTextDB() { this->_resetTextDB(); }
|
247 |
|
247 |
|
248 |
virtual bool readWares(int iLang, CLinkList<SWareEntry> &list, const Utils::WString &empWares);
|
248 |
virtual bool readWares(int iLang, CLinkList<SWareEntry> &list, const Utils::WString &empWares);
|
249 |
virtual bool readCommands(int iLang, CLinkList<SCommandSlot> &list);
|
249 |
virtual bool readCommands(int iLang, CLinkList<SCommandSlot> &list);
|
250 |
virtual bool readWingCommands(int iLang, CLinkList<SCommandSlot> &list);
|
250 |
virtual bool readWingCommands(int iLang, CLinkList<SCommandSlot> &list);
|
Line 257... |
Line 257... |
257 |
virtual BaseFileType type () const { return BaseFileType::TYPE_BASE; }
|
257 |
virtual BaseFileType type () const { return BaseFileType::TYPE_BASE; }
|
258 |
virtual int GetType() { return type(); }
|
258 |
virtual int GetType() { return type(); }
|
259 |
bool AnyFileType ( int type );
|
259 |
bool AnyFileType ( int type );
|
260 |
CBaseFile *GetParent () { return m_pParent; }
|
260 |
CBaseFile *GetParent () { return m_pParent; }
|
261 |
void SetParent ( CBaseFile *file ) { m_pParent = file; }
|
261 |
void SetParent ( CBaseFile *file ) { m_pParent = file; }
|
262 |
int ParseLanguage(const Utils::String &lang) const;
|
262 |
int parseLanguage(const Utils::WString &lang) const;
|
263 |
|
263 |
|
264 |
virtual bool computeSigned(bool updateFiles) const;
|
264 |
virtual bool computeSigned(bool updateFiles) const;
|
265 |
bool updateSigned (bool updateFiles);
|
265 |
bool updateSigned (bool updateFiles);
|
266 |
int GetNum() { return m_iNum; }
|
266 |
int GetNum() { return m_iNum; }
|
267 |
void SetNum(int i) { m_iNum = i; }
|
267 |
void SetNum(int i) { m_iNum = i; }
|
Line 281... |
Line 281... |
281 |
// reading of files
|
281 |
// reading of files
|
282 |
virtual bool _checkHeader(const Utils::String header) const;
|
282 |
virtual bool _checkHeader(const Utils::String header) const;
|
283 |
bool _parseHeader(const Utils::String &header);
|
283 |
bool _parseHeader(const Utils::String &header);
|
284 |
bool _parseFileHeader(const Utils::String& header);
|
284 |
bool _parseFileHeader(const Utils::String& header);
|
285 |
bool _parseFilesLine(const Utils::String& line);
|
285 |
bool _parseFilesLine(const Utils::String& line);
|
286 |
void _readValues(const Utils::String& values);
|
286 |
void _readValues(const Utils::WString& values);
|
287 |
void _readFiles(const Utils::String& values);
|
287 |
void _readFiles(const Utils::String& values);
|
288 |
|
288 |
|
289 |
void _install_adjustFakePatches(CPackages *pPackages);
|
289 |
void _install_adjustFakePatches(CPackages *pPackages);
|
290 |
void _install_renameText(CPackages *pPackages);
|
290 |
void _install_renameText(CPackages *pPackages);
|
291 |
bool _install_uncompress(C_File *fit, CProgressInfo *progress, Utils::WStringList *errorStr, bool *uncomprToFile);
|
291 |
bool _install_uncompress(C_File *fit, CProgressInfo *progress, Utils::WStringList *errorStr, bool *uncomprToFile);
|
Line 318... |
Line 318... |
318 |
int _iLastError;
|
318 |
int _iLastError;
|
319 |
|
319 |
|
320 |
CLinkList<C_File> m_lFiles;
|
320 |
CLinkList<C_File> m_lFiles;
|
321 |
CLinkList<C_File> m_lTempFiles;
|
321 |
CLinkList<C_File> m_lTempFiles;
|
322 |
Utils::CStringList _lMirrors; //TODO: move to CorePackage
|
322 |
Utils::CStringList _lMirrors; //TODO: move to CorePackage
|
323 |
Utils::CStringList _lFakePatchBefore;
|
323 |
Utils::WStringList _lFakePatchBefore;
|
324 |
Utils::CStringList _lFakePatchAfter;
|
324 |
Utils::WStringList _lFakePatchAfter;
|
325 |
|
325 |
|
326 |
CTextDB *_pTextDB;
|
326 |
CTextDB *_pTextDB;
|
327 |
|
327 |
|
328 |
CLinkList<SGameCompat> m_lGames;
|
328 |
CLinkList<SGameCompat> m_lGames;
|
329 |
|
329 |
|