| Line 53... |
Line 53... |
| 53 |
|
53 |
|
| 54 |
|
54 |
|
| 55 |
public:
|
55 |
public:
|
| 56 |
static int ConvertScriptType(const Utils::String &sType);
|
56 |
static int ConvertScriptType(const Utils::String &sType);
|
| 57 |
static Utils::String GetScriptTypeStringStatic(int type);
|
57 |
static Utils::String GetScriptTypeStringStatic(int type);
|
| 58 |
static Utils::String GetWareText(SWares *w, int lang);
|
58 |
static Utils::WString GetWareText(SWares *w, int lang);
|
| 59 |
static Utils::String GetWareDesc(SWares *w, int lang);
|
59 |
static Utils::WString GetWareDesc(SWares *w, int lang);
|
| 60 |
|
60 |
|
| 61 |
// get functions
|
61 |
// get functions
|
| 62 |
Utils::String GetScriptTypeString(int lang) const;
|
62 |
Utils::String GetScriptTypeString(int lang) const;
|
| 63 |
Utils::String GetCustomScriptType () const { return m_sScriptType; }
|
63 |
Utils::String GetCustomScriptType () const { return m_sScriptType; }
|
| 64 |
Utils::String GetCustomScriptType (int lang) const;
|
64 |
Utils::String GetCustomScriptType (int lang) const;
|
| Line 108... |
Line 108... |
| 108 |
void SetCustomStart() { this->SetPackageType(PACKAGETYPE_CUSTOMSTART); }
|
108 |
void SetCustomStart() { this->SetPackageType(PACKAGETYPE_CUSTOMSTART); }
|
| 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::String &sFirst, const Utils::String &sRest, const Utils::String &sMainGame, Utils::CStringList &otherGames, Utils::CStringList &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::CStringList *list, int game, const Utils::CStringList &gameAddons, bool datafile = false) override;
|
| 115 |
|
115 |
|
| 116 |
CSpkFile();
|
116 |
CSpkFile();
|
| 117 |
virtual ~CSpkFile();
|
117 |
virtual ~CSpkFile();
|
| 118 |
|
118 |
|
| Line 125... |
Line 125... |
| 125 |
virtual Utils::String createValuesLine() const override;
|
125 |
virtual Utils::String createValuesLine() const override;
|
| 126 |
bool writeHeader(CFileIO &file, int iHeader, int iLength) const override;
|
126 |
bool writeHeader(CFileIO &file, int iHeader, int iLength) const override;
|
| 127 |
|
127 |
|
| 128 |
SWares *FindWare(const Utils::String &id) const;
|
128 |
SWares *FindWare(const Utils::String &id) const;
|
| 129 |
void AddWare(const Utils::String &sWareLine);
|
129 |
void AddWare(const Utils::String &sWareLine);
|
| 130 |
void AddWareText(const Utils::String &sText);
|
130 |
void addWareText(const Utils::WString &sText);
|
| 131 |
void AddWare(SWares *pWare);
|
131 |
void AddWare(SWares *pWare);
|
| 132 |
void AddWareText(SWares *pWare, int iLang, const Utils::String &sName, const Utils::String &sDesc);
|
132 |
void addWareText(SWares *pWare, int iLang, const Utils::WString &sName, const Utils::WString &sDesc);
|
| 133 |
void RemoveWare(const Utils::String &sWare);
|
133 |
void RemoveWare(const Utils::String &sWare);
|
| 134 |
void RemoveWareText(const Utils::String &sName, int iLang);
|
134 |
void RemoveWareText(const Utils::String &sName, int iLang);
|
| 135 |
void ClearWareText(SWares *pWare);
|
135 |
void ClearWareText(SWares *pWare);
|
| 136 |
void ClearWareText(const Utils::String &sWare);
|
136 |
void ClearWareText(const Utils::String &sWare);
|
| 137 |
void ClearWares ();
|
137 |
void ClearWares ();
|