Line 32... |
Line 32... |
32 |
|
32 |
|
33 |
CPackages ();
|
33 |
CPackages ();
|
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);
|
- |
|
38 |
bool read(const Utils::String &dir, CProgressInfo *progress = NULL);
|
37 |
bool read(const Utils::String &dir, CProgressInfo *progress = NULL);
|
39 |
void startup(const Utils::String &dir, const Utils::String &tempDir, const Utils::String &myDoc);
|
38 |
void startup(const Utils::String &dir, const Utils::String &tempDir, const Utils::String &myDoc);
|
40 |
void startup(const Utils::String &dir, const Utils::String &tempDir, const Utils::String &myDoc, const Utils::String &mod);
|
39 |
void startup(const Utils::String &dir, const Utils::String &tempDir, const Utils::String &myDoc, const Utils::String &mod);
|
41 |
|
40 |
|
42 |
bool extractAll(CBaseFile *baseFile, const Utils::String &dir, int game, bool includedir = true, CProgressInfo *progress = NULL) const;
|
41 |
bool extractAll(CBaseFile *baseFile, const Utils::String &dir, int game, bool includedir = true, CProgressInfo *progress = NULL) const;
|
Line 50... |
Line 49... |
50 |
CGameExe *GetGameExe() { return &m_gameExe; }
|
49 |
CGameExe *GetGameExe() { return &m_gameExe; }
|
51 |
CLinkList<CBaseFile> *GetInstallPackageList() { return &m_lInstallList; }
|
50 |
CLinkList<CBaseFile> *GetInstallPackageList() { return &m_lInstallList; }
|
52 |
|
51 |
|
53 |
// installing/uninstalling
|
52 |
// installing/uninstalling
|
54 |
bool InstallPackage ( CBaseFile *package, CyStringList *errors, CProgressInfo *progress = NULL, bool disabled = false );
|
53 |
bool InstallPackage ( CBaseFile *package, CyStringList *errors, CProgressInfo *progress = NULL, bool disabled = false );
|
55 |
CBaseFile *OpenPackage ( CyString file, int *error, CProgressInfo *progress = NULL, int readtype = SPKREAD_ALL, int flags = READFLAG_NONE );
|
54 |
CBaseFile *openPackage(const Utils::String &file, int *error, CProgressInfo *progress = NULL, int readtype = SPKREAD_ALL, int flags = READFLAG_NONE);
|
56 |
CMultiSpkFile *OpenMultiPackage(CyString file, int *error, CProgressInfo *progress = NULL);
|
55 |
CMultiSpkFile *openMultiPackage(const Utils::String &file, int *error, CProgressInfo *progress = NULL);
|
57 |
bool OpenMultiPackage ( CyString file, CLinkList<CBaseFile> *packageList, int *error, CProgressInfo *progress = NULL );
|
56 |
bool openMultiPackage(const Utils::String &file, CLinkList<CBaseFile> *packageList, int *error, CProgressInfo *progress = NULL );
|
58 |
int CheckInstallPackage(CBaseFile *package, int check = IC_ALL);
|
57 |
int CheckInstallPackage(CBaseFile *package, int check = IC_ALL);
|
59 |
bool RemoveFile(C_File *file, CyStringList *errors = NULL);
|
58 |
bool RemoveFile(C_File *file, CyStringList *errors = NULL);
|
60 |
void PrepareUninstallPackage(CBaseFile *package);
|
59 |
void PrepareUninstallPackage(CBaseFile *package);
|
61 |
bool UninstallPreparedPackages(CyStringList *errors, CProgressInfo *progress, CLinkList<CBaseFile> *uninstalledPackages = NULL, CLinkList<CBaseFile> *disabledPackages = NULL);
|
60 |
bool UninstallPreparedPackages(CyStringList *errors, CProgressInfo *progress, CLinkList<CBaseFile> *uninstalledPackages = NULL, CLinkList<CBaseFile> *disabledPackages = NULL);
|
62 |
void ConvertOldPackage(CBaseFile *p);
|
61 |
void ConvertOldPackage(CBaseFile *p);
|
63 |
void PurgeUninstallScripts(CBaseFile *package, CyStringList *errors);
|
62 |
void PurgeUninstallScripts(CBaseFile *package, CyStringList *errors);
|
64 |
int PrepareInstallPackage(CBaseFile *package, bool disabled = false, bool force = false, int check = IC_ALL);
|
63 |
int PrepareInstallPackage(CBaseFile *package, bool disabled = false, bool force = false, int check = IC_ALL);
|
65 |
int InstallPreparedPackages(CyStringList *errors, CProgressInfo *progress, CLinkList<CBaseFile> *errored, CLinkList<CBaseFile> *installedList = NULL);
|
64 |
int InstallPreparedPackages(CyStringList *errors, CProgressInfo *progress, CLinkList<CBaseFile> *errored, CLinkList<CBaseFile> *installedList = NULL);
|
66 |
void RemovePreparedInstall(CBaseFile *package);
|
65 |
void RemovePreparedInstall(CBaseFile *package);
|
67 |
int GetNumPackagesInQueue() { return m_lInstallList.size(); }
|
66 |
int GetNumPackagesInQueue() { return m_lInstallList.size(); }
|
68 |
int CheckOpenPackage(CyString file, int *error);
|
67 |
int checkOpenPackage(const Utils::String &file, int* error);
|
69 |
bool findAllNeededDependacies(CBaseFile *p, const CLinkList<CBaseFile> &packages, CLinkList<CBaseFile> *foundPackages, bool onlyEnabled = false, bool includePrepared = false) const;
|
68 |
bool findAllNeededDependacies(CBaseFile *p, const CLinkList<CBaseFile> &packages, CLinkList<CBaseFile> *foundPackages, bool onlyEnabled = false, bool includePrepared = false) const;
|
70 |
int GetMissingDependacies(CBaseFile *p, Utils::CStringList *list, bool onlyEnabled = false, bool includePrepared = false);
|
69 |
int GetMissingDependacies(CBaseFile *p, Utils::CStringList *list, bool onlyEnabled = false, bool includePrepared = false);
|
71 |
size_t getDownloadableDependacies(CBaseFile* p, std::vector<const SAvailablePackage*>& list, bool onlyEnabled = false, bool includePrepared = false) const;
|
70 |
size_t getDownloadableDependacies(CBaseFile* p, std::vector<const SAvailablePackage*>& list, bool onlyEnabled = false, bool includePrepared = false) const;
|
72 |
bool CheckInstalledDependacy(CyString name, CyString author, CyString version, bool onlyEnabled = false, bool includePerpered = false);
|
- |
|
73 |
bool checkInstalledDependacy(const Utils::String &name, const Utils::String &author, const Utils::String &version, bool onlyEnabled = false, bool includePerpered = false) const;
|
71 |
bool checkInstalledDependacy(const Utils::String &name, const Utils::String &author, const Utils::String &version, bool onlyEnabled = false, bool includePerpered = false) const;
|
74 |
bool CheckEnabledDependacy(CBaseFile *p);
|
72 |
bool CheckEnabledDependacy(CBaseFile *p);
|
75 |
int GetDependacyList(CBaseFile *package, CLinkList<CBaseFile> *list);
|
73 |
int GetDependacyList(CBaseFile *package, CLinkList<CBaseFile> *list);
|
76 |
int PrepareMultiPackage ( CyString file, CLinkList<CBaseFile> *errorPackageList, int *error, CProgressInfo *progress = 0);
|
74 |
int prepareMultiPackage(const Utils::String &file, CLinkList<CBaseFile> *errorPackageList, int *error, CProgressInfo *progress = 0);
|
77 |
|
75 |
|
78 |
bool IsOldPluginManager() { return m_bOldPlugin; }
|
76 |
bool IsOldPluginManager() { return m_bOldPlugin; }
|
79 |
int findPackageFiles(CLinkList<CBaseFile> &packages, const Utils::String &dir);
|
77 |
int findPackageFiles(CLinkList<CBaseFile> &packages, const Utils::String &dir);
|
80 |
int findPackageDirectories(CLinkList<CBaseFile> &packages, const Utils::String &dir);
|
78 |
int findPackageDirectories(CLinkList<CBaseFile> &packages, const Utils::String &dir);
|
81 |
int findAllPackages(CLinkList<CBaseFile> &packages, const Utils::String &dir);
|
79 |
int findAllPackages(CLinkList<CBaseFile> &packages, const Utils::String &dir);
|
Line 97... |
Line 95... |
97 |
|
95 |
|
98 |
void WriteData();
|
96 |
void WriteData();
|
99 |
bool CloseDir ( CyStringList *errors = 0, CProgressInfo *progress = NULL, bool removedir = false );
|
97 |
bool CloseDir ( CyStringList *errors = 0, CProgressInfo *progress = NULL, bool removedir = false );
|
100 |
bool RestoreFakePatch();
|
98 |
bool RestoreFakePatch();
|
101 |
bool ReadyFakePatch();
|
99 |
bool ReadyFakePatch();
|
102 |
bool CheckValidPluginManagerFile(CyString filename);
|
100 |
bool checkValidPluginManagerFile(const Utils::String &filename) const;
|
103 |
bool CheckIfPluginManagerFile(CyString filename);
|
101 |
bool checkIfPluginManagerFile(const Utils::String &filename) const;
|
104 |
|
102 |
|
105 |
// package control
|
103 |
// package control
|
106 |
void UpdateUsedFiles(CLinkList<CBaseFile> *ignoreList = NULL, bool = true);
|
104 |
void UpdateUsedFiles(CLinkList<CBaseFile> *ignoreList = NULL, bool = true);
|
107 |
void UpdateSigned();
|
105 |
void UpdateSigned();
|
108 |
bool UpdatePackages(int doStatus = -1, bool individual = false);
|
106 |
bool UpdatePackages(int doStatus = -1, bool individual = false);
|
109 |
CBaseFile *FindXspPackage(CyString id);
|
107 |
CBaseFile *findXspPackage(const Utils::String &id) const;
|
110 |
CBaseFile *FindSpkPackage(CyString name, CyString author);
|
- |
|
111 |
CBaseFile *findSpkPackage(const Utils::String &name, const Utils::String &author) const;
|
108 |
CBaseFile *findSpkPackage(const Utils::String &name, const Utils::String &author) const;
|
112 |
CArchiveFile *FindArchivePackage(CyString name);
|
109 |
CArchiveFile *findArchivePackage(const Utils::String &name) const;
|
113 |
CBaseFile* FindPackage(CyString name, CyString author);
|
- |
|
114 |
CBaseFile* findPackage(const Utils::String &name, const Utils::String &author) const;
|
110 |
CBaseFile* findPackage(const Utils::String &name, const Utils::String &author) const;
|
115 |
CBaseFile *FindFirstPackageWithFile(C_File *f);
|
111 |
CBaseFile *findFirstPackageWithFile(C_File *f) const;
|
116 |
CBaseFile *FindNextPackageWithFile(CBaseFile *p, C_File *f);
|
112 |
CBaseFile *findNextPackageWithFile(CBaseFile *p, C_File *f) const;
|
117 |
CBaseFile *FindPackage(CBaseFile *package);
|
113 |
CBaseFile *findPackage(CBaseFile *package) const;
|
118 |
C_File *FindFile(int filetype, CyString filename, CyString dir = NullString);
|
114 |
C_File *findFile(FileType filetype, const Utils::String &filename, const Utils::String &dir = Utils::String::Null()) const;
|
119 |
CBaseFile *FirstPackage() { return m_lPackages.First(); }
|
115 |
CBaseFile *FirstPackage() { return m_lPackages.First(); }
|
120 |
CBaseFile *NextPackage() { return m_lPackages.Next(); }
|
116 |
CBaseFile *NextPackage() { return m_lPackages.Next(); }
|
121 |
CBaseFile *GetFirstPackage() { if ( m_lPackages.Front() ) return m_lPackages.Front()->Data(); return NULL; }
|
117 |
CBaseFile *GetFirstPackage() { if ( m_lPackages.Front() ) return m_lPackages.Front()->Data(); return NULL; }
|
122 |
CBaseFile *GetNextPackage(CBaseFile *from)
|
118 |
CBaseFile *GetNextPackage(CBaseFile *from)
|
123 |
{
|
119 |
{
|
Line 133... |
Line 129... |
133 |
return NULL;
|
129 |
return NULL;
|
134 |
}
|
130 |
}
|
135 |
void Reset();
|
131 |
void Reset();
|
136 |
CBaseFile *GetPackageAt(int i) { return m_lPackages[i]; }
|
132 |
CBaseFile *GetPackageAt(int i) { return m_lPackages[i]; }
|
137 |
Utils::String selectedModName() const;
|
133 |
Utils::String selectedModName() const;
|
138 |
CyString GetModKey();
|
134 |
Utils::String getModKey() const;
|
139 |
void SetupWares();
|
135 |
void SetupWares();
|
140 |
void SetupShips();
|
136 |
void SetupShips();
|
141 |
void PurgeGameObjects();
|
137 |
void PurgeGameObjects();
|
142 |
void PurgeWares();
|
138 |
void PurgeWares();
|
143 |
void PurgeShips();
|
139 |
void PurgeShips();
|
Line 156... |
Line 152... |
156 |
int RemoveUnusedSharedFiles(CyStringList *errors = 0, CProgressInfo *progress = NULL);
|
152 |
int RemoveUnusedSharedFiles(CyStringList *errors = 0, CProgressInfo *progress = NULL);
|
157 |
bool RemoveSharedFile(C_File *file, CyStringList *errors = NULL);
|
153 |
bool RemoveSharedFile(C_File *file, CyStringList *errors = NULL);
|
158 |
void ShufflePatchTo(C_File *file, int to, CyStringList *errors);
|
154 |
void ShufflePatchTo(C_File *file, int to, CyStringList *errors);
|
159 |
void ShuffleFakePatches(CyStringList *errors);
|
155 |
void ShuffleFakePatches(CyStringList *errors);
|
160 |
void ShuffleTextFiles(CyStringList *errors);
|
156 |
void ShuffleTextFiles(CyStringList *errors);
|
161 |
int FindNextFakePatch(int start = 0, CyString dir = NullString);
|
157 |
int findNextFakePatch(int start = 0, const Utils::String &dir = Utils::String::Null()) const;
|
162 |
unsigned int findNextTextFile(unsigned int start = 4) const;
|
158 |
unsigned int findNextTextFile(unsigned int start = 4) const;
|
163 |
unsigned int findNextTextFile(const Utils::String &dir, unsigned int start = 4) const;
|
159 |
unsigned int findNextTextFile(const Utils::String &dir, unsigned int start = 4) const;
|
164 |
int FindLastFakePatch(int start = 99, CyString dir = NullString);
|
160 |
int findLastFakePatch(int start = 99, const Utils::String &dir = Utils::String::Null()) const;
|
165 |
int FindLastTextFile(int start = 9999, CyString dir = NullString);
|
161 |
int findLastTextFile(int start = 9999, const Utils::String &dir = Utils::String::Null()) const;
|
166 |
int FindLowestFakePatchInstalled();
|
162 |
int FindLowestFakePatchInstalled();
|
167 |
void ReadGameLanguage(bool force = true);
|
163 |
void ReadGameLanguage(bool force = true);
|
168 |
int RemoveAllPackages(CyStringList *errors = NULL, CProgressInfo *progress = NULL);
|
164 |
int RemoveAllPackages(CyStringList *errors = NULL, CProgressInfo *progress = NULL);
|
169 |
void AssignPackageNumbers();
|
165 |
void AssignPackageNumbers();
|
170 |
int GetChildPackages(CBaseFile *package, CLinkList<CBaseFile> *children, bool recursive = false);
|
166 |
int GetChildPackages(CBaseFile *package, CLinkList<CBaseFile> *children, bool recursive = false);
|
Line 185... |
Line 181... |
185 |
Utils::String saveDirectory();
|
181 |
Utils::String saveDirectory();
|
186 |
void backupSaves() { backupSaves(m_bVanilla); }
|
182 |
void backupSaves() { backupSaves(m_bVanilla); }
|
187 |
void backupSaves(bool vanilla);
|
183 |
void backupSaves(bool vanilla);
|
188 |
void restoreSaves() { restoreSaves(m_bVanilla); }
|
184 |
void restoreSaves() { restoreSaves(m_bVanilla); }
|
189 |
void restoreSaves(bool vanilla);
|
185 |
void restoreSaves(bool vanilla);
|
190 |
bool UnPackFile(const Utils::String &filename, bool checkxml = true);
|
186 |
bool unPackFile(const Utils::String &filename, bool checkxml = true) const;
|
191 |
bool PackFile(CyString filename);
|
- |
|
192 |
bool PackFile(CFileIO* File, CyString filename);
|
187 |
bool packFile(const Utils::String &filename) const;
|
193 |
bool packFile(CFileIO* File, const Utils::String &filename);
|
188 |
bool packFile(CFileIO* File, const Utils::String &filename) const;
|
194 |
Utils::String ConvertTextString(const Utils::String &text);
|
189 |
Utils::String ConvertTextString(const Utils::String &text);
|
195 |
void LoadVirtualFileSystem();
|
190 |
void LoadVirtualFileSystem();
|
196 |
bool CheckAccessRights(CyString dir);
|
191 |
bool checkAccessRights(const Utils::String &dir) const;
|
197 |
bool LoadShipData(CyString file, CyStringList *list);
|
- |
|
198 |
bool LoadShipData(CVirtualFileSystem *pVfs, CyStringList *list);
|
- |
|
199 |
bool ReadTextPage(CyString file, CyStringList *list, bool search, int page);
|
192 |
bool readTextPage(const Utils::String &file, Utils::CStringList &list, bool search, int page) const;
|
200 |
CyStringList *LoadShipData(CyString file);
|
- |
|
201 |
CyStringList *ReadTextPage(CyString file, bool search, int page);
|
193 |
size_t loadShipData(const Utils::String& file, Utils::CStringList& list) const;
|
202 |
FileType adjustFileType(const Utils::String &name, FileType filetype) const;
|
194 |
FileType adjustFileType(const Utils::String &name, FileType filetype) const;
|
203 |
CXspFile *extractShip(const Utils::String &sCatFile, const Utils::String &sId, CProgressInfo *progress = NULL);
|
195 |
CXspFile *extractShip(const Utils::String &sCatFile, const Utils::String &sId, CProgressInfo *progress = NULL);
|
204 |
CyString ReadShipData(CyString file, CyString entry);
|
196 |
Utils::String readShipData(const Utils::String &file, const Utils::String &entry) const;
|
205 |
bool IsSamePackage(CBaseFile *p1, CBaseFile *p2);
|
197 |
bool isSamePackage(CBaseFile *p1, CBaseFile *p2) const;
|
206 |
void ApplyFakePatchOrder(Utils::CStringList *list);
|
198 |
void ApplyFakePatchOrder(Utils::CStringList *list);
|
207 |
CBaseFile *CreateFromArchive(CyString filename, bool toInstall = false );
|
199 |
CBaseFile *createFromArchive(const Utils::String &filename, bool toInstall = false) const;
|
208 |
void ReadArchiveData(const char *buf, size_t len, CBaseFile *archive);
|
200 |
void readArchiveData(const char *buf, size_t len, CBaseFile *archive) const;
|
209 |
void ReadArchiveData(CyString filename, CBaseFile *archive);
|
201 |
void readArchiveData(const Utils::String &filename, CBaseFile *archive) const;
|
210 |
int VerifyInstalledFiles(CyStringList *missingFiles = NULL, bool getPackages = true);
|
202 |
size_t verifyInstalledFiles(Utils::CStringList *missingFiles = nullptr, bool getPackages = true) const;
|
211 |
Utils::String empWaresForGame(size_t *maxsize = NULL);
|
203 |
Utils::String empWaresForGame(size_t *maxsize = NULL);
|
212 |
void addEMPPriceOverride(int empId, int price);
|
204 |
void addEMPPriceOverride(int empId, int price);
|
213 |
void addEMPNotoOverride(int empId, int noto);
|
205 |
void addEMPNotoOverride(int empId, int noto);
|
214 |
void addBuiltInWarePriceOverride(int empId, int price);
|
206 |
void addBuiltInWarePriceOverride(int empId, int price);
|
215 |
void addBuiltInWareNotoOverride(int empId, int noto);
|
207 |
void addBuiltInWareNotoOverride(int empId, int noto);
|
Line 219... |
Line 211... |
219 |
int GetCurrentGameFlags() { return m_iGameFlags; }
|
211 |
int GetCurrentGameFlags() { return m_iGameFlags; }
|
220 |
|
212 |
|
221 |
void setCurrentDir(const Utils::String &dir);
|
213 |
void setCurrentDir(const Utils::String &dir);
|
222 |
|
214 |
|
223 |
// merge mods
|
215 |
// merge mods
|
224 |
void getMergedFiles(Utils::CStringList &list, CCatFile *cat1, CCatFile *cat2);
|
216 |
void getMergedFiles(Utils::CStringList &list, CCatFile *cat1, CCatFile *cat2) const;
|
225 |
bool CanWeMerge(const Utils::String &file) const;
|
217 |
bool canWeMerge(const Utils::String &file) const;
|
226 |
bool MergeMods(CCatFile *mod1, CCatFile *mod2, CyString outFile, CyStringList *cantMerge);
|
218 |
bool mergeMods(CCatFile *mod1, CCatFile *mod2, const Utils::String &outFile, Utils::CStringList *cantMerge) const;
|
227 |
bool NeedToMerge(CyString file);
|
219 |
bool needToMerge(const Utils::String &file) const;
|
228 |
CyStringList MergeTextFiles(CyStringList *files, CCatFile *mod1, CCatFile *mod2);
|
- |
|
229 |
bool getModCompatabilityList(C_File *file, Utils::CStringList *list = NULL);
|
220 |
bool getModCompatabilityList(C_File *file, Utils::CStringList *list = NULL) const;
|
230 |
bool CheckCompatabilityBetweenModFiles(C_File *from, C_File *to, CyStringList *list = NULL);
|
221 |
bool checkCompatabilityBetweenModFiles(C_File *from, C_File *to, Utils::CStringList *list = NULL) const;
|
231 |
bool CheckCompatabilityBetweenMods(CBaseFile *from, CBaseFile *to, CyStringList *list = NULL);
|
222 |
bool checkCompatabilityBetweenMods(CBaseFile *from, CBaseFile *to, Utils::CStringList *list = NULL) const;
|
232 |
int CheckCompatabilityAgainstPackages(CBaseFile *newFile, CyStringList *list = NULL, CLinkList<CBaseFile> *packages = NULL);
|
223 |
int checkCompatabilityAgainstPackages(CBaseFile *newFile, Utils::CStringList *list = NULL, CLinkList<CBaseFile> *packages = NULL) const;
|
233 |
|
224 |
|
234 |
CyString GetLanguageName() const;
|
225 |
Utils::String getLanguageName() const;
|
235 |
|
- |
|
236 |
int GetGameLanguage() const;
|
226 |
int getGameLanguage() const;
|
237 |
int GetGameLanguage(const Utils::String &dir) const;
|
227 |
int getGameLanguage(const Utils::String &dir) const;
|
238 |
int GetGameAddons(Utils::CStringList &exes);
|
228 |
int getGameAddons(Utils::CStringList &exes) const;
|
239 |
int GetGameAddons(Utils::CStringList &exes, const Utils::String &dir);
|
229 |
int getGameAddons(Utils::CStringList &exes, const Utils::String &dir) const;
|
240 |
Utils::String getGameName() const;
|
230 |
Utils::String getGameName() const;
|
241 |
Utils::String getGameName(const Utils::String &dir) const;
|
231 |
Utils::String getGameName(const Utils::String &dir) const;
|
242 |
CyString GetGameName(CyString dir = NullString);
|
- |
|
243 |
CyString GetGameVersionFromType(int game, int version, CyString sVersion);
|
232 |
Utils::String getGameVersionFromType(int game, int version, const Utils::String &sVersion) const;
|
244 |
CyString GetGameNameFromType(int game);
|
233 |
Utils::String getGameNameFromType(int game) const;
|
245 |
Utils::String getGameTypesString(CBaseFile *package, bool includeVersion);
|
234 |
Utils::String getGameTypesString(CBaseFile *package, bool includeVersion) const;
|
246 |
CyString GetGameVersionString(CBaseFile *package);
|
235 |
Utils::String getGameVersionString(CBaseFile *package) const;
|
247 |
Utils::String GetGameRunExe(const Utils::String &dir);
|
236 |
Utils::String getGameRunExe(const Utils::String &dir) const;
|
248 |
CyString GetProperDir(CyString dir = NullString);
|
- |
|
249 |
CyString GetAddonDir(CyString dir = NullString);
|
- |
|
250 |
Utils::String GetGameRunExe();
|
237 |
Utils::String getGameRunExe() const;
|
251 |
Utils::String getProperDir() const;
|
238 |
Utils::String getProperDir() const;
|
252 |
Utils::String getProperDir(const Utils::String &dir) const;
|
239 |
Utils::String getProperDir(const Utils::String &dir) const;
|
253 |
Utils::String getAddonDir() const;
|
240 |
Utils::String getAddonDir() const;
|
254 |
Utils::String getAddonDir(const Utils::String &dir) const;
|
241 |
Utils::String getAddonDir(const Utils::String &dir) const;
|
255 |
|
242 |
|
256 |
// text files
|
243 |
// text files
|
257 |
void CreateLanguageTextFiles(Utils::CStringList *errors = 0);
|
244 |
void CreateLanguageTextFiles(Utils::CStringList *errors = 0);
|
258 |
bool RenameTextFile(const Utils::String &textid, int languageid, Utils::CStringList *errors);
|
245 |
bool RenameTextFile(const Utils::String &textid, int languageid, Utils::CStringList *errors);
|
259 |
void AddTextFileToScripts(C_File *file, CyString textid);
|
246 |
void addTextFileToScripts(C_File *file, const Utils::String &textid);
|
260 |
void CreatePluginManagerText();
|
247 |
void CreatePluginManagerText();
|
261 |
void createPluginManagerOpenText();
|
248 |
void createPluginManagerOpenText();
|
262 |
|
249 |
|
263 |
// game control
|
250 |
// game control
|
264 |
void CreateEMPFile(CyString progDir = NullString);
|
251 |
void createEMPFile(const Utils::String &progDir = Utils::String::Null());
|
265 |
void CreateWareFiles();
|
252 |
void CreateWareFiles();
|
266 |
int ExtractGameFile(CyString aFilename, CyString aTo, CyString dir = NullString, CyString addon = NullString) { return extractGameFile(aFilename.ToString(), aTo.ToString(), dir.ToString(), addon.ToString()); }
|
- |
|
267 |
int extractGameFile(const Utils::String &aFilename, const Utils::String &aTo, const Utils::String &dir = Utils::String::Null(), const Utils::String &addon = Utils::String::Null()) const;
|
253 |
int extractGameFile(const Utils::String &aFilename, const Utils::String &aTo, const Utils::String &dir = Utils::String::Null(), const Utils::String &addon = Utils::String::Null()) const;
|
268 |
void CreateDummies();
|
254 |
void CreateDummies();
|
269 |
void CreateComponants();
|
255 |
void CreateComponants();
|
270 |
void CreateCutData();
|
256 |
void CreateCutData();
|
271 |
void CreateBodies();
|
257 |
void CreateBodies();
|
272 |
void CreateGlobals();
|
258 |
void CreateGlobals();
|
273 |
void CreateAnimations();
|
259 |
void CreateAnimations();
|
274 |
void CreateTShips();
|
260 |
void CreateTShips();
|
275 |
void CreateCustomStarts();
|
261 |
void CreateCustomStarts();
|
276 |
void AddCreatedFile(CyString file);
|
262 |
void addCreatedFile(const Utils::String &file);
|
277 |
|
263 |
|
278 |
bool readGlobals(Utils::CStringList &globals) const;
|
264 |
bool readGlobals(Utils::CStringList &globals) const;
|
279 |
bool readWares(int iLang, CLinkList<SWareEntry> &list);
|
265 |
bool readWares(int iLang, CLinkList<SWareEntry> &list);
|
280 |
bool readCommands(int iLang, CLinkList<SCommandSlot> &list);
|
266 |
bool readCommands(int iLang, CLinkList<SCommandSlot> &list);
|
281 |
bool readWingCommands(int iLang, CLinkList<SCommandSlot> &list);
|
267 |
bool readWingCommands(int iLang, CLinkList<SCommandSlot> &list);
|
Line 288... |
Line 274... |
288 |
void removeEmpOverride(int pos);
|
274 |
void removeEmpOverride(int pos);
|
289 |
void removeBuiltinWareOverride(int pos);
|
275 |
void removeBuiltinWareOverride(int pos);
|
290 |
void removeCustomWareOverride(const Utils::String &id);
|
276 |
void removeCustomWareOverride(const Utils::String &id);
|
291 |
|
277 |
|
292 |
// install text
|
278 |
// install text
|
293 |
CyString GetInstallBeforeText(CBaseFile *package);
|
279 |
Utils::String getInstallBeforeText(CBaseFile *package) const;
|
294 |
CyString GetInstallAfterText(CBaseFile *package);
|
280 |
Utils::String getInstallAfterText(CBaseFile *package) const;
|
295 |
CyString GetUninstallBeforeText(CBaseFile *package);
|
281 |
Utils::String getUninstallBeforeText(CBaseFile *package) const;
|
296 |
CyString GetUninstallAfterText(CBaseFile *package);
|
282 |
Utils::String getUninstallAfterText(CBaseFile *package) const;
|
297 |
|
283 |
|
298 |
//setting functions
|
284 |
//setting functions
|
299 |
void SetRenameText(bool b) { m_bRenameText = b; }
|
285 |
void SetRenameText(bool b) { m_bRenameText = b; }
|
300 |
void SetLanguage(int i) { m_iLanguage = i; }
|
286 |
void SetLanguage(int i) { m_iLanguage = i; }
|
301 |
void SetAutoEnable(bool b) { m_bAutoEnableChild = b; }
|
287 |
void SetAutoEnable(bool b) { m_bAutoEnableChild = b; }
|
Line 334... |
Line 320... |
334 |
const SAvailablePackage* findAvailablePackage(const Utils::String& filename) const;
|
320 |
const SAvailablePackage* findAvailablePackage(const Utils::String& filename) const;
|
335 |
const SAvailablePackage* findAvailablePackage(const Utils::String& name, const Utils::String& author) const;
|
321 |
const SAvailablePackage* findAvailablePackage(const Utils::String& name, const Utils::String& author) const;
|
336 |
CBaseFile* findFoundPackage(const Utils::String& name, const Utils::String& author) const;
|
322 |
CBaseFile* findFoundPackage(const Utils::String& name, const Utils::String& author) const;
|
337 |
int findAllServers(Utils::CStringList *list) const;
|
323 |
int findAllServers(Utils::CStringList *list) const;
|
338 |
|
324 |
|
339 |
CBaseFile *FindScriptByAuthor(CyString author, CBaseFile *prev = NULL);
|
325 |
CBaseFile *findScriptByAuthor(const Utils::String &author, CBaseFile *prev = NULL);
|
340 |
void RemoveFailedFiles();
|
326 |
void RemoveFailedFiles();
|
341 |
|
327 |
|
342 |
private:
|
328 |
private:
|
343 |
size_t _createCockpits(Utils::CStringList &list);
|
329 |
size_t _createCockpits(Utils::CStringList &list);
|
344 |
|
330 |
|
345 |
bool _checkForDisable(CBaseFile *package, bool disabled, CBaseFile *oldPackage);
|
331 |
bool _checkForDisable(CBaseFile *package, bool disabled, CBaseFile *oldPackage);
|
346 |
CBaseFile *_archive_fromRar(CyString filename, bool toInstall);
|
332 |
CBaseFile *_archive_fromRar(const Utils::String &filename, bool toInstall) const;
|
347 |
CBaseFile *_archive_fromZip(CyString filename, bool toInstall);
|
333 |
CBaseFile *_archive_fromZip(const Utils::String &filename, bool toInstall) const;
|
348 |
void _addToFakePatch(CBaseFile *pPackage);
|
334 |
void _addToFakePatch(CBaseFile *pPackage);
|
349 |
int _gameTextNumber() const;
|
335 |
int _gameTextNumber() const;
|
350 |
void _addWareOverride(enum WareTypes type, int pos, const Utils::String &id, int value, bool noto);
|
336 |
void _addWareOverride(enum WareTypes type, int pos, const Utils::String &id, int value, bool noto);
|
351 |
int _warePriceOverride(enum WareTypes type, int pos, const Utils::String &id);
|
337 |
int _warePriceOverride(enum WareTypes type, int pos, const Utils::String &id);
|
352 |
bool _wareNotoOverride(enum WareTypes type, int pos, const Utils::String &id, int *noto);
|
338 |
bool _wareNotoOverride(enum WareTypes type, int pos, const Utils::String &id, int *noto);
|