add BlockSkywalk into GUI menu

Signed-off-by: Slice <sergey.slice@gmail.com>
This commit is contained in:
Slice 2023-11-02 21:34:45 +03:00
parent 3db4e57438
commit 883e27b0a2
2 changed files with 4 additions and 3 deletions

@ -1 +1 @@
Subproject commit d4d468844b9b95f1144cd5b95d12936d190c8ba5
Subproject commit 242b260f6c5cb1f84e397160d1b387f3bac47e03

View File

@ -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;
@ -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) {
@ -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);