Skip to content

Commit

Permalink
some research
Browse files Browse the repository at this point in the history
Signed-off-by: SergeySlice <[email protected]>
  • Loading branch information
SergeySlice committed Jan 5, 2023
1 parent 629515f commit 6e94e88
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CloverPackage/package/po/clover.pot
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Clover r5149\n"
"POT-Creation-Date: 2022-10-17 22:07+0300\n"
"Project-Id-Version: Clover r5150\n"
"POT-Creation-Date: 2022-12-17 13:55+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down
7 changes: 6 additions & 1 deletion rEFIt_UEFI/Platform/DataHubCpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,10 @@ SetVariablesForOSX(LOADER_ENTRY *Entry)
}

if (gSettings.RtVariables.HWTarget.isEmpty()) {
// if (Entry->macOSVersion >= MacOsVersion("13"_XS8)) {
//test legacy model
// GlobalConfig.CurrentModel = iMac183;
// }
gSettings.RtVariables.HWTarget = GetHWTarget(GlobalConfig.CurrentModel);
}

Expand All @@ -412,7 +416,7 @@ SetVariablesForOSX(LOADER_ENTRY *Entry)


if (gSettings.RtVariables.HWTarget.notEmpty() && (Entry->LoaderType != OSTYPE_OSX_INSTALLER) &&
(Entry->macOSVersion < MacOsVersion("13"_XS8)) ) {
(Entry->macOSVersion < MacOsVersion("13"_XS8)) ) { //test legacy model
SetNvramXString8(L"BridgeOSHardwareModel", gEfiAppleNvramGuid, Attributes, gSettings.RtVariables.HWTarget);
// SetNvramVariable(L"BridgeOSBootSessionUUID", gEfiAppleBootGuid, Attributes, sizeof(uuid), &uuid);
} else {
Expand Down Expand Up @@ -482,6 +486,7 @@ SetVariablesForOSX(LOADER_ENTRY *Entry)

//Now we want manually install some SecureBoot Variables while boot.efi do this automatically.
//set same values
//test legacy model
// UINT64 ecid = 0;
// CopyMem(&ecid, &uuid, 8);
// SetNvramVariable(L"ApECID", gAppleSecureBootVariableGuid, Attributes, 8, &ecid);
Expand Down

0 comments on commit 6e94e88

Please sign in to comment.