Line 105... |
Line 105... |
105 |
p += byString + " " + this->author();
|
105 |
p += byString + " " + this->author();
|
106 |
return p;
|
106 |
return p;
|
107 |
}
|
107 |
}
|
108 |
CLinkList<C_File> *GetFileList() { return &m_lFiles; }
|
108 |
CLinkList<C_File> *GetFileList() { return &m_lFiles; }
|
109 |
C_File *GetIcon () { return m_pIconFile; }
|
109 |
C_File *GetIcon () { return m_pIconFile; }
|
110 |
CyString GetIconExt () { return m_sIconExt; }
|
110 |
const Utils::String &iconExt() const { return _sIconExt; }
|
111 |
Utils::String getNameValidFile() const;
|
111 |
Utils::String getNameValidFile() const;
|
112 |
int GetDataCompression () { return m_SHeader2.iDataCompression; }
|
112 |
int GetDataCompression () { return m_SHeader2.iDataCompression; }
|
113 |
float GetFileVersion () { return m_SHeader.fVersion; }
|
113 |
float GetFileVersion () { return m_SHeader.fVersion; }
|
114 |
long GetFullFileSize ();
|
114 |
long GetFullFileSize ();
|
115 |
CyString GetLanguageName ( int lang ) const;
|
115 |
CyString GetLanguageName(int lang) const;
|
- |
|
116 |
const Utils::String &getLanguageName(int lang) const;
|
116 |
virtual CyString GetFullPackageName(CyString format, int lang);
|
117 |
virtual CyString GetFullPackageName(CyString format, int lang);
|
117 |
Utils::String GetAutosaveName();
|
118 |
Utils::String GetAutosaveName();
|
118 |
void SetAutosaveName() { this->setFilename(GetAutosaveName()); }
|
119 |
void SetAutosaveName() { this->setFilename(GetAutosaveName()); }
|
119 |
SGameCompat *GetGameCompatability(int game);
|
120 |
SGameCompat *GetGameCompatability(int game);
|
120 |
bool RemoveGameCompatability(int game);
|
121 |
bool RemoveGameCompatability(int game);
|
Line 151... |
Line 152... |
151 |
void AddWebMirror ( CyString str ) { m_lMirrors.PushBack(str, "", true); _changed(); }
|
152 |
void AddWebMirror ( CyString str ) { m_lMirrors.PushBack(str, "", true); _changed(); }
|
152 |
void RemoveWebMirror ( CyString str ) { m_lMirrors.Remove(str, true); _changed(); }
|
153 |
void RemoveWebMirror ( CyString str ) { m_lMirrors.Remove(str, true); _changed(); }
|
153 |
void SetDataCompression ( int c ) { m_SHeader2.iDataCompression = c; }
|
154 |
void SetDataCompression ( int c ) { m_SHeader2.iDataCompression = c; }
|
154 |
void SetFileCompression ( int c ) { m_SHeader2.iFileCompression = c; }
|
155 |
void SetFileCompression ( int c ) { m_SHeader2.iFileCompression = c; }
|
155 |
void SetValueCompression( int c ) { m_SHeader.iValueCompression = c; }
|
156 |
void SetValueCompression( int c ) { m_SHeader.iValueCompression = c; }
|
156 |
void SetIcon ( C_File *file, CyString ext ) { if ( m_pIconFile ) delete m_pIconFile; m_sIconExt = ext; 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(); }
|
157 |
void SetFtpAddr ( CyString str ) { m_sFtpAddr = str; }
|
158 |
void SetFtpAddr ( CyString str ) { m_sFtpAddr = str; }
|
158 |
|
159 |
|
159 |
void AddFileScript(FileType filetype, bool shared, bool packed, const Utils::String &rest, const Utils::String &sMainGame, Utils::CStringList &otherGames, Utils::CStringList &gameAddons, CProgressInfo *progress = NULL);
|
160 |
void AddFileScript(FileType filetype, bool shared, bool packed, const Utils::String &rest, const Utils::String &sMainGame, Utils::CStringList &otherGames, Utils::CStringList &gameAddons, CProgressInfo *progress = NULL);
|
160 |
|
161 |
|
161 |
bool IsMod();
|
162 |
bool IsMod();
|
Line 334... |
Line 335... |
334 |
protected:
|
335 |
protected:
|
335 |
SSPKHeader m_SHeader;
|
336 |
SSPKHeader m_SHeader;
|
336 |
SSPKHeader2 m_SHeader2;
|
337 |
SSPKHeader2 m_SHeader2;
|
337 |
|
338 |
|
338 |
C_File *m_pIconFile;
|
339 |
C_File *m_pIconFile;
|
339 |
CyString m_sIconExt;
|
340 |
Utils::String _sIconExt;
|
340 |
Utils::String _sLastError;
|
341 |
Utils::String _sLastError;
|
341 |
int _iLastError;
|
342 |
int _iLastError;
|
342 |
|
343 |
|
343 |
CLinkList<C_File> m_lFiles;
|
344 |
CLinkList<C_File> m_lFiles;
|
344 |
CLinkList<SNames> m_lNames; //TODO: move to CorePackage
|
345 |
CLinkList<SNames> m_lNames; //TODO: move to CorePackage
|