Commit Graph

1112 Commits

Author SHA1 Message Date
SergeySlice
6dd178030b more informative print
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-08-30 20:25:16 +03:00
Sergey Isakov
493aa8f946 some dangerous misprints
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-08-30 17:21:54 +03:00
Sergey Isakov
b58f4bbbd3 allow empty data in plist
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-08-30 14:12:46 +03:00
Sergey Isakov
3493015cf2 fix DSDT patching
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-08-30 11:02:55 +03:00
jief666
e9f0f8ccd8 DSDT Patches refactor as an array of object.
Entry->VolName renamed Entry->DisplayedVolName because VolName already
exits in the hierarchie.
2020-08-27 21:47:56 +03:00
jief666
a721bb0a29 ROM setting can now be string or data, like it was before. 2020-08-27 16:02:25 +03:00
jief666
5779130ea5 MemLogfVA now use only printf_lite which has better handling of
timestamp at the beginning of lines.
2020-08-26 21:49:49 +03:00
jief666
19ce4d6edf MemLogLib didn't compile.
update Clover.dsc and refit.inf
2020-08-25 19:38:50 +03:00
jief666
c7cc003809 Xcode project.
printf_lite. Add test guard.
2020-08-25 19:08:05 +03:00
jief666
9cb4016bc5 Final refactoring of plist : now each tag is a class.
Rename strerror to efiStrError because of conflict when run cpp_tests on
Mac.
Switch base64_decode_block to long to avoid warning and cast.
Correct GetTableType4(). Size was used without being initialized.
2020-08-25 18:35:19 +03:00
jief666
d8c912e420 Fix debug message "patch disabled at config" 2020-08-23 14:54:35 +03:00
jief666
b6d578fe06 int value are 4 bytes like it was before in
gSettings.ArbProperties->Child
2020-08-23 14:47:58 +03:00
jief666
3684ef21a1 wrong return value in TagStruct::getTypeAsXString8() 2020-08-23 14:19:49 +03:00
jief666
85716960f9 Further refactor of plist. 2020-08-22 16:39:24 +03:00
jief666
2607bd4fbb Wrong cast in GetBootFromOption(). 2020-08-19 22:29:26 +03:00
jief666
8b6f19f2c6 Bug in GetDataSetting.
Bug near "GetProperty(DictPointer, "KextsToPatch")"
2020-08-19 16:56:19 +03:00
jief666
95d477c9a3 Refactor tagNext in tagSruct as a XObjArray<TagStruct> 2020-08-19 15:50:26 +03:00
jief666
3eece0918c Prevent panic in XTheme::ClearScreen() 2020-08-19 10:52:33 +03:00
jief666
2ef2b9df0d Allow empty dict 2020-08-19 10:52:07 +03:00
jief666
5b1eea4df0 PutNvramPlistToRtVars buf after plist refactoring 2020-08-18 22:30:14 +03:00
jief666
8dcf25dc6d Hardened plist. 2020-08-18 19:45:44 +03:00
jief666
2961827dce Correct some refactoring bugs. 2020-08-17 22:40:52 +03:00
Sergey Isakov
29d559aec8 copypool should copy zero ending byte
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-08-17 22:00:26 +03:00
jief666
d6192ab7ab Correct unicode_conversion (but unused in Clover). 2020-08-16 18:02:01 +03:00
jief666
a9bfb87ec2 CmpDev in FIXAirport() could still crash is
AirportBridgeDeviceName.length() != 4.
2020-08-16 16:54:14 +03:00
jief666
d4b3fb9b7a Bug I introduced in StrHToBuf.
Remove PRINTF_EMIT_CR=1.
ReleaseDate wrongly had a \n at the end.
Bug in utf8_stringnn_from_utf16_string.
XString replaceAll(XString,XString) function.
2020-08-16 16:21:12 +03:00
jief666
de45197556 Correct trim() in XString. 2020-08-16 12:33:41 +03:00
jief666
11817925ae Add test in CmpDev.
Do not call CmpDev if gSettings.AirportBridgeDeviceName is empty()
2020-08-16 11:41:44 +03:00
jief666
351918515f Restore CmpAdr. length() test in CmpDev. 2020-08-16 10:54:52 +03:00
jief666
3a742b5dbc Add some XString length test. 2020-08-16 09:01:08 +03:00
jief666
f6903b7579 Refactor the hidden flag. All menu entries are now created, allowing to
toogle hidden flag on and off after creation.
2020-08-15 23:39:25 +03:00
jief666
bc04c86a93 Refactoring some CHAR8* and CHAR16* to XString. 2020-08-15 16:47:56 +03:00
jief666
220b450d60 remove EfiStrDuplicate not used anymore.
Comment out MainConfigName from SETTINGS_DATA. Not used.
2020-08-13 15:57:05 +03:00
jief666
8947e66382 SETTINGS serialize method. 2020-08-13 15:07:40 +03:00
jief666
052732eba0 Refactor GetStrArraySeparatedByChar, replaced by Split 2020-08-13 11:21:45 +03:00
jief666
59d8cbad7f Refactoring KEXT_PATCH.
Change numerous CHAR8* CHAR16* to XString.
2020-08-12 18:15:47 +03:00
jief666
ee80193158 Fix CopyKernelAndKextPatches. 2020-08-11 17:05:36 +03:00
jief666
29718aaa0b Fix -W effc++ warnings.
SETTINGS_DATA is a class.
XIcon is separate class.
KernelAndKextPatches in LOADER_ENTRY is not a pointer anymore.
2020-08-11 15:43:53 +03:00
jief666
7765a988fe XStringArray self assignament test.
Rename SPrintf S8Printf.
Rename NullXString NullXString8.
Rename XStringArray XString8Array.
2020-08-11 09:00:19 +03:00
jief666
1c4bb3f823 Some CHAR16* refactored to XStringW.
Add insertAtPos, deleteCharsAtPos.
Bug : moved trim, lowerAscii, upperAscii in XStringAbstract.
2020-08-10 14:06:06 +03:00
jief666
4555bb9e9f Remove the last PoolPrints. 2020-08-09 18:55:30 +03:00
jief666
2a62a98abc Do not set DISK_KIND_NODISK if it's an APFS volume. 2020-08-08 09:26:31 +03:00
jief666
8c8a67cd0c Remove hard coded Preboot and Recovery partition name. 2020-08-07 16:17:30 +03:00
jief666
feba2f1399 Rework APFS Preboot and Recovery volumes 2020-08-07 11:23:46 +03:00
SergeySlice
76c0e3fe55 text formatting
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-08-06 21:53:01 +03:00
SergeySlice
0724be965a kext patching works in bigsur
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-07-27 16:09:30 +03:00
SergeySlice
b291971c46 names table shifted
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-07-27 11:45:17 +03:00
Sergey Isakov
15b65bd95b different addressing in the case of kc
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-07-26 16:44:38 +03:00
SergeySlice
32eba04396 more debugging
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-07-25 09:36:00 +03:00
SergeySlice
fab169defe account kext address can be decimal
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-07-24 21:59:51 +03:00
SergeySlice
c87aabd9fe kernel addresses are shifted
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-07-23 23:42:29 +03:00
SergeySlice
0143e228ee right way to patch kexts
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-07-23 22:14:20 +03:00
SergeySlice
f7c13f0b84 repair kext patching
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-07-22 23:23:38 +03:00
SergeySlice
69e0e0327c debug kext patching
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-07-21 12:17:02 +03:00
SergeySlice
dddceaae36 exclude double headers
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-07-21 09:33:43 +03:00
SergeySlice
33816ae90a separate prelinked and symtab
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-07-20 19:05:18 +03:00
SergeySlice
7188cde799 repaired symbolic patching for bigsur
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-07-20 11:52:36 +03:00
Sergey Isakov
b544e86e4b extend memory range to find boot structure
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-07-19 16:41:52 +03:00
Sergey Isakov
cf5b919627 force init patcher
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-07-19 11:50:00 +03:00
Sergey Isakov
762eac695c fix find kernel container
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-07-18 21:06:10 +03:00
Sergey Isakov
5e911e4b1d added bigsur to Clovy theme
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-07-18 15:27:17 +03:00
SergeySlice
bfe7db9208 shift symbolic table
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-07-17 23:45:01 +03:00
SergeySlice
df946b75f4 fix mistakes
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-07-17 14:40:16 +03:00
SergeySlice
16ef973a71 more definitions for macho
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-07-17 14:36:51 +03:00
SergeySlice
d320eb9693 made kext injection in bigsur with the method by kuckkuck
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-07-17 06:28:17 +03:00
SergeySlice
cd23181296 move OcQuirks.plist into config.plist and into GUI menu
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-07-15 20:29:27 +03:00
SergeySlice
50a98dc4fb exclude dump SIP
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-07-14 11:20:54 +03:00
SergeySlice
38106e53a7 add ability to dump smc
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-07-14 10:51:12 +03:00
SergeySlice
6dbdf12257 extend OS version numeration
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-07-13 19:30:43 +03:00
SergeySlice
7e728f542e take version string 11.0 if present
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-07-13 10:12:18 +03:00
SergeySlice
bb59d21a01 take into account that BigSur can be 10.16 or 11.0
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-07-13 09:59:31 +03:00
SergeySlice
9efd195bbb one more quirk for dsdt by Exception
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-07-12 22:10:21 +03:00
Sergey Isakov
620401dca6 preliminary include OcQuirks into the project with huge amount of unnecessary dependencies
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-07-09 22:06:48 +03:00
SergeySlice
b0444eac74 Merge branch 'master' of https://github.com/CloverHackyColor/CloverBootloader 2020-07-07 09:22:43 +03:00
SergeySlice
56ad0e511a update MachoLib
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-07-07 09:19:59 +03:00
Sergey Isakov
b9f87e1443 reduce search range, by tluck
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-07-06 07:04:01 +03:00
Steve
34759a5bd5 Update FixRenameByBridge2() to let it work in SSDTs 2020-06-30 14:28:37 -04:00
Steve
3281303260 Add missing TgtBridge check in AcpiPatcher::PatchAllTables(), fix unexpected rename in OEM SSDTs when TgtBridge is set 2020-06-30 08:56:16 -04:00
SergeySlice
90588855bd exclude unused variable, it was used for debugging
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-06-28 20:53:37 +03:00
SergeySlice
982332e440 more robust search symbols
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-06-27 05:57:27 +03:00
SergeySlice
428c6bb35a update apple's headers
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-06-24 13:31:00 +03:00
SergeySlice
1856b519e5 position in installer bigsur
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-06-24 07:20:45 +03:00
SergeySlice
a0948b2515 prepare for 10.16
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-06-22 21:47:45 +03:00
SergeySlice
109d1f581c unload audiodxe before system start
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-06-18 19:08:00 +03:00
SergeySlice
ad0b325a04 correct platform dat, thanks to andrey1970
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-06-12 08:23:30 +03:00
SergeySlice
65969fd0a4 correct platfrom feature for new imac
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-06-11 05:00:42 +03:00
SergeySlice
f8a010245f disable boot by space press
to avoid side effects

Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-06-09 14:11:05 +03:00
SergeySlice
33b2a4535f repair page up/down in GUI
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-06-08 17:45:05 +03:00
SergeySlice
0f5da727e0 reset HDA after use
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-06-05 15:15:31 +03:00
SergeySlice
98b3d37277 security update for startup sound
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-06-05 12:43:12 +03:00
SergeySlice
18b35c87f4 correct entry find algo for Catalina
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-06-04 20:53:23 +03:00
SergeySlice
15432aafe3 check media path when choose boot volume updating Catalina, issue 84
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-06-04 13:53:53 +03:00
SergeySlice
6baadc62b7 check ru localization of Clover.app
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-06-02 18:08:12 +03:00
asava
a4d5cbf163 Correct a case where removing -v via options was not fully respected, when it was present by default 2020-05-30 21:03:19 +03:00
asava
28ca396699 An additional location with Cyrillic character 2020-05-30 19:49:12 +03:00
vectorsigma72
77ce5d0072 Replacement of Cyrillic character with latin one 2020-05-30 18:22:31 +02:00
SergeySlice
d36f1ae23a embedded patch to cure 8 apples
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-27 21:04:31 +03:00
SergeySlice
59c3764c27 additional settings for vector theme
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-26 20:12:54 +03:00
SergeySlice
ad209ac209 screenshot will work with legacy boot, thanks to blackosx
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-25 06:22:00 +03:00
jief
a2b8d1217f Handle self assignment for ObjArray. 2020-05-23 23:12:48 +03:00
SergeySlice
be079edc92 dynamic images again with memory free
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-23 14:16:02 +03:00
SergeySlice
f8ccb366fa temporary disable dynamic svg image generation
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-22 18:30:41 +03:00
Sherlocks
307b02fdb7 Update FW Version from 10.15.5 beta5 2020-05-21 21:52:23 +09:00
SergeySlice
3b4878234d Merge branch 'master' of https://github.com/CloverHackyColor/CloverBootloader 2020-05-20 20:56:13 +03:00
SergeySlice
b0547701a9 svg theme parse success not depend on individual icons, just whole parse
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-20 20:56:01 +03:00
Sherlocks
bbcc916bba Updated firmware versions for T2 models. by Andrey1970
Added MBP162 and MBP163 models
2020-05-20 22:23:49 +09:00
SergeySlice
5c61d2a0ea default is daylight
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-18 23:10:38 +03:00
SergeySlice
0aca20217d rasterize svg when needed
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-18 22:40:47 +03:00
SergeySlice
85d3bd1ad9 dynamic daylight, some optimisation
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-17 21:56:10 +03:00
SergeySlice
6236534ec4 include AddDefaultMenu to class
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-16 23:07:27 +03:00
SergeySlice
22f9adcbc9 using XIcon class for dynamic images
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-16 22:30:29 +03:00
SergeySlice
813b0d22cc prepare to dynamic svg
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-15 11:17:06 +03:00
SergeySlice
730f3c77be wrong format for serial string
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-15 09:12:50 +03:00
SergeySlice
7af605b0b6 eliminate some warnings by gcc10
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-15 06:23:33 +03:00
Sergey Isakov
42d5aa6a97 eliminate some VS warnings
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-05-14 13:39:50 +03:00
SergeySlice
32d18af83e advance svg theme
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-14 10:03:06 +03:00
SergeySlice
84c8474388 dont use explicit array size
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-13 13:04:48 +03:00
SergeySlice
de7ac1c1c6 disable deprecated functions
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-13 11:18:12 +03:00
asava
9571af3d83 Correct error in egSaveFile causing for example folder instead of screenshot 2020-05-12 16:21:15 +03:00
SergeySlice
ffec5b89c1 StrnCpy must create null-terminating string
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-12 09:01:46 +03:00
vectorsigma72
a4ac6daf97 Wrong type for FileExists() 2020-05-11 20:45:11 +02:00
SergeySlice
56c4e4dd48 exclude unused variables, move globals into class
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-11 18:44:00 +03:00
SergeySlice
84ebcbb439 NoDefaultProperties will be true by default, AddProperties to be deprecated
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-11 09:30:45 +03:00
SergeySlice
84c8e614e3 avoid null pointer
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-11 06:21:46 +03:00
asava
cfaf51cee4 Some additions to previous commit 2020-05-10 23:31:35 +03:00
SergeySlice
1dbc79eb1b Merge branch 'master' of https://github.com/CloverHackyColor/CloverBootloader 2020-05-10 21:34:16 +03:00
asava
e43696533e Correct load options not being taken from sub entries 2020-05-10 21:27:24 +03:00
SergeySlice
bcaecf0c57 advance xcpm patch by vector sigma
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-10 21:21:51 +03:00
asava
67e3f0db79 Minor corrections to Linux Kernel entries 2020-05-10 18:50:24 +03:00
asava
e1b5f06006 Avoid hang due to double free: FileInfo is also freed by DirIter* methods 2020-05-10 14:06:04 +03:00
Jief L
6710f1daba Merge branch 'master' of https://github.com/CloverHackyColor/CloverBootloader 2020-05-10 12:41:45 +03:00
Jief L
a2b23b391f Add XStringArray::remove and removeIC tests. Create var for "quiet" and
"splash".
2020-05-10 12:41:34 +03:00
asava
fd32cd95e7 Shorten displayed name when volume label missing 2020-05-10 10:59:33 +03:00
Jief L
1279ce374d Little improvement + comment related to strguid. 2020-05-10 10:05:34 +03:00
Jief L
f7b99e3005 Fix strerror and strguid. 2020-05-10 09:49:46 +03:00
asava
296db9ebc5 Correct Linux Kernel scanning; Some more gui tweaks 2020-05-10 02:40:55 +03:00
SergeySlice
0b7eed38f1 no more drop DSM method, it is not universal
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-09 12:15:03 +03:00
SergeySlice
d5305c8cc8 exclude Kernel support CPU patch as redundand and not correct
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-09 11:55:33 +03:00
SergeySlice
7e2dcf5583 make XCPM patch more symbolic
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-09 11:36:20 +03:00
SergeySlice
dc4d0062a8 Kernel pointer will be member of loader class
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-09 10:56:30 +03:00
SergeySlice
c36b0438b3 remake some patches to symbolic
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-09 08:51:12 +03:00
SergeySlice
5cb5243b79 always patch PM if XCPM
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-09 08:22:31 +03:00
SergeySlice
4ed54a19cd advance KernelPM for Catalina
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-09 07:59:38 +03:00
asava
533136a0ad Correct some more GUI glitches 2020-05-09 01:34:15 +03:00
SergeySlice
1c637c0515 use const arrays
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-08 10:11:47 +03:00
SergeySlice
9b673232f7 use new method for RTC patch
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-07 21:13:08 +03:00
SergeySlice
8f5a4616b2 dont hang on AICPUPM patch
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-06 16:35:25 +03:00
SergeySlice
562e571d32 take into account longer DSDT
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-06 09:21:30 +03:00
asava
b7470f8638 Typo in previous commit 2020-05-06 01:37:43 +03:00
asava
9926ff019e Refactor LinuxScan, use in Custom Entries as well 2020-05-06 01:23:59 +03:00
SergeySlice
1a3081dc27 new lapic patch, simplify searchProc
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-05 22:15:59 +03:00
SergeySlice
6a4d892667 correct KernelPm patch
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-05 15:12:01 +03:00
SergeySlice
33a9cc85ab print as hex, not bytes
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-05 10:38:58 +03:00
SergeySlice
bdcc953ecd wrong print format
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-05 10:19:15 +03:00
SergeySlice
f0c8a7c96f testing KernelPm patch
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-05 09:09:48 +03:00
asava
cf41491adc Menu width fixes, proportional font fixes, other menu tweaks 2020-05-05 02:52:00 +03:00
SergeySlice
fce06f6035 Merge branch 'master' of https://github.com/CloverHackyColor/CloverBootloader 2020-05-04 22:31:36 +03:00
SergeySlice
85aee74658 remake kernelPm patch, not enabled yet
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-04 22:31:12 +03:00
asava
9c056aaf6b Forgotten file in previous commit 2020-05-04 21:05:47 +03:00
asava
702e0d49c2 Correct hang in about and help menus after theme change 2020-05-04 21:03:25 +03:00
asava
4d89b2d976 Correct wrong text size length with proportional font, and hang with SVG in some cases 2020-05-04 19:05:29 +03:00
Jief L
ce9538bb4e strcpy bug. DecodeOptions bug. 2020-05-03 23:53:50 +03:00
asava
2e4aa64d3d Missing file in refit.inf 2020-05-03 22:04:46 +03:00
SergeySlice
9166ed8c9c correct format for debug output
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-03 20:34:46 +03:00
SergeySlice
486f6473ff fix conflicts
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-03 20:20:34 +03:00
SergeySlice
70fea56ee4 change a way to find symbols in kexts
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-03 20:16:50 +03:00
Jief L
ab90362ebf Split and ConcatAll more flexible. 2020-05-03 18:07:34 +03:00
Sergey Isakov
2502b0d825 temporary disable new RTC patch
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-05-03 14:16:44 +03:00
asava
d10cadac4b Correct typo in previous commit 2020-05-03 10:21:50 +03:00
asava
ccfbc5b558 Correct some mistakes with kernel/kext patcher 2020-05-03 10:03:06 +03:00
SergeySlice
d7d3c960a9 simplify SIP patch
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-03 07:10:02 +03:00
asava
06f1f9301a Correct LoadOptions lost after pressing SpaceBar, and arch= (older systems) not being used 2020-05-02 22:57:41 +03:00
SergeySlice
5ed90999d2 simplify AppleRTC patch by RodionS
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-02 19:00:31 +03:00
SergeySlice
abc41b5b64 one more case for sip patch take into account
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-02 16:30:33 +03:00
SergeySlice
e9d9b22f37 advance kernel patch using proc names
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-02 13:12:53 +03:00
SergeySlice
2eb070776b wromg mask
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-02 08:03:29 +03:00
SergeySlice
b673288e5d improve catalina sip patch
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-02 07:53:18 +03:00
SergeySlice
355e99d6bf new way kext allowing patch
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-02 06:38:38 +03:00
SergeySlice
314652c49c resolve conflicts
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-01 19:30:22 +03:00
SergeySlice
6b33696c93 kext and kernel patches will be part of LOADER_ENTRY class
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-01 19:26:28 +03:00
asava
64de6d0fef Correct some problems when changing config files 2020-05-01 03:14:11 +03:00
Jief L
5ad1616d7f XtoolsCommon tests. 2020-05-01 00:43:44 +03:00
asava
c903faa26a Missing file in refit.inf 2020-04-30 21:50:42 +03:00
asava
1ec91d72cd A few corrections needed for Linux booting in some cases 2020-04-30 21:17:54 +03:00
Jief L
0c88de9390 Rename _XS to _XS8 2020-04-30 09:22:26 +03:00
Jief L
e170b16516 Rename XString to XString8. 2020-04-30 09:03:56 +03:00
Jief L
82b679bcbd Avoid memory copy at XString initialisation. 2020-04-30 08:17:51 +03:00
Jief L
0c0c2d53d4 Missing L before literals (bis). 2020-04-29 23:33:45 +03:00
Jief L
db7f483cbd Missing L before literals. 2020-04-29 23:32:44 +03:00
Jief L
d27afce852 Comment out unused global var. 2020-04-29 23:32:22 +03:00
SergeySlice
804bca204a disable new patching until verified
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-04-29 23:09:59 +03:00
Sergey Isakov
93d6fb6fdf restrict search
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-29 18:13:35 +03:00
Sergey Isakov
6b610f5b24 correct commit c4357fd
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-29 18:07:10 +03:00
SergeySlice
c4357fd984 simplify kext allowing patch
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-04-29 11:06:44 +03:00
SergeySlice
3b75317d14 advance kernel patch
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-04-29 07:58:43 +03:00
asava
fbbaa8ad2f Same handling for non-standard grub paths 2020-04-29 03:33:41 +03:00
asava
d521fc1c10 Make LinuxScan first try preloaded, and if such doesn't exist, load from dir 2020-04-29 02:00:40 +03:00
asava
592b75ff01 Correct comment 2020-04-29 00:49:23 +03:00
asava
4f5133deeb Make LinuxScan use LoadOSIcon 2020-04-29 00:32:05 +03:00
SergeySlice
0ecb066a4b get preloaded linux icons for the case of svg theme
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-04-28 23:42:53 +03:00
jief
e26fe8ba0c Merge branch 'master' of https://github.com/CloverHackyColor/CloverBootloader 2020-04-28 22:31:05 +03:00
jief
2ff93a346a BootOption.VariableSize was left uninitialized. 2020-04-28 15:19:28 +03:00
SergeySlice
d7c710f9e3 fix some addresses issue, format text
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-04-28 13:49:24 +03:00
Sergey Isakov
279fbaffa8 use partial string for procedure name
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-28 10:51:58 +03:00
jief
2135d2706b Remove incorrect space in ArgOptional. Clean few comments. 2020-04-28 09:54:43 +03:00
asava
67e496d6e9 Allow longer titles for menus, they are trimmed according to theme now 2020-04-28 00:30:26 +03:00
asava
aba4619c5e Remove scrollbar flicker & restrict menu text length 2020-04-27 22:49:38 +03:00
Jief L
06647fcee7 Merge branch 'master' of https://github.com/CloverHackyColor/CloverBootloader 2020-04-27 22:20:39 +03:00
Jief L
2a5571d032 loadOptionsW was destroyed before call to StartImage. 2020-04-27 22:20:16 +03:00
vectorsigma72
e5983bdf6a Punctuations 2020-04-27 17:39:35 +02:00
SergeySlice
5834434d93 addition to the commit before
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-04-27 18:18:36 +03:00
SergeySlice
216606d566 Merge branch 'master' of https://github.com/CloverHackyColor/CloverBootloader 2020-04-27 18:17:20 +03:00
SergeySlice
a621438d7c symbolic kexts and kernel patcher
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-04-27 18:16:43 +03:00
vectorsigma72
dca2aafe40 New _xcpm_bootstrap patch location fo 10.15.4 + 2020-04-27 16:05:41 +02:00
asava
22eeceb841 Use ResultString 2020-04-27 16:26:58 +03:00
asava
f78d6dbb7c Update TitleLen 2020-04-27 15:59:37 +03:00
Jief L
a188e19f02 Remove unneeded wc_str(). Correct comparison order. 2020-04-27 15:13:09 +03:00
Jief L
de2bb5f950 Refactor some Path to XStringW. 2020-04-27 12:50:49 +03:00
asava
4694008abe Correct previous commit 2020-04-27 11:55:14 +03:00
asava
1f991d348e Move MaxTextLen initialization to menu init 2020-04-27 11:39:21 +03:00
asava
84f7f87a53 Simplify calculations 2020-04-27 03:57:19 +03:00
asava
ae75e6489b Correct some GUI glitches 2020-04-27 03:46:51 +03:00
asava
e210ec2d04 Correct disappearing icon in submenus 2020-04-26 23:08:58 +03:00
Jief L
af28b47c72 Refactor BootOptions as XStringArray. 2020-04-26 16:07:30 +03:00
jief
2ccc95513e Improve Split in XStringArray. 2020-04-26 14:52:10 +03:00
jief
7d43ca70d5 XStringArray re-implementation with template. 2020-04-26 13:12:05 +03:00
jief
3475414580 Move REFIT_CONFIG in Settings. 2020-04-26 12:39:41 +03:00
jief
4a9a99873d move WaitForInputEventPoll. 2020-04-26 12:36:21 +03:00
asava
b609bfef1c Typo 2020-04-26 12:12:11 +03:00
SergeySlice
5eef6624f1 avoid infinite loop while kext patch
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-04-26 08:32:48 +03:00
asava
773bb86427 Wrong MaxTextLen committed 2020-04-26 04:36:18 +03:00
asava
0847234281 Enhance Linux Scan and some other GUI corrections 2020-04-26 02:54:13 +03:00
asava
469750c6e6 Correct loading of os_unknown and os_clover 2020-04-25 23:14:53 +03:00
SergeySlice
db50b1e4b2 Merge branch 'master' of https://github.com/CloverHackyColor/CloverBootloader 2020-04-25 19:18:35 +03:00
SergeySlice
615b710944 a feature to double search pattern in kernel/kext/boot
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-04-25 19:18:18 +03:00
Jief L
8d35aa3ecc new trim method in XString. 2020-04-25 14:33:01 +03:00
Jief L
7155fae9cd LastChar was renamed lastChar. 2020-04-25 13:07:23 +03:00
Jief L
96a2e60184 Merge branch 'master' of https://github.com/CloverHackyColor/CloverBootloader 2020-04-25 13:00:21 +03:00
Jief L
a71fe28d34 Fix VS compilation. 2020-04-25 12:59:07 +03:00
SergeySlice
ddd42ed08b correct broken test
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-04-25 06:37:56 +03:00
Sergey Isakov
0d6513e246 use os_unknown, some tests
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-24 19:24:34 +03:00
Jief L
d075078a48 Fix warning. 2020-04-24 18:26:27 +03:00
Jief L
9f552ec04b Merge branch 'master' of https://github.com/CloverHackyColor/CloverBootloader 2020-04-24 18:15:20 +03:00
Jief L
fc0b83c34b Fix warnings. 2020-04-24 18:15:05 +03:00
asava
ca199712c4 LinuxScan should scan not only the directory where Clover is 2020-04-24 14:50:52 +03:00
Jief L
0dca81990b Comment unreachable code in abort.cpp 2020-04-24 13:37:50 +03:00
Jief L
5f195c9d8a More cleaning in tests. 2020-04-24 12:30:09 +03:00
Sergey Isakov
21f4bc6cb4 allow kext patches length will be less then find
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-24 12:01:28 +03:00
Jief L
b3318cc1a4 Update refit.inf. 2020-04-24 09:39:25 +03:00
Jief L
ad33a3b16a Replace XToolsCommon by XToolsConf in include. Improved panic(). 2020-04-24 09:36:29 +03:00
Jief L
73411bbc47 Cleaning in XString. Some method renaming. 2020-04-23 23:43:35 +03:00
asava
775d5abc5f Correct typo 2020-04-23 19:34:01 +03:00
SergeySlice
c48bb89e2e decorations
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-04-23 19:05:21 +03:00
Jief L
5d38db4501 Simplify dataSized. Update refit.inf. 2020-04-23 17:02:48 +03:00
Jief L
fd0f4589ec New implementation of XString. 2020-04-23 16:20:48 +03:00
SergeySlice
16806d435f demo other linux
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-04-23 14:36:35 +03:00
SergeySlice
574cc3261c Merge branch 'master' of https://github.com/CloverHackyColor/CloverBootloader 2020-04-23 12:08:23 +03:00
SergeySlice
01f33f7552 detect unknown linux versions,
stylish change: remove space between func and brace

Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-04-23 12:08:10 +03:00
asava
1ec5726f01 Move AnimeRun, LastDraw, CurrentFrame to FILM 2020-04-23 11:42:18 +03:00
jief
22ba40a466 Deactivate XStringW operator with native type (to catch things like
"Title != NULL")
2020-04-23 11:23:57 +03:00
jief
978e35845a Crash in DBG. 2020-04-23 11:07:05 +03:00
asava
f8c1f08c13 Correct case where anime calculation could become negative 2020-04-23 04:32:23 +03:00
SergeySlice
d3da5e1a21 parsing float values in plists
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-04-22 20:52:21 +03:00
asava
15a9eebae6 Correct ACPI DropTables parsing 2020-04-22 19:37:28 +03:00
SergeySlice
34e2e6e52e copy oem table 41
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-04-22 18:46:41 +03:00
SergeySlice
dc419a5f0e use length 5 for failure report (?)
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-04-22 07:42:10 +03:00
asava
f764a27a9a Correct proportional font 2020-04-22 02:27:01 +03:00
SergeySlice
59314b67f0 Merge branch 'master' of https://github.com/CloverHackyColor/CloverBootloader 2020-04-21 22:51:20 +03:00
SergeySlice
b1024a3627 set wake-failure variable
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-04-21 22:51:07 +03:00
asava
92936b6987 Fix typo in previous commit 2020-04-21 22:18:58 +03:00
asava
2c65cd53f7 Restructuring of GetIcon/GetIconAlt/FillByDir, hopefully cover all cases now 2020-04-21 21:41:35 +03:00
SergeySlice
50faf1ae0a dont decolorize background under gray icon
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-04-21 19:27:30 +03:00
SergeySlice
d91781b79e repaired NonSelectedGray and inline badges
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-04-21 18:57:47 +03:00
SergeySlice
0e57155f2f repair Badge size
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-04-21 12:08:55 +03:00
asava
2aca7f3ec3 Correct getting of embedded icons in case icon not loaded 2020-04-21 03:39:49 +03:00
asava
d7a38dce3e Implement possibility to drop tables for any OS 2020-04-20 19:33:42 +03:00
Sergey Isakov
e37d782aad VS2019 compatibility
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-20 15:45:25 +03:00
asava
2ec6b3f905 Correct background on resolution change & eliminate redundant calls 2020-04-20 03:55:35 +03:00
asava
f280ab3323 Correct mistake in XImage::CopyScaled 2020-04-20 02:12:43 +03:00
SergeySlice
8993c7a7ec Merge branch 'master' of https://github.com/CloverHackyColor/CloverBootloader 2020-04-19 21:48:17 +03:00
SergeySlice
8dc45f00d0 exclude other processors definitions
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-04-19 21:48:00 +03:00
asava
44207c9718 Initialize static variables when menu runs so that values from previos sessions won't be used 2020-04-19 19:16:40 +03:00
SergeySlice
d0d27d8e3d ceoorect banner position in vector theme
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-04-19 18:40:08 +03:00
asava
bf163735e9 Correct previous commit 2020-04-19 17:42:51 +03:00
asava
e62ca9a398 Correct positioning for legacy anime 2020-04-19 17:40:03 +03:00
SergeySlice
0ff64f4248 exclude extra debug messages
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-04-19 14:28:14 +03:00
SergeySlice
2a731df6e4 fix vector theme appearance
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-04-19 14:23:23 +03:00
asava
a28edd4a35 FONT_ALFA not needed also when starting embedded 2020-04-19 13:54:05 +03:00
asava
7058252f89 Don't set FONT_ALFA when using dark embedded 2020-04-19 13:26:13 +03:00
asava
73f5205891 Another fail-safe check 2020-04-18 22:11:50 +03:00
asava
fad765eb01 Attempt to fix BootCampStyle indicator 2020-04-18 17:46:30 +03:00
asava
ea58107509 Add some fail-safe checks to XImage and XTheme 2020-04-18 12:46:52 +03:00
Sergey Isakov
1248bf2c71 use embedded icon with same id if theme native absent
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-18 09:39:47 +03:00
Sergey Isakov
414cfbc03e double word Clover
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-17 18:12:06 +03:00
asava
11b6542852 Restrict SemiWhite pixel for dark embedded theme & allow embedded theme properties also when starting with other themes 2020-04-17 17:50:31 +03:00
asava
bda0beecd0 Choose best console mode first by height, then width 2020-04-17 17:12:14 +03:00
jief
1db9b51864 Revert a change, add a test. 2020-04-17 16:32:12 +03:00
jief
4faa0aa8a2 Fix %X and %u format for char and short. 2020-04-17 16:14:24 +03:00
jief
647955dd8c Fix %x format for char and short. 2020-04-17 15:27:38 +03:00
Sergey Isakov
e1345d7ba0 cleanup from EG_IMAGE, they remain in separate drivers/protocols
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-17 15:21:15 +03:00