Chameleon

Chameleon Commit Details

Date:2012-02-17 14:28:49 (9 years 2 months ago)
Author:ErmaC
Commit:1821
Parents: 1820
Message:- Add .png Icons to Default Chameleon Theme (Credits to Blackosx) - Correct "device name" for new stuff inside gui.c - Update Chameleon.xcodeproj
Changes:
A/branches/ErmaC/Modules/artwork/themes/default/Device_hfsraid_ml.png
A/branches/ErmaC/Modules/artwork/themes/default/Device_hfsplus_ml_o.png
A/branches/ErmaC/Modules/artwork/themes/default/Device_hfsplus_ml.png
A/branches/ErmaC/Trunk/artwork/themes/default/Device_hfsraid_ml_o.png
A/branches/ErmaC/Trunk/artwork/themes/default/Device_hfsraid_ml.png
A/branches/ErmaC/Trunk/artwork/themes/default/Device_hfsplus_ml_o.png
A/branches/ErmaC/Modules/artwork/themes/default/Device_hfsraid_ml_o.png
A/branches/ErmaC/Trunk/artwork/themes/default/Device_hfsplus_ml.png
M/branches/ErmaC/Trunk/i386/boot2/gui.c
M/branches/ErmaC/Modules/Chameleon.xcodeproj/project.pbxproj
M/branches/ErmaC/Modules/i386/boot0/boot0hfs.s
M/branches/ErmaC/Modules/i386/boot2/boot.c
M/branches/ErmaC/Modules/i386/boot2/gui.c
M/branches/ErmaC/Modules/i386/libsaio/bootstruct.c
M/branches/ErmaC/Trunk/Chameleon.xcodeproj/project.pbxproj

File differences

