MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / FindContainer

Function FindContainer

FEXCore/Source/Interface/Config/Config.cpp:307–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305constexpr char ContainerManager[] = "/run/host/container-manager";
306
307fextl::string FindContainer() {
308 // We only support pressure-vessel at the moment
309 if (FHU::Filesystem::Exists(ContainerManager)) {
310 fextl::vector<char> Manager {};
311 if (FEXCore::FileLoading::LoadFile(Manager, ContainerManager)) {
312 // Trim the whitespace, may contain a newline
313 fextl::string ManagerStr = Manager.data();
314 ManagerStr = FEXCore::StringUtils::Trim(ManagerStr);
315 return ManagerStr;
316 }
317 }
318 return {};
319}
320
321fextl::string FindContainerPrefix() {
322 // We only support pressure-vessel at the moment

Callers 2

GetServerMountFolderFunction · 0.85
SetupClientFunction · 0.85

Calls 3

LoadFileFunction · 0.85
TrimFunction · 0.85
ExistsFunction · 0.70

Tested by

no test coverage detected