| 296 | |
| 297 | |
| 298 | static |
| 299 | EFI_STATUS FinishInitRefitLib(VOID) |
| 300 | { |
| 301 | EFI_STATUS Status; |
| 302 | |
| 303 | if (SelfRootDir == NULL) { |
| 304 | SelfRootDir = EfiLibOpenRoot(SelfLoadedImage->DeviceHandle); |
| 305 | if (SelfRootDir != NULL) { |
| 306 | SelfDeviceHandle = SelfLoadedImage->DeviceHandle; |
| 307 | } else { |
| 308 | return EFI_LOAD_ERROR; |
| 309 | } |
| 310 | } |
| 311 | /*Status = */SelfRootDir->Open(SelfRootDir, &ThemeX.ThemeDir, ThemePath.wc_str(), EFI_FILE_MODE_READ, 0); |
| 312 | /*Status = */SelfRootDir->Open(SelfRootDir, &OEMDir, OEMPath.wc_str(), EFI_FILE_MODE_READ, 0); |
| 313 | Status = SelfRootDir->Open(SelfRootDir, &SelfDir, SelfDirPath.wc_str(), EFI_FILE_MODE_READ, 0); |
| 314 | CheckFatalError(Status, L"while opening our installation directory"); |
| 315 | return Status; |
| 316 | } |
| 317 | BOOLEAN IsEmbeddedTheme() |
| 318 | { |
| 319 | if (ThemeX.embedded) { |
no test coverage detected