MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / Install

Function Install

src/Core/System/Package.cpp:39–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 7

getFileListFunction · 0.85
PackageFileNotFoundClass · 0.85
PackageExistsFunction · 0.85
infoMethod · 0.80
containsFunction · 0.50
formatFunction · 0.50

Tested by

no test coverage detected