add 13 folder

Signed-off-by: SergeySlice <sergey.slice@gmail.com>
This commit is contained in:
SergeySlice 2022-07-11 23:07:37 +03:00
parent 64c888a615
commit a5e5d3b1cc

View File

@ -396,7 +396,8 @@ SetVariablesForOSX(LOADER_ENTRY *Entry)
gSettings.RtVariables.HWTarget = GetHWTarget(GlobalConfig.CurrentModel);
}
if (gSettings.RtVariables.HWTarget.notEmpty() && (Entry->LoaderType != OSTYPE_OSX_INSTALLER) && (Entry->macOSVersion < MacOsVersion("13"_XS8) ) ) {
if (gSettings.RtVariables.HWTarget.notEmpty() && (Entry->LoaderType != OSTYPE_OSX_INSTALLER) &&
(Entry->macOSVersion < MacOsVersion("13"_XS8) /*|| gSettings.RtVariables.HWTarget.c_str()[0] != '#'*/) ) {
SetNvramXString8(L"BridgeOSHardwareModel", gEfiAppleNvramGuid, Attributes, gSettings.RtVariables.HWTarget);
} else {
DeleteNvramVariable(L"BridgeOSHardwareModel", gEfiAppleNvramGuid);