ocvalidate: Always print compatibility info

This commit is contained in:
PMheart 2022-04-18 23:57:45 +02:00
parent aa9293f721
commit 8d2a26f2e6

View File

@ -78,11 +78,12 @@ int ENTRY_POINT(int argc, const char *argv[]) {
PcdGet32 (PcdFixedDebugPrintErrorLevel) |= DEBUG_INFO;
PcdGet32 (PcdDebugPrintErrorLevel) |= DEBUG_INFO;
DEBUG ((DEBUG_ERROR, "\nNOTE: This version of ocvalidate is only compatible with OpenCore version %a!\n\n", OPEN_CORE_VERSION));
//
// Print usage.
//
if (argc != 2 || (argc > 1 && AsciiStrCmp (argv[1], "--version") == 0)) {
DEBUG ((DEBUG_ERROR, "\nNOTE: This version of ocvalidate is only compatible with OpenCore version %a!\n\n", OPEN_CORE_VERSION));
DEBUG ((DEBUG_ERROR, "Usage: %a <path/to/config.plist>\n\n", argv[0]));
return -1;
}