| 37 | } |
| 38 | |
| 39 | bool Install(const std::string& packageName) |
| 40 | { |
| 41 | Debug::Log->info("<Package> Installing Package '{0}'", packageName); |
| 42 | if (!Utils::Vector::contains( |
| 43 | packageName + ".opaque", Utils::File::getFileList("Package"))) |
| 44 | { |
| 45 | throw Exceptions::PackageFileNotFound( |
| 46 | fmt::format("Package/{}.opaque", packageName), EXC_INFO); |
| 47 | } |
| 48 | |
| 49 | if (!PackageExists(packageName)) |
| 50 | { |
| 51 | throw std::runtime_error( |
| 52 | "Invalid feature: Package installation has been disabled for >v0.4"); |
| 53 | } |
| 54 | throw Exceptions::PackageAlreadyInstalled(packageName, EXC_INFO); |
| 55 | } |
| 56 | |
| 57 | bool Load(const std::string& packageName, const unsigned int priority) |
| 58 | { |
nothing calls this directly
no test coverage detected