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

Function GetPackageLocation

src/Core/System/Package.cpp:11–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace obe::System::Package
10{
11 std::string GetPackageLocation(const std::string& packageName)
12 {
13 if (PackageExists(packageName))
14 {
15 return vili::parser::from_file("Package/Packages.vili"_fs)
16 .at(packageName)
17 .at("path");
18 }
19 throw Exceptions::UnknownPackage(packageName, ListPackages(), EXC_INFO);
20 }
21
22 bool PackageExists(const std::string& packageName)
23 {

Callers 1

LoadFunction · 0.85

Calls 5

PackageExistsFunction · 0.85
from_fileFunction · 0.85
UnknownPackageClass · 0.85
ListPackagesFunction · 0.85
atMethod · 0.45

Tested by

no test coverage detected