prepare for 10.16

Signed-off-by: SergeySlice <sergey.slice@gmail.com>
This commit is contained in:
SergeySlice 2020-06-22 21:47:45 +03:00
parent 109d1f581c
commit a0948b2515
3 changed files with 6 additions and 2 deletions

View File

@ -6584,6 +6584,9 @@ GetOSIconName (
XStringW OSIconName;
if (OSVersion == NULL) {
OSIconName = L"mac"_XSW;
} else if (AsciiStrStr (OSVersion, "10.16") != 0) {
// Big Sur
OSIconName = L"bigsur,mac"_XSW;
} else if (AsciiStrStr (OSVersion, "10.15") != 0) {
// Catalina
OSIconName = L"cata,mac"_XSW;

View File

@ -1126,7 +1126,7 @@ VOID LOADER_ENTRY::applyKernPatch(const UINT8 *find, UINTN size, const UINT8 *re
//
static inline BOOLEAN IsXCPMOSVersionCompat(UINT64 os_version)
{
return (os_version >= AsciiOSVersionToUint64("10.8.5")) && (os_version < AsciiOSVersionToUint64("10.16"));
return (os_version >= AsciiOSVersionToUint64("10.8.5")) && (os_version < AsciiOSVersionToUint64("10.17"));
}
//

View File

@ -708,7 +708,8 @@ VOID LOADER_ENTRY::StartLoader()
strncmp(InstallerVersion, "10.12", 5) &&
strncmp(InstallerVersion, "10.13", 5) &&
strncmp(InstallerVersion, "10.14", 5) &&
strncmp(InstallerVersion, "10.15", 5)) {
strncmp(InstallerVersion, "10.15", 5) &&
strncmp(InstallerVersion, "10.16", 5)) {
InstallerVersion = NULL; // flag known version was not found
}
if (InstallerVersion != NULL) { // known version was found in image