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

Function FileExists

rEFIt_UEFI/refit/lib.cpp:1332–1345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1330//
1331
1332BOOLEAN FileExists(IN CONST EFI_FILE *Root, IN CONST CHAR16 *RelativePath)
1333{
1334 EFI_STATUS Status;
1335 EFI_FILE *TestFile = NULL;
1336
1337 Status = Root->Open(Root, &TestFile, RelativePath, EFI_FILE_MODE_READ, 0);
1338 if (Status == EFI_SUCCESS) {
1339 if (TestFile && TestFile->Close) {
1340 TestFile->Close(TestFile);
1341 }
1342 return TRUE;
1343 }
1344 return FALSE;
1345}
1346
1347BOOLEAN FileExists(IN CONST EFI_FILE *Root, IN CONST XStringW& RelativePath)
1348{

Callers 15

GetRootFromPathFunction · 0.85
ScanVolumeFunction · 0.85
LoadDriversFunction · 0.85
SetOEMPathIfExistsFunction · 0.85
setup_nvidia_devpropFunction · 0.85
setup_gma_devpropFunction · 0.85
load_vbios_fileFunction · 0.85
SaveOemDsdtFunction · 0.85
PatchACPIFunction · 0.85
LoadAcpiTableFunction · 0.85
PatchACPI_OtherOSFunction · 0.85
LoadUserSettingsFunction · 0.85

Calls 3

OpenMethod · 0.45
CloseMethod · 0.45
wc_strMethod · 0.45

Tested by

no test coverage detected