mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-27 12:15:19 +01:00
prepare for 10.16
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
This commit is contained in:
parent
109d1f581c
commit
a0948b2515
@ -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;
|
||||
|
@ -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"));
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user