| 319 | } |
| 320 | |
| 321 | fextl::string FindContainerPrefix() { |
| 322 | // We only support pressure-vessel at the moment |
| 323 | if (FHU::Filesystem::Exists(ContainerManager)) { |
| 324 | fextl::vector<char> Manager {}; |
| 325 | if (FEXCore::FileLoading::LoadFile(Manager, ContainerManager)) { |
| 326 | // Trim the whitespace, may contain a newline |
| 327 | fextl::string ManagerStr = Manager.data(); |
| 328 | ManagerStr = FEXCore::StringUtils::Trim(ManagerStr); |
| 329 | if (strncmp(ManagerStr.data(), "pressure-vessel", Manager.size()) == 0) { |
| 330 | // We are running inside of pressure vessel |
| 331 | // Our $CMAKE_INSTALL_PREFIX paths are now inside of /run/host/$CMAKE_INSTALL_PREFIX |
| 332 | return "/run/host/"; |
| 333 | } |
| 334 | } |
| 335 | } |
| 336 | return {}; |
| 337 | } |
| 338 | |
| 339 | void ReloadMetaLayer() { |
| 340 | Meta->Load(); |
no test coverage detected