Clarify 'Log is empty', add a section in README

This commit is contained in:
Lauri Kenttä
2024-05-04 11:14:51 +03:00
parent 8e6466990a
commit 8a97382a2e
2 changed files with 28 additions and 7 deletions

View File

@@ -519,7 +519,7 @@ public class Efi {
try {
var log = GetVariable("HackBGRTLog", EFI_HACKBGRT_GUID);
if (log.Data == null) {
return "(null)";
return "Log is empty.";
}
return new string(BytesToUInt16s(log.Data).Select(i => (char)i).ToArray());
} catch (Exception e) {