Skip to content

Commit

Permalink
add BlockSkywalk into GUI menu
Browse files Browse the repository at this point in the history
Signed-off-by: Slice <sergey.slice@gmail.com>
  • Loading branch information
SergeySlice committed Nov 2, 2023
1 parent 3db4e57 commit 883e27b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion OpenCorePkg
5 changes: 3 additions & 2 deletions rEFIt_UEFI/refit/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ void FillInputs(XBool New)
InputItems[InputItemsCount].ItemType = BoolValue; //114
InputItems[InputItemsCount++].BValue = gSettings.Graphics.RadeonDeInit;
InputItems[InputItemsCount].ItemType = BoolValue; //115
InputItems[InputItemsCount++].BValue = gSettings.SystemParameters.NoCaches;
InputItems[InputItemsCount++].BValue = gSettings.KernelAndKextPatches.BlockSkywalk;
InputItems[InputItemsCount].ItemType = RadioSwitch; //116 - DSDT chooser
InputItems[InputItemsCount++].IValue = 116;

Expand Down Expand Up @@ -984,7 +984,7 @@ void ApplyInputs(void)
}
i++; //115
if (InputItems[i].Valid) {
gSettings.SystemParameters.NoCaches = InputItems[i].BValue != 0;
gSettings.KernelAndKextPatches.BlockSkywalk = InputItems[i].BValue != 0;
}
i++; //116
if (InputItems[i].Valid) {
Expand Down Expand Up @@ -1958,6 +1958,7 @@ REFIT_ABSTRACT_MENU_ENTRY* SubMenuBinaries()
SubScreen->AddMenuItemInput(47, "AppleRTC Patch", false);
// SubScreen->AddMenuItemInput(45, "No 8 Apples Patch", false);
SubScreen->AddMenuItemInput(61, "Dell SMBIOS Patch", false);
SubScreen->AddMenuItemInput(115, "Block SkywalkFamily", false);
// SubScreen->AddMenuItemInput(115, "No Caches", false);
// SubScreen->AddMenuItemInput(44, "Kext patching allowed", false);
SubScreen->AddMenuEntry(SubMenuKextPatches(), true);
Expand Down

0 comments on commit 883e27b

Please sign in to comment.