Changeset View
Changeset View
Standalone View
Standalone View
source/ps/ModInstaller.h
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | public: | ||||
*/ | */ | ||||
CModInstaller(const OsPath& modsdir, const OsPath& tempdir); | CModInstaller(const OsPath& modsdir, const OsPath& tempdir); | ||||
~CModInstaller(); | ~CModInstaller(); | ||||
/** | /** | ||||
* Process and unpack the mod. | * Process and unpack the mod. | ||||
* @param mod path of .pyromod/.zip file | * @param mod path of .pyromod/.zip file | ||||
* @param keepFile if true, copy the file, if false move it | |||||
*/ | */ | ||||
ModInstallationResult Install( | ModInstallationResult Install( | ||||
const OsPath& mod, | const OsPath& mod, | ||||
const std::shared_ptr<ScriptRuntime>& scriptRuntime, | const std::shared_ptr<ScriptRuntime>& scriptRuntime, | ||||
bool deleteAfterInstall); | bool keepFile); | ||||
/** | /** | ||||
* @return a list of all mods installed so far by this CModInstaller. | * @return a list of all mods installed so far by this CModInstaller. | ||||
*/ | */ | ||||
const std::vector<CStr>& GetInstalledMods() const; | const std::vector<CStr>& GetInstalledMods() const; | ||||
/** | /** | ||||
* @return whether the path has a mod-like extension. | * @return whether the path has a mod-like extension. | ||||
Show All 15 Lines |
Wildfire Games · Phabricator