@Panayotis Katsaloulis Both patches work, but the second version of the fix is much simpler and required less editing of the code: https://sourceforge.net/p/refind/code/merge-requests/55/
Can confirm that refit_call3_wrapper(gBS->SetMem, ...) fixes the duplicate tools bug. I've closed my original merge request and opened a simpler one.
Wrap SetMem for GNU-EFI and use for showtools config
Wrap SetMem when built with GNU-EFI to fix the "duplicate tools" bug
Iteratively zero out GlobalConfig.ShowTools after processing showtools tokens
I can confirm that refit_call3_wrapper(gBS->SetMem, ...) fixes the issue. I will close this merge request and open another with a simpler fix.
Wrap SetMem for GNU-EFI and use for show_tools config
Wrap SetMem for GNU-EFI and use for show_tools config