Line 122... |
Line 122... |
122 |
void AddGameCompatability(int game, const Utils::String &version);
|
122 |
void AddGameCompatability(int game, const Utils::String &version);
|
123 |
bool CheckGameCompatability(int game);
|
123 |
bool CheckGameCompatability(int game);
|
124 |
bool CheckGameVersionCompatability(int game, CyString sVersion, int iVersion);
|
124 |
bool CheckGameVersionCompatability(int game, CyString sVersion, int iVersion);
|
125 |
bool AnyGameCompatability() { return !m_lGames.empty(); }
|
125 |
bool AnyGameCompatability() { return !m_lGames.empty(); }
|
126 |
|
126 |
|
127 |
bool AnyWebMirrors() { return !m_lMirrors.Empty(); }
|
127 |
bool anyWebMirrors() { return !_lMirrors.empty(); }
|
128 |
CyStringList *GetWebMirrors() { return &m_lMirrors; }
|
128 |
const Utils::CStringList *getWebMirrors() const { return &_lMirrors; }
|
129 |
int GetMaxWebMirrors() { return m_lMirrors.Count(); }
|
129 |
int getMaxWebMirrors() { return _lMirrors.size(); }
|
130 |
CyString GetWebMirror(int i) { if ( i >= 0 && i < m_lMirrors.Count() ) return m_lMirrors.StringAt(i); return NullString; }
|
130 |
Utils::String getWebMirror(size_t i) { if ( i >= 0 && i < _lMirrors.size() ) return _lMirrors.get(i)->str; return Utils::String::Null(); }
|
131 |
void ClearWebMirrors() { m_lMirrors.Clear(); }
|
131 |
void clearWebMirrors() { _lMirrors.clear(); }
|
132 |
|
132 |
|
133 |
const CLinkList<C_File> *fileList() const;
|
133 |
const CLinkList<C_File> *fileList() const;
|
134 |
CLinkList<C_File> *fileList(int type) const;
|
134 |
CLinkList<C_File> *fileList(int type) const;
|
135 |
C_File *GetFirstFile(int type) const;
|
135 |
C_File *GetFirstFile(int type) const;
|
136 |
C_File *GetNextFile(C_File *prev) const;
|
136 |
C_File *GetNextFile(C_File *prev) const;
|
Line 147... |
Line 147... |
147 |
void ConvertAutoText(C_File *f);
|
147 |
void ConvertAutoText(C_File *f);
|
148 |
C_File *FindMatchingMod(C_File *f);
|
148 |
C_File *FindMatchingMod(C_File *f);
|
149 |
void RenameFile(C_File *f, CyString baseName);
|
149 |
void RenameFile(C_File *f, CyString baseName);
|
150 |
|
150 |
|
151 |
// set basic settings
|
151 |
// set basic settings
|
152 |
void AddWebMirror ( CyString str ) { m_lMirrors.PushBack(str, "", true); _changed(); }
|
152 |
void addWebMirror (const Utils::String &str);
|
153 |
void RemoveWebMirror ( CyString str ) { m_lMirrors.Remove(str, true); _changed(); }
|
153 |
void removeWebMirror (const Utils::String &str);
|
154 |
void SetDataCompression ( int c ) { m_SHeader2.iDataCompression = c; }
|
154 |
void SetDataCompression ( int c ) { m_SHeader2.iDataCompression = c; }
|
155 |
void SetFileCompression ( int c ) { m_SHeader2.iFileCompression = c; }
|
155 |
void SetFileCompression ( int c ) { m_SHeader2.iFileCompression = c; }
|
156 |
void SetValueCompression( int c ) { m_SHeader.iValueCompression = c; }
|
156 |
void SetValueCompression( int c ) { m_SHeader.iValueCompression = c; }
|
157 |
void SetIcon ( C_File *file, CyString ext ) { if ( m_pIconFile ) delete m_pIconFile; _sIconExt = ext.c_str(); m_pIconFile = file; _changed(); }
|
157 |
void SetIcon ( C_File *file, CyString ext ) { if ( m_pIconFile ) delete m_pIconFile; _sIconExt = ext.c_str(); m_pIconFile = file; _changed(); }
|
158 |
void SetFtpAddr ( CyString str ) { m_sFtpAddr = str; }
|
158 |
void SetFtpAddr ( CyString str ) { m_sFtpAddr = str; }
|
Line 341... |
Line 341... |
341 |
Utils::String _sLastError;
|
341 |
Utils::String _sLastError;
|
342 |
int _iLastError;
|
342 |
int _iLastError;
|
343 |
|
343 |
|
344 |
CLinkList<C_File> m_lFiles;
|
344 |
CLinkList<C_File> m_lFiles;
|
345 |
CLinkList<SNames> m_lNames; //TODO: move to CorePackage
|
345 |
CLinkList<SNames> m_lNames; //TODO: move to CorePackage
|
346 |
CyStringList m_lMirrors; //TODO: move to CorePackage
|
346 |
Utils::CStringList _lMirrors; //TODO: move to CorePackage
|
347 |
Utils::CStringList _lFakePatchBefore;
|
347 |
Utils::CStringList _lFakePatchBefore;
|
348 |
Utils::CStringList _lFakePatchAfter;
|
348 |
Utils::CStringList _lFakePatchAfter;
|
349 |
|
349 |
|
350 |
CTextDB *_pTextDB;
|
350 |
CTextDB *_pTextDB;
|
351 |
|
351 |
|