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

Function GetOtherKextsDir

rEFIt_UEFI/Platform/Settings.cpp:7877–7890  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7875}
7876
7877XStringW GetOtherKextsDir (BOOLEAN On)
7878{
7879 XStringW SrcDir;
7880
7881 SrcDir = SWPrintf("%ls\\kexts\\%s", OEMPath.wc_str(), On?"Other":"Off");
7882 if (!FileExists (SelfVolume->RootDir, SrcDir)) {
7883 SrcDir = SWPrintf("\\EFI\\CLOVER\\kexts\\%s", On?"Other":"Off");
7884 if (!FileExists (SelfVolume->RootDir, SrcDir)) {
7885 SrcDir.setEmpty();
7886 }
7887 }
7888
7889 return SrcDir;
7890}
7891
7892//dmazar
7893// caller is responsible for FreePool the result

Callers 3

SubMenuKextInjectMgmtMethod · 0.85
LoadKextsMethod · 0.85
SetFSInjectionMethod · 0.85

Calls 4

SWPrintfFunction · 0.85
FileExistsFunction · 0.85
wc_strMethod · 0.45
setEmptyMethod · 0.45

Tested by

no test coverage detected