Chameleon

Chameleon Commit Details

Date:2015-09-11 03:24:40 (8 years 7 months ago)
Author:ErmaC
Commit:2759
Parents: 2758
Message:Improving Operating System Identification.
Changes:
M/branches/ErmaC/Enoch/i386/boot2/options.c
M/branches/ErmaC/Enoch/i386/libsaio/saio_types.h
M/branches/ErmaC/Enoch/i386/libsaio/disk.c

File differences

branches/ErmaC/Enoch/i386/libsaio/disk.c
18001800
18011801
18021802
1803
18031804
18041805
1806
1807
1808
1809
18051810
18061811
18071812
const char *val;
int len;
// ProductVersion
if (getValueForKey(kProductVersion, &val, &len, &systemVersion))
{
// Copy the complete value into OSFullVer
strncpy( bvr->OSFullVer, val, len );
bvr->OSFullVer[len] = '\0'; /* null character manually added */
// getValueForKey uses const char for val
// so copy it and trim
*str = '\0';
branches/ErmaC/Enoch/i386/libsaio/saio_types.h
211211
212212
213213
214
214215
215216
216217
boolfiltered;/* newFilteredBVChain() will set to TRUE */
boolvisible;/* will shown in the device list */
charOSVersion[OSVERSTRLEN]; /* Null terminated string from '/System/Library/CoreServices/SystemVersion.plist/ProductVersion' e.g. "10.10.10" - hope will not reach e.g. 111.222.333 soon:) If so, OSVERSTRLEN 9 change to 12 */
charOSFullVer[OSVERSTRLEN]; /* Null terminated string from '/System/Library/CoreServices/SystemVersion.plist/ProductVersion' */
boolOSisServer;/* 1 = OS X server , 0 = OS X client */
boolOSisInstaller;/* 1 = OS X Install partition / recovery partition , 0 = OS X Install */
branches/ErmaC/Enoch/i386/boot2/options.c
13141314
13151315
13161316
1317
1317
13181318
13191319
13201320
}
// Save a version of mac os we're booting.
MacOSVerCurrent = MacOSVer2Int(gBootVolume->OSVersion);
MacOSVerCurrent = MacOSVer2Int(gBootVolume->OSFullVer);
// so copy it and trim
gMacOSVersion[0] = 0;
if ( MacOSVerCurrent >= MacOSVer2Int("10.10") )

Archive Download the corresponding diff file

Revision: 2759