| Line 117... |
Line 117... |
| 117 |
bool IsMod();
|
117 |
bool IsMod();
|
| 118 |
bool IsFakePatch() const;
|
118 |
bool IsFakePatch() const;
|
| 119 |
|
119 |
|
| 120 |
// Setters
|
120 |
// Setters
|
| 121 |
void setAutosaveName() { this->setFilename(getAutosaveName()); }
|
121 |
void setAutosaveName() { this->setFilename(getAutosaveName()); }
|
| 122 |
void addWebMirror(const Utils::String& str);
|
- |
|
| 123 |
void removeWebMirror(const Utils::String& str);
|
- |
|
| 124 |
void SetDataCompression(int c) { m_SHeader2.iDataCompression = c; }
|
122 |
void SetDataCompression(int c) { m_SHeader2.iDataCompression = c; }
|
| 125 |
void SetFileCompression(int c) { m_SHeader2.iFileCompression = c; }
|
123 |
void SetFileCompression(int c) { m_SHeader2.iFileCompression = c; }
|
| 126 |
void SetValueCompression(int c) { m_SHeader.iValueCompression = c; }
|
124 |
void SetValueCompression(int c) { m_SHeader.iValueCompression = c; }
|
| 127 |
void setIcon(C_File* file, const Utils::String& ext) { if (m_pIconFile) delete m_pIconFile; _sIconExt = ext.c_str(); m_pIconFile = file; _changed(); }
|
125 |
void setIcon(C_File* file, const Utils::String& ext) { if (m_pIconFile) delete m_pIconFile; _sIconExt = ext.c_str(); m_pIconFile = file; _changed(); }
|
| 128 |
void setFtpAddr(const Utils::String& str) { _sFtpAddr = str; }
|
126 |
void setFtpAddr(const Utils::String& str) { _sFtpAddr = str; }
|
| Line 132... |
Line 130... |
| 132 |
bool RemoveGameCompatability(int game);
|
130 |
bool RemoveGameCompatability(int game);
|
| 133 |
void AddGameCompatability(int game, const Utils::String &version);
|
131 |
void AddGameCompatability(int game, const Utils::String &version);
|
| 134 |
bool CheckGameCompatability(int game);
|
132 |
bool CheckGameCompatability(int game);
|
| 135 |
bool checkGameVersionCompatability(int game, const Utils::WString &sVersion, int iVersion) const;
|
133 |
bool checkGameVersionCompatability(int game, const Utils::WString &sVersion, int iVersion) const;
|
| 136 |
bool AnyGameCompatability() { return !m_lGames.empty(); }
|
134 |
bool AnyGameCompatability() { return !m_lGames.empty(); }
|
| 137 |
|
- |
|
| 138 |
// Web Mirrors
|
- |
|
| 139 |
bool anyWebMirrors() { return !_lMirrors.empty(); }
|
- |
|
| 140 |
const Utils::CStringList &webMirrors() const { return _lMirrors; }
|
- |
|
| 141 |
int getMaxWebMirrors() { return _lMirrors.size(); }
|
- |
|
| 142 |
Utils::String getWebMirror(size_t i) { if ( i >= 0 && i < _lMirrors.size() ) return _lMirrors.get(i)->str; return Utils::String::Null(); }
|
- |
|
| 143 |
void clearWebMirrors() { _lMirrors.clear(); }
|
- |
|
| 144 |
|
135 |
|
| 145 |
// Files
|
136 |
// Files
|
| 146 |
C_File *GetFirstFile(int type) const;
|
137 |
C_File *GetFirstFile(int type) const;
|
| 147 |
C_File *GetNextFile(C_File *prev) const;
|
138 |
C_File *GetNextFile(C_File *prev) const;
|
| 148 |
C_File *GetPrevFile(C_File *next) const;
|
139 |
C_File *GetPrevFile(C_File *next) const;
|
| Line 317... |
Line 308... |
| 317 |
Utils::WString _sLastError;
|
308 |
Utils::WString _sLastError;
|
| 318 |
int _iLastError;
|
309 |
int _iLastError;
|
| 319 |
|
310 |
|
| 320 |
CLinkList<C_File> m_lFiles;
|
311 |
CLinkList<C_File> m_lFiles;
|
| 321 |
CLinkList<C_File> m_lTempFiles;
|
312 |
CLinkList<C_File> m_lTempFiles;
|
| 322 |
Utils::CStringList _lMirrors; //TODO: move to CorePackage
|
- |
|
| 323 |
Utils::WStringList _lFakePatchBefore;
|
313 |
Utils::WStringList _lFakePatchBefore;
|
| 324 |
Utils::WStringList _lFakePatchAfter;
|
314 |
Utils::WStringList _lFakePatchAfter;
|
| 325 |
|
315 |
|
| 326 |
CTextDB *_pTextDB;
|
316 |
CTextDB *_pTextDB;
|
| 327 |
|
317 |
|