Skip to content

Commit

Permalink
Amend/Improve 'HelpScan/HelpIcon' Features
Browse files Browse the repository at this point in the history
  • Loading branch information
dakanji committed Sep 18, 2024
1 parent bf87d1d commit 2ec8683
Show file tree
Hide file tree
Showing 9 changed files with 198 additions and 226 deletions.
21 changes: 3 additions & 18 deletions BootMaster/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ VOID SyncLinuxPrefixes (VOID) {
LINUX_PREFIXES
);
}
else if (GlobalConfig.HelpScan) {
else {
MergeUniqueItems (
&GlobalConfig.LinuxPrefixes,
LINUX_PREFIXES, L','
Expand All @@ -163,7 +163,7 @@ VOID SyncAlsoScan (VOID) {
ALSO_SCAN_DIRS
);
}
else if (GlobalConfig.HelpScan) {
else {
MergeUniqueItems (
&GlobalConfig.AlsoScan,
ALSO_SCAN_DIRS, L','
Expand Down Expand Up @@ -216,16 +216,13 @@ VOID SyncDontScanFiles (VOID) {
DONT_SCAN_FILES
);
}
else if (GlobalConfig.HelpScan) {
else {
MergeUniqueItems (
&GlobalConfig.DontScanFiles,
DONT_SCAN_FILES, L','
);
}

if (!GlobalConfig.HelpScan) {
return;
}

// Handle MEMTEST_NAMES in 'ScanLoaderDir' and not here
// to accomodate fallback loaders in the list.
Expand Down Expand Up @@ -3463,18 +3460,6 @@ VOID ReadConfig (
DeclineSetting = HandleBoolean (TokenList, TokenCount);
GlobalConfig.HelpText = (DeclineSetting) ? FALSE : TRUE;
}
else if (MyStriCmp (TokenList[0], L"decline_help_scan")) {
#if REFIT_DEBUG > 0
if (!OuterLoop) {
UpdatedToken = LogUpdate (
TokenList[0], NotRunBefore, TRUE
);
}
#endif

DeclineSetting = HandleBoolean (TokenList, TokenCount);
GlobalConfig.HelpScan = (DeclineSetting) ? FALSE : TRUE;
}
else if (MyStriCmp (TokenList[0], L"decline_help_size")) {
#if REFIT_DEBUG > 0
if (!OuterLoop) {
Expand Down
1 change: 0 additions & 1 deletion BootMaster/global.h
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,6 @@ typedef struct {
BOOLEAN HiddenTags;
BOOLEAN LegacySync;
BOOLEAN HelpIcon;
BOOLEAN HelpScan;
BOOLEAN HelpSize;
BOOLEAN HelpText;
BOOLEAN SetAppleFB;
Expand Down
Loading

0 comments on commit 2ec8683

Please sign in to comment.