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

Function Load

src/Core/System/Package.cpp:57–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 }
56
57 bool Load(const std::string& packageName, const unsigned int priority)
58 {
59 Debug::Log->info(
60 "<Package> Loading Package '{0}' with priority", packageName, priority);
61 if (PackageExists(packageName))
62 {
63 MountablePath::Mount(MountablePath(
64 MountablePathType::Package, GetPackageLocation(packageName), priority));
65 return true;
66 }
67 throw Exceptions::UnknownPackage(packageName, ListPackages(), EXC_INFO);
68 }
69} // namespace obe::System::Package

Callers 1

LoadMountFileMethod · 0.70

Calls 6

PackageExistsFunction · 0.85
MountablePathClass · 0.85
GetPackageLocationFunction · 0.85
UnknownPackageClass · 0.85
ListPackagesFunction · 0.85
infoMethod · 0.80

Tested by

no test coverage detected