MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / FinishInitRefitLib

Function FinishInitRefitLib

rEFIt_UEFI/refit/lib.cpp:298–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296
297
298static
299EFI_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}
317BOOLEAN IsEmbeddedTheme()
318{
319 if (ThemeX.embedded) {

Callers 2

InitRefitLibFunction · 0.85
ReinitRefitLibFunction · 0.85

Calls 4

CheckFatalErrorFunction · 0.85
EfiLibOpenRootFunction · 0.50
OpenMethod · 0.45
wc_strMethod · 0.45

Tested by

no test coverage detected