Chameleon

Chameleon Commit Details

Date:2016-06-18 12:31:09 (7 years 9 months ago)
Author:ErmaC
Commit:2831
Parents: 2830
Message:Add Sierra GUI icons detection. (gui.c)
Changes:
M/branches/ErmaC/Enoch/i386/boot2/gui.c
M/branches/ErmaC/Enoch/i386/boot2/boot.h

File differences

branches/ErmaC/Enoch/i386/boot2/boot.h
3030
3131
3232
33
3334
3435
3536
#include "libsaio.h"
// OS X Versions
#define SIERRA checkOSVersion("10.12") // Sierra
#define ELCAPITAN checkOSVersion("10.11") // El Capitan
#define YOSEMITE checkOSVersion("10.10") // Yosemite
#define MAVERICKS checkOSVersion("10.9") // Mavericks
branches/ErmaC/Enoch/i386/boot2/gui.c
5454
5555
5656
57
57
58
5859
5960
6061
......
7475
7576
7677
78
79
7780
7881
7982
......
9699
97100
98101
102
103
99104
100105
101106
......
160165
161166
162167
163
168
169
164170
165171
166172
......
180186
181187
182188
189
190
183191
184192
185193
......
202210
203211
204212
213
214
205215
206216
207217
......
419429
420430
421431
432
433
422434
423435
424436
......
438450
439451
440452
453
454
441455
442456
443457
......
460474
461475
462476
477
478
463479
464480
465481
......
11211137
11221138
11231139
1140
1141
1142
1143
11241144
11251145
11261146
iDeviceGeneric_o,
iDeviceHFS,
iDeviceHFS_o,
iDeviceHFS_sie,
iDeviceHFS_sie_o,
iDeviceHFS_cap,
iDeviceHFS_cap_o,
iDeviceHFS_yos,
iDeviceHFSRAID,
iDeviceHFSRAID_o,
iDeviceHFSRAID_sie,
iDeviceHFSRAID_sie_o,
iDeviceHFSRAID_cap,
iDeviceHFSRAID_cap_o,
iDeviceHFSRAID_yos,
iDeviceHFSFUSION,
iDeviceHFSFUSION_o,
iDeviceHFSFUSION_sie,
iDeviceHFSFUSION_sie_o,
iDeviceHFSFUSION_cap,
iDeviceHFSFUSION_cap_o,
iDeviceHFSFUSION_yos,
{.name = "device_generic_o", .image = NULL},
{.name = "device_hfsplus", .image = NULL},
{.name = "device_hfsplus_o", .image = NULL},
{.name = "device_hfsplus_sie", .image = NULL},
{.name = "device_hfsplus_sie_o", .image = NULL},
{.name = "device_hfsplus_cap", .image = NULL},
{.name = "device_hfsplus_cap_o", .image = NULL},
{.name = "device_hfsplus_yos", .image = NULL},
{.name = "device_hfsraid", .image = NULL},
{.name = "device_hfsraid_o", .image = NULL},
{.name = "device_hfsraid_sie", .image = NULL},
{.name = "device_hfsraid_sie_o", .image = NULL},
{.name = "device_hfsraid_cap", .image = NULL},
{.name = "device_hfsraid_cap_o", .image = NULL},
{.name = "device_hfsraid_yos", .image = NULL},
{.name = "device_hfsfusion", .image = NULL},
{.name = "device_hfsfusion_o", .image = NULL},
{.name = "device_hfsfusion_sie", .image = NULL},
{.name = "device_hfsfusion_sie_o", .image = NULL},
{.name = "device_hfsfusion_cap", .image = NULL},
{.name = "device_hfsfusion_cap_o", .image = NULL},
{.name = "device_hfsfusion_yos", .image = NULL},
LOADPNG(device_hfsplus, iDeviceGeneric);
LOADPNG(device_hfsplus_o, iDeviceHFS);
LOADPNG(device_hfsplus_sie, iDeviceHFS);
LOADPNG(device_hfsplus_sie_o, iDeviceHFS_sie);
LOADPNG(device_hfsplus_cap, iDeviceHFS);
LOADPNG(device_hfsplus_cap_o, iDeviceHFS_cap);
LOADPNG(device_hfsplus_yos, iDeviceHFS);
LOADPNG(device_hfsraid, iDeviceHFS);
LOADPNG(device_hfsraid_o, iDeviceHFSRAID);
LOADPNG(device_hfsraid_sie, iDeviceHFSRAID);
LOADPNG(device_hfsraid_sie_o, iDeviceHFSRAID_sie);
LOADPNG(device_hfsraid_cap, iDeviceHFSRAID);
LOADPNG(device_hfsraid_cap_o, iDeviceHFSRAID_cap);
LOADPNG(device_hfsraid_yos, iDeviceHFSRAID);
LOADPNG(device_hfsfusion, iDeviceHFS);
LOADPNG(device_hfsfusion_o, iDeviceHFSFUSION);
LOADPNG(device_hfsfusion_sie, iDeviceHFSFUSION);
LOADPNG(device_hfsfusion_sie_o, iDeviceHFSFUSION_sie);
LOADPNG(device_hfsfusion_cap, iDeviceHFSFUSION);
LOADPNG(device_hfsfusion_cap_o, iDeviceHFSFUSION_cap);
LOADPNG(device_hfsfusion_yos, iDeviceHFSFUSION);
devicetype = (device->flags & kBVFlagBooter ? iDeviceHFSRAID_cap : iDeviceHFS_cap); // El Capitan
break;
}
if (device->OSVersion[4] == '2') { // 10.12
devicetype = (device->flags & kBVFlagBooter ? iDeviceHFSRAID_sie : iDeviceHFS_sie); // Sierra
break;
}
default:
devicetype = (device->flags & kBVFlagBooter ? iDeviceHFSRAID : iDeviceHFS);
break;

Archive Download the corresponding diff file

Revision: 2831