branches/ErmaC/Trunk/Chameleon.xcodeproj/project.pbxproj
13031303
13041304
13051305
1306
1307
1308
1309
13061310
13071311
13081312
......
33513355
33523356
33533357
3358
3359
33543360
33553361
33563362
......
33613367
33623368
33633369
3370
3371
33643372
33653373
33663374
B4189A2214BFBF5600ED5B0B /* Cconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Cconfig; sourceTree = "<group>"; };
B4189A2314BFBF7200ED5B0B /* Cconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Cconfig; sourceTree = "<group>"; };
B4189A2414BFBFD100ED5B0B /* Cconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Cconfig; sourceTree = "<group>"; };
B43E407614EE869700CD79F9 /* Device_hfsplus_ml_o.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Device_hfsplus_ml_o.png; sourceTree = "<group>"; };
B43E407714EE869800CD79F9 /* Device_hfsplus_ml.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Device_hfsplus_ml.png; sourceTree = "<group>"; };
B43E407814EE869A00CD79F9 /* Device_hfsraid_ml_o.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Device_hfsraid_ml_o.png; sourceTree = "<group>"; };
B43E407914EE869C00CD79F9 /* Device_hfsraid_ml.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Device_hfsraid_ml.png; sourceTree = "<group>"; };
B442B8C514BE6C7A00EEF9D4 /* ar */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; name = ar; path = ar.lproj/License.rtf; sourceTree = "<group>"; };
B442B8C614BE6C7A00EEF9D4 /* ar */ = {isa = PBXFileReference; lastKnownFileType = wrapper.rtfd; name = ar; path = ar.lproj/Conclusion.rtfd; sourceTree = "<group>"; };
B442B8C714BE6C7A00EEF9D4 /* ar */ = {isa = PBXFileReference; lastKnownFileType = text.html; name = ar; path = ar.lproj/Description.html; sourceTree = "<group>"; };
36AB75B014BD0866005B8045 /* device_hfsplus_leo.png */,
36AB75B114BD0866005B8045 /* device_hfsplus_lion_o.png */,
36AB75B214BD0866005B8045 /* device_hfsplus_lion.png */,
B43E407614EE869700CD79F9 /* Device_hfsplus_ml_o.png */,
B43E407714EE869800CD79F9 /* Device_hfsplus_ml.png */,
36AB75B314BD0866005B8045 /* device_hfsplus_o.png */,
36AB75B414BD0866005B8045 /* device_hfsplus_sl_o.png */,
36AB75B514BD0866005B8045 /* device_hfsplus_sl.png */,
36AB75BA14BD0866005B8045 /* device_hfsraid_leo.png */,
36AB75BB14BD0866005B8045 /* device_hfsraid_lion_o.png */,
36AB75BC14BD0866005B8045 /* device_hfsraid_lion.png */,
B43E407814EE869A00CD79F9 /* Device_hfsraid_ml_o.png */,
B43E407914EE869C00CD79F9 /* Device_hfsraid_ml.png */,
36AB75BD14BD0866005B8045 /* device_hfsraid_o.png */,
36AB75BE14BD0866005B8045 /* device_hfsraid_sl_o.png */,
36AB75BF14BD0866005B8045 /* device_hfsraid_sl.png */,
branches/ErmaC/Trunk/i386/boot2/gui.c
4343
4444
4545
46
47
46
47
4848
4949
5050
......
5555
5656
5757
58
59
58
59
6060
6161
6262
......
120120
121121
122122
123
124
123
124
125125
126126
127127
......
133133
134134
135135
136
137
136
137
138138
139139
140140
......
374374
375375
376376
377
378
377
378
379379
380380
381381
......
385385
386386
387387
388
389
390
391
392
393
394
395
396
397
388
389
390
391
392
393
394
395
396
397
398398
399399
400400
......
906906
907907
908908
909
909
910910
911911
912912
......
931931
932932
933933
934
934
935935
936936
937937
iDeviceGeneric_o,
iDeviceHFS,
iDeviceHFS_o,
iDeviceHFS_Mountain,
iDeviceHFS_Mountain_o,
iDeviceHFS_ML,
iDeviceHFS_ML_o,
iDeviceHFS_Lion,
iDeviceHFS_Lion_o,
iDeviceHFS_SL,
iDeviceHFS_Tiger_o,
iDeviceHFSRAID,
iDeviceHFSRAID_o,
iDeviceHFSRAID_Mountain,
iDeviceHFSRAID_Mountain_o,
iDeviceHFSRAID_ML,
iDeviceHFSRAID_ML_o,
iDeviceHFSRAID_Lion,
iDeviceHFSRAID_Lion_o,
iDeviceHFSRAID_SL,
{.name = "device_hfsplus_o", .image = NULL},
{.name = "device_hfsplus_lion", .image = NULL},
{.name = "device_hfsplus_lion_o", .image = NULL},
{.name = "device_hfsplus_mountain", .image = NULL},
{.name = "device_hfsplus_mountain_o", .image = NULL},
{.name = "device_hfsplus_ml", .image = NULL},
{.name = "device_hfsplus_ml_o", .image = NULL},
{.name = "device_hfsplus_sl", .image = NULL},
{.name = "device_hfsplus_sl_o", .image = NULL},
{.name = "device_hfsplus_leo", .image = NULL},
{.name = "device_hfsraid_o", .image = NULL},
{.name = "device_hfsraid_lion", .image = NULL},
{.name = "device_hfsraid_lion_o", .image = NULL},
{.name = "device_hfsraid_mountain", .image = NULL},
{.name = "device_hfsraid_mountain_o", .image = NULL},
{.name = "device_hfsraid_ml", .image = NULL},
{.name = "device_hfsraid_ml_o", .image = NULL},
{.name = "device_hfsraid_sl", .image = NULL},
{.name = "device_hfsraid_sl_o", .image = NULL},
{.name = "device_hfsraid_leo", .image = NULL},
LOADPNG(device_hfsplus_o, iDeviceHFS);
LOADPNG(device_hfsplus_lion, iDeviceHFS_Lion);
LOADPNG(device_hfsplus_lion_o, iDeviceHFS_Lion_o);
LOADPNG(device_hfsplus_mountain, iDeviceHFS_Mountain);
LOADPNG(device_hfsplus_mountain_o, iDeviceHFS_Mountain_o);
LOADPNG(device_hfsplus_ml, iDeviceHFS_ML);
LOADPNG(device_hfsplus_ml_o, iDeviceHFS_ML_o);
LOADPNG(device_hfsplus_sl, iDeviceHFS_SL);
LOADPNG(device_hfsplus_sl_o, iDeviceHFS_SL_o);
LOADPNG(device_hfsplus_leo, iDeviceHFS_Leo);
LOADPNG(device_hfsraid, iDeviceGeneric);
LOADPNG(device_hfsraid_o, iDeviceHFSRAID);
LOADPNG(device_hfsraid_lion, iDeviceHFSRAID_Lion);
LOADPNG(device_hfsraid_lion_o, iDeviceHFSRAID_Lion_o);
LOADPNG(device_hfsraid_mountain, iDeviceHFSRAID_Mountain);
LOADPNG(device_hfsraid_mountain_o, iDeviceHFSRAID_Mountain_o);
LOADPNG(device_hfsraid_sl, iDeviceHFSRAID_SL);
LOADPNG(device_hfsraid_sl_o, iDeviceHFSRAID_SL_o);
LOADPNG(device_hfsraid_leo, iDeviceHFSRAID_Leo);
LOADPNG(device_hfsraid_leo_o, iDeviceHFSRAID_Leo_o);
LOADPNG(device_hfsraid_tiger, iDeviceHFSRAID_Tiger);
LOADPNG(device_hfsraid_tiger_o, iDeviceHFSRAID_Tiger_o);
LOADPNG(device_hfsraid_lion, iDeviceHFSRAID_Lion);
LOADPNG(device_hfsraid_lion_o, iDeviceHFSRAID_Lion_o);
LOADPNG(device_hfsraid_ml, iDeviceHFSRAID_ML);
LOADPNG(device_hfsraid_ml_o, iDeviceHFSRAID_ML_o);
LOADPNG(device_hfsraid_sl, iDeviceHFSRAID_SL);
LOADPNG(device_hfsraid_sl_o, iDeviceHFSRAID_SL_o);
LOADPNG(device_hfsraid_leo, iDeviceHFSRAID_Leo);
LOADPNG(device_hfsraid_leo_o, iDeviceHFSRAID_Leo_o);
LOADPNG(device_hfsraid_tiger, iDeviceHFSRAID_Tiger);
LOADPNG(device_hfsraid_tiger_o, iDeviceHFSRAID_Tiger_o);
LOADPNG(device_ext3, iDeviceGeneric);
LOADPNG(device_ext3_o, iDeviceEXT3);
LOADPNG(device_freebsd, iDeviceGeneric); /* FreeBSD/OpenBSD detection,nawcom's code by valv, Icon credits to blackosx */
switch (device->OSVersion[3]) {
case '8':
devicetype = is_image_loaded(iDeviceHFSRAID_Mountain) ? iDeviceHFSRAID_Mountain : is_image_loaded(iDeviceHFSRAID) ? iDeviceHFSRAID : iDeviceGeneric;
devicetype = is_image_loaded(iDeviceHFSRAID_ML) ? iDeviceHFSRAID_ML : is_image_loaded(iDeviceHFSRAID) ? iDeviceHFSRAID : iDeviceGeneric;
break;
case '7':
devicetype = is_image_loaded(iDeviceHFSRAID_Lion) ? iDeviceHFSRAID_Lion : is_image_loaded(iDeviceHFSRAID) ? iDeviceHFSRAID : iDeviceGeneric;
switch (device->OSVersion[3]) {
case '8':
devicetype = is_image_loaded(iDeviceHFS_Mountain) ? iDeviceHFS_Mountain : is_image_loaded(iDeviceHFS) ? iDeviceHFS : iDeviceGeneric;
devicetype = is_image_loaded(iDeviceHFS_ML) ? iDeviceHFS_ML : is_image_loaded(iDeviceHFS) ? iDeviceHFS : iDeviceGeneric;
break;
case '7':
devicetype = is_image_loaded(iDeviceHFS_Lion) ? iDeviceHFS_Lion : is_image_loaded(iDeviceHFS) ? iDeviceHFS : iDeviceGeneric;
branches/ErmaC/Modules/Chameleon.xcodeproj/project.pbxproj
12991299
13001300
13011301
1302
1303
1304
1305
13021306
13031307
13041308
......
33733377
33743378
33753379
3380
3381
33763382
33773383
33783384
......
33833389
33843390
33853391
3392
3393
33863394
33873395
33883396
B4189A2214BFBF5600ED5B0B /* Cconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Cconfig; sourceTree = "<group>"; };
B4189A2314BFBF7200ED5B0B /* Cconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Cconfig; sourceTree = "<group>"; };
B4189A2414BFBFD100ED5B0B /* Cconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Cconfig; sourceTree = "<group>"; };
B43E407614EE869700CD79F9 /* Device_hfsplus_ml_o.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Device_hfsplus_ml_o.png; sourceTree = "<group>"; };
B43E407714EE869800CD79F9 /* Device_hfsplus_ml.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Device_hfsplus_ml.png; sourceTree = "<group>"; };
B43E407814EE869A00CD79F9 /* Device_hfsraid_ml_o.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Device_hfsraid_ml_o.png; sourceTree = "<group>"; };
B43E407914EE869C00CD79F9 /* Device_hfsraid_ml.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Device_hfsraid_ml.png; sourceTree = "<group>"; };
B4189A3414BFC26400ED5B0B /* ati.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = ati.c; path = ATiGraphicsEnabler/ati.c; sourceTree = "<group>"; };
B4189A3514BFC26400ED5B0B /* ati.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ati.h; path = ATiGraphicsEnabler/ati.h; sourceTree = "<group>"; };
B4189A3614BFC26400ED5B0B /* ATiGraphicsEnabler.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = ATiGraphicsEnabler.c; path = ATiGraphicsEnabler/ATiGraphicsEnabler.c; sourceTree = "<group>"; };
36AB75B014BD0866005B8045 /* device_hfsplus_leo.png */,
36AB75B114BD0866005B8045 /* device_hfsplus_lion_o.png */,
36AB75B214BD0866005B8045 /* device_hfsplus_lion.png */,
B43E407614EE869700CD79F9 /* Device_hfsplus_ml_o.png */,
B43E407714EE869800CD79F9 /* Device_hfsplus_ml.png */,
36AB75B314BD0866005B8045 /* device_hfsplus_o.png */,
36AB75B414BD0866005B8045 /* device_hfsplus_sl_o.png */,
36AB75B514BD0866005B8045 /* device_hfsplus_sl.png */,
36AB75BA14BD0866005B8045 /* device_hfsraid_leo.png */,
36AB75BB14BD0866005B8045 /* device_hfsraid_lion_o.png */,
36AB75BC14BD0866005B8045 /* device_hfsraid_lion.png */,
B43E407814EE869A00CD79F9 /* Device_hfsraid_ml_o.png */,
B43E407914EE869C00CD79F9 /* Device_hfsraid_ml.png */,
36AB75BD14BD0866005B8045 /* device_hfsraid_o.png */,
36AB75BE14BD0866005B8045 /* device_hfsraid_sl_o.png */,
36AB75BF14BD0866005B8045 /* device_hfsraid_sl.png */,
branches/ErmaC/Modules/i386/libsaio/bootstruct.c
110110
111111
112112
113
113
114114
115115
116116
reserveKernBootStruct(void)
{
if ((gMacOSVersion[0] == '1') && (gMacOSVersion[1] == '0')
&& (gMacOSVersion[2] == '.') && (gMacOSVersion[3] == '7'))
&& (gMacOSVersion[2] == '.') && ((gMacOSVersion[3] == '7') || (gMacOSVersion[3] == '8')))
{
void *oldAddr = bootArgs;
bootArgs = (boot_args *)AllocateKernelMemory(sizeof(boot_args));
branches/ErmaC/Modules/i386/boot0/boot0hfs.s
6060
6161
6262
63
64
65
66
67
6368
6469
6570
......
230235
231236
232237
238
239
240
241
233242
234243
235244
......
619628
620629
621630
622
631
623632
624633
625634
......
758767
759768
760769
761
770
762771
772
773
774
775
776
777
778
779
780
781
782
783
763784
764785
765786
766787
767788
789
790
791
792
768793
769794
770795
VERBOSEEQU CONFIG_BOOT0_VERBOSE
;
; Set to 1 to enable unstretch mode
;
UNSTRETCHEQU CONFIG_BOOT0_UNSTRETCH
;
; Various constants.
;
kBoot0SegmentEQU 0x0000
call print_hex
%endif
%if UNSTRETCH
call disable_scaler
%endif
;
; Since this code may not always reside in the MBR, always start by
; loading the MBR to kMBRBuffer and LBA1 to kGPTBuffer.
; DS:SI = pointer to Disk Address Packet
;
; Returns:
; AH = return status (sucess is 0)
; AH = return status (success is 0)
; carry = 0 success
; 1 error
;
ret
%endif ;DEBUG
%if UNSTRETCH
;--------------------------------------------------------------------------
; Disable On-Chip Scaling for nVidia Cards
;
disable_scaler:
mov ax,4F14h ;VESA VBE OEM function
mov bl,2 ;Subfunction 02 = Set Panel Expansion/Centering
mov bh,1 ;00 = Return Current Setting, 01 = Set Centering/Expansion
mov cx,0001h ;Exp. mode: 00 = Scaled, 01 = Centered 1:1, 02 = Left Corner 1:1
int 10h ;call VGA/VBE service
LogString(nv_scaler_str)
ret
%endif
;--------------------------------------------------------------------------
; NULL terminated strings.
;
log_title_strdb 10, 13, 'boot0: ', 0
boot_error_str db 'error', 0
%if UNSTRETCH
nv_scaler_strdb 'Unstretch', 0
%endif ;DEBUG
%if VERBOSE
gpt_strdb 'GPT', 0
test_strdb 'test', 0
branches/ErmaC/Modules/i386/boot2/boot.c
196196
197197
198198
199
199
200200
201201
202202
......
230230
231231
232232
233
234
233
234
235235
236
236
237237
238238
239239
......
330330
331331
332332
333
333
334334
335335
336336
......
605605
606606
607607
608
608
609609
610
610
611611
612612
613613
finalizeBootStruct();
// Jump to kernel's entry point. There's no going back now.
if (checkOSVersion("10.7")) {
if ((checkOSVersion("10.7")) || (checkOSVersion("10.8"))) {
// Notify modules that the kernel is about to be started
execute_hook("Kernel Start", (void*)kernelEntry, (void*)bootArgs, NULL, NULL);
if (cacheFile[0] != 0)
strlcpy(kernelCacheFile, cacheFile, sizeof(kernelCacheFile));
else {
// Lion prelink kernel cache file
if (checkOSVersion("10.7")) {
// Mountain Lion and Lion prelink kernel cache file
if ((checkOSVersion("10.7")) || (checkOSVersion("10.8"))) {
sprintf(kernelCacheFile, "%skernelcache", kDefaultCachePathSnow);
}
}
// Snow Leopard prelink kernel cache file
else if (checkOSVersion("10.6")) {
sprintf(kernelCacheFile, "kernelcache_%s", (archCpuType == CPU_TYPE_I386)
// Since the kernel cache file exists and is the most recent try to load it
verbose("Loading kernel cache %s\n", kernelCachePath);
if (checkOSVersion("10.7")) {
if ((checkOSVersion("10.7")) || (checkOSVersion("10.8"))) {
ret = LoadThinFatFile(kernelCachePath, binary);
} else {
ret = LoadFile(kernelCachePath);
verbose("Loading Darwin %s\n", gMacOSVersion);
// If boot from boot helper partitions and OS is Lion use prelink kernel.
// If boot from boot helper partitions and OS is Mountain Lion or Lion use prelink kernel.
// We need to find a solution to load extra mkext with a prelink kernel.
if (gBootVolume->flags & kBVFlagBooter && checkOSVersion("10.7"))
if (gBootVolume->flags & kBVFlagBooter && ((checkOSVersion("10.7")) || (checkOSVersion("10.8"))))
useKernelCache = true;
else
useKernelCache = false; // by default don't use prelink kernel cache
branches/ErmaC/Modules/i386/boot2/gui.c
4343
4444
4545
46
47
4648
4749
4850
......
5355
5456
5557
58
59
5660
5761
5862
......
116120
117121
118122
123
124
119125
120126
121127
......
127133
128134
129135
136
137
130138
131139
132140
......
330338
331339
332340
333
341
334342
335
343
336344
337345
338346
......
348356
349357
350358
351
359
352360
353
361
354362
355363
356364
......
366374
367375
368376
377
378
369379
370380
371381
......
377387
378388
379389
390
391
380392
381393
382394
......
893905
894906
895907
908
909
910
896911
897912
898913
......
915930
916931
917932
933
934
935
918936
919937
920938
iDeviceGeneric_o,
iDeviceHFS,
iDeviceHFS_o,
iDeviceHFS_ML,
iDeviceHFS_ML_o,
iDeviceHFS_Lion,
iDeviceHFS_Lion_o,
iDeviceHFS_SL,
iDeviceHFS_Tiger_o,
iDeviceHFSRAID,
iDeviceHFSRAID_o,
iDeviceHFSRAID_ML,
iDeviceHFSRAID_ML_o,
iDeviceHFSRAID_Lion,
iDeviceHFSRAID_Lion_o,
iDeviceHFSRAID_SL,
{.name = "device_hfsplus_o", .image = NULL},
{.name = "device_hfsplus_lion", .image = NULL},
{.name = "device_hfsplus_lion_o", .image = NULL},
{.name = "device_hfsplus_ml", .image = NULL},
{.name = "device_hfsplus_ml_o", .image = NULL},
{.name = "device_hfsplus_sl", .image = NULL},
{.name = "device_hfsplus_sl_o", .image = NULL},
{.name = "device_hfsplus_leo", .image = NULL},
{.name = "device_hfsraid_o", .image = NULL},
{.name = "device_hfsraid_lion", .image = NULL},
{.name = "device_hfsraid_lion_o", .image = NULL},
{.name = "device_hfsraid_ml", .image = NULL},
{.name = "device_hfsraid_ml_o", .image = NULL},
{.name = "device_hfsraid_sl", .image = NULL},
{.name = "device_hfsraid_sl_o", .image = NULL},
{.name = "device_hfsraid_leo", .image = NULL},
images[i].image->pixels = images[alt_image].image->pixels;
} else {
// Unable to load or to find the image, this image not vital anyway, reseting and returning success !!
free(images[i].image);
images[i].image = NULL;
}
free(images[i].image);
images[i].image = NULL;
return 1;
}
}
return 1;
}
LOADPNG(device_hfsplus_o, iDeviceHFS);
LOADPNG(device_hfsplus_lion, iDeviceHFS_Lion);
LOADPNG(device_hfsplus_lion_o, iDeviceHFS_Lion_o);
LOADPNG(device_hfsplus_ml, iDeviceHFS_ML);
LOADPNG(device_hfsplus_ml_o, iDeviceHFS_ML_o);
LOADPNG(device_hfsplus_sl, iDeviceHFS_SL);
LOADPNG(device_hfsplus_sl_o, iDeviceHFS_SL_o);
LOADPNG(device_hfsplus_leo, iDeviceHFS_Leo);
LOADPNG(device_hfsraid_o, iDeviceHFSRAID);
LOADPNG(device_hfsraid_lion, iDeviceHFSRAID_Lion);
LOADPNG(device_hfsraid_lion_o, iDeviceHFSRAID_Lion_o);
LOADPNG(device_hfsraid_ml, iDeviceHFSRAID_ML);
LOADPNG(device_hfsraid_ml_o, iDeviceHFSRAID_ML_o);
LOADPNG(device_hfsraid_sl, iDeviceHFSRAID_SL);
LOADPNG(device_hfsraid_sl_o, iDeviceHFSRAID_SL_o);
LOADPNG(device_hfsraid_leo, iDeviceHFSRAID_Leo);
if (device->flags & kBVFlagBooter) {
switch (device->OSVersion[3]) {
case '8':
devicetype = is_image_loaded(iDeviceHFSRAID_ML) ? iDeviceHFSRAID_ML : is_image_loaded(iDeviceHFSRAID) ? iDeviceHFSRAID : iDeviceGeneric;
break;
case '7':
devicetype = is_image_loaded(iDeviceHFSRAID_Lion) ? iDeviceHFSRAID_Lion : is_image_loaded(iDeviceHFSRAID) ? iDeviceHFSRAID : iDeviceGeneric;
break;
{
switch (device->OSVersion[3]) {
case '8':
devicetype = is_image_loaded(iDeviceHFS_ML) ? iDeviceHFS_ML : is_image_loaded(iDeviceHFS) ? iDeviceHFS : iDeviceGeneric;
break;
case '7':
devicetype = is_image_loaded(iDeviceHFS_Lion) ? iDeviceHFS_Lion : is_image_loaded(iDeviceHFS) ? iDeviceHFS : iDeviceGeneric;
break;

Archive Download the corresponding diff file

Revision: 1821