| Line 34... |
Line 34... |
| 34 |
~CPackages ();
|
34 |
~CPackages ();
|
| 35 |
|
35 |
|
| 36 |
bool isOldDir(const Utils::String &dir);
|
36 |
bool isOldDir(const Utils::String &dir);
|
| 37 |
bool Read(CyString dir, CProgressInfo *progress = NULL);
|
37 |
bool Read(CyString dir, CProgressInfo *progress = NULL);
|
| 38 |
bool read(const Utils::String &dir, CProgressInfo *progress = NULL);
|
38 |
bool read(const Utils::String &dir, CProgressInfo *progress = NULL);
|
| 39 |
void Startup(CyString dir, CyString tempDir, CyString myDoc, CyString mod = NullString);
|
- |
|
| 40 |
void startup(const Utils::String &dir, const Utils::String &tempDir, const Utils::String &myDoc);
|
39 |
void startup(const Utils::String &dir, const Utils::String &tempDir, const Utils::String &myDoc);
|
| 41 |
void startup(const Utils::String &dir, const Utils::String &tempDir, const Utils::String &myDoc, const Utils::String &mod);
|
40 |
void startup(const Utils::String &dir, const Utils::String &tempDir, const Utils::String &myDoc, const Utils::String &mod);
|
| 42 |
|
41 |
|
| 43 |
bool extractAll(CBaseFile *baseFile, const Utils::String &dir, int game, bool includedir = true, CProgressInfo *progress = NULL) const;
|
42 |
bool extractAll(CBaseFile *baseFile, const Utils::String &dir, int game, bool includedir = true, CProgressInfo *progress = NULL) const;
|
| 44 |
bool generatePackagerScript(CBaseFile *baseFile, bool wildcard, Utils::CStringList *list, int game, bool datafile = false) const;
|
43 |
bool generatePackagerScript(CBaseFile *baseFile, bool wildcard, Utils::CStringList *list, int game, bool datafile = false) const;
|
| 45 |
CBaseFile *LoadPackagerScript(const Utils::String &filename, int compression, Utils::String (*askFunc)(const Utils::String &), Utils::CStringList *malformedLines = NULL, Utils::CStringList *unknownCommands = NULL, Utils::CStringList *variables = NULL, CProgressInfo *progress = NULL);
|
44 |
CBaseFile *LoadPackagerScript(const Utils::String &filename, int compression, Utils::String (*askFunc)(const Utils::String &), Utils::CStringList *malformedLines = NULL, Utils::CStringList *unknownCommands = NULL, Utils::CStringList *variables = NULL, CProgressInfo *progress = NULL);
|
| 46 |
CyStringList *GetGlobals() { return &m_lGlobals; }
|
45 |
CyStringList *GetGlobals() { return &m_lGlobals; }
|
| 47 |
CyStringList *GetFakePatchOrder() { return &m_lFakePatchOrder; }
|
46 |
CyStringList *GetFakePatchOrder() { return &m_lFakePatchOrder; }
|
| 48 |
Utils::String getCurrentDirectory() const;
|
47 |
Utils::String getCurrentDirectory() const;
|
| 49 |
static CyString GetTempDirectory() { return m_sTempDir; }
|
48 |
//static CyString GetTempDirectory() { return m_sTempDir; }
|
| 50 |
static const Utils::String &tempDirectory() { return m_sTempDir; }
|
49 |
static const Utils::String &tempDirectory() { return m_sTempDir; }
|
| 51 |
CyString GetMyDocuments() { return m_sMyDoc; }
|
50 |
CyString GetMyDocuments() { return m_sMyDoc; }
|
| 52 |
const Utils::String &myDocuments() { return m_sMyDoc; }
|
51 |
const Utils::String &myDocuments() { return m_sMyDoc; }
|
| 53 |
CGameExe *GetGameExe() { return &m_gameExe; }
|
52 |
CGameExe *GetGameExe() { return &m_gameExe; }
|
| 54 |
CLinkList<CBaseFile> *GetInstallPackageList() { return &m_lInstallList; }
|
53 |
CLinkList<CBaseFile> *GetInstallPackageList() { return &m_lInstallList; }
|
| Line 182... |
Line 181... |
| 182 |
Utils::String saveDirectory();
|
181 |
Utils::String saveDirectory();
|
| 183 |
void backupSaves() { backupSaves(m_bVanilla); }
|
182 |
void backupSaves() { backupSaves(m_bVanilla); }
|
| 184 |
void backupSaves(bool vanilla);
|
183 |
void backupSaves(bool vanilla);
|
| 185 |
void restoreSaves() { restoreSaves(m_bVanilla); }
|
184 |
void restoreSaves() { restoreSaves(m_bVanilla); }
|
| 186 |
void restoreSaves(bool vanilla);
|
185 |
void restoreSaves(bool vanilla);
|
| 187 |
bool UnPackFile(CyString filename, bool checkxml = true);
|
186 |
bool UnPackFile(const Utils::String &filename, bool checkxml = true);
|
| 188 |
bool PackFile(CyString filename);
|
187 |
bool PackFile(CyString filename);
|
| 189 |
bool PackFile(CFileIO *File, CyString filename);
|
188 |
bool PackFile(CFileIO *File, CyString filename);
|
| 190 |
Utils::String ConvertTextString(const Utils::String &text);
|
189 |
Utils::String ConvertTextString(const Utils::String &text);
|
| 191 |
void LoadVirtualFileSystem();
|
190 |
void LoadVirtualFileSystem();
|
| 192 |
bool CheckAccessRights(CyString dir);
|
191 |
bool CheckAccessRights(CyString dir);
|
| Line 212... |
Line 211... |
| 212 |
void addCustomWarePriceOverride(const Utils::String &id, int price);
|
211 |
void addCustomWarePriceOverride(const Utils::String &id, int price);
|
| 213 |
void addCustomWareNotoOverride(const Utils::String &id, int noto);
|
212 |
void addCustomWareNotoOverride(const Utils::String &id, int noto);
|
| 214 |
|
213 |
|
| 215 |
int GetCurrentGameFlags() { return m_iGameFlags; }
|
214 |
int GetCurrentGameFlags() { return m_iGameFlags; }
|
| 216 |
|
215 |
|
| 217 |
void SetCurrentDir(CyString dir);
|
216 |
void setCurrentDir(const Utils::String &dir);
|
| 218 |
|
217 |
|
| 219 |
// merge mods
|
218 |
// merge mods
|
| 220 |
void getMergedFiles(Utils::CStringList &list, CCatFile *cat1, CCatFile *cat2);
|
219 |
void getMergedFiles(Utils::CStringList &list, CCatFile *cat1, CCatFile *cat2);
|
| 221 |
bool CanWeMerge(const Utils::String &file) const;
|
220 |
bool CanWeMerge(const Utils::String &file) const;
|
| 222 |
bool MergeMods(CCatFile *mod1, CCatFile *mod2, CyString outFile, CyStringList *cantMerge);
|
221 |
bool MergeMods(CCatFile *mod1, CCatFile *mod2, CyString outFile, CyStringList *cantMerge);
|
| Line 343... |
Line 342... |
| 343 |
int _warePriceOverride(enum WareTypes type, int pos, const Utils::String &id);
|
342 |
int _warePriceOverride(enum WareTypes type, int pos, const Utils::String &id);
|
| 344 |
bool _wareNotoOverride(enum WareTypes type, int pos, const Utils::String &id, int *noto);
|
343 |
bool _wareNotoOverride(enum WareTypes type, int pos, const Utils::String &id, int *noto);
|
| 345 |
void _removeWareOverride(enum WareTypes type, int pos, const Utils::String &id);
|
344 |
void _removeWareOverride(enum WareTypes type, int pos, const Utils::String &id);
|
| 346 |
|
345 |
|
| 347 |
private:
|
346 |
private:
|
| 348 |
CyString m_sCurrentDir;
|
347 |
Utils::String m_sCurrentDir;
|
| 349 |
static Utils::String m_sTempDir;
|
348 |
static Utils::String m_sTempDir;
|
| 350 |
Utils::String m_sMyDoc;
|
349 |
Utils::String m_sMyDoc;
|
| 351 |
CyString m_sSetMod;
|
350 |
CyString m_sSetMod;
|
| 352 |
Utils::String _sSaveDir;
|
351 |
Utils::String _sSaveDir;
|
| 353 |
GameDirectory *_pCurrentDir;
|
352 |
GameDirectory *_pCurrentDir;
|