Commit Graph

277 Commits

Author SHA1 Message Date
SergeySlice
7af605b0b6 eliminate some warnings by gcc10
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-15 06:23:33 +03: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
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
85aee74658 remake kernelPm patch, not enabled yet
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-04 22:31:12 +03:00
asava
ccfbc5b558 Correct some mistakes with kernel/kext patcher 2020-05-03 10:03:06 +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
asava
1ec91d72cd A few corrections needed for Linux booting in some cases 2020-04-30 21:17:54 +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
SergeySlice
a621438d7c symbolic kexts and kernel patcher
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-04-27 18:16:43 +03:00
Jief L
de2bb5f950 Refactor some Path to XStringW. 2020-04-27 12:50:49 +03:00
Jief L
af28b47c72 Refactor BootOptions as XStringArray. 2020-04-26 16:07:30 +03:00
jief
3475414580 Move REFIT_CONFIG in Settings. 2020-04-26 12:39:41 +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
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
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
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
jief
22ba40a466 Deactivate XStringW operator with native type (to catch things like
"Title != NULL")
2020-04-23 11:23:57 +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
asava
d7a38dce3e Implement possibility to drop tables for any OS 2020-04-20 19:33:42 +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
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
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
asava
cde5fa908c Move initial theme draw to before menu run, to prevent theme appearing when menu is unused, and visual delay in system scans 2020-04-16 19:21:13 +03:00
jief
3388819d58 Fix Build info unknown. 2020-04-16 15:24:21 +03:00
jief
7cce3899b8 Merge branch 'master' of https://github.com/CloverHackyColor/CloverBootloader 2020-04-16 14:20:15 +03:00
jief
81c0b45e45 Fix and clean Version.h include. 2020-04-16 14:19:37 +03:00
asava
f86e36a7e5 Correct theme Daylight, DarkEmbedded, some other theme issues 2020-04-16 14:04:24 +03:00
jief
9dc66aee39 Remove macro from Platform.h. 2020-04-16 12:09:22 +03:00
jief
89933f64ac Remove struct definitions from Plateform.h 2020-04-16 10:48:13 +03:00
jief
e429268dfc Remove functions prototypes from Plateform.h 2020-04-16 10:15:26 +03:00
Sergey Isakov
36b908900a cleanup anime for xcinema
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-16 07:45:53 +03:00
Sergey Isakov
631a024373 refactoring anime into xcinema
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-15 19:30:39 +03:00
Sergey Isakov
0733b704ff avoid memory leak at sound play
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-15 12:13:51 +03:00
asava
1f85d633c4 Correct refactoring of CustomBoot 2020-04-14 23:33:36 +03:00
jief
e471eb744a Make Id protected in XCinema 2020-04-14 22:37:44 +03:00
Sergey Isakov
c32de7f2d2 draft xcinema to be replacement for GUI_ANIME
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-14 19:52:13 +03:00
Sergey Isakov
95976da8c6 string compatible should not have leading zeroes
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-14 07:34:10 +03:00
asava
f81078e79b Correct Linux scan 2020-04-13 18:43:32 +03:00
asava
31079aea32 Add back full paths possibility to custom entries 2020-04-13 14:13:37 +03:00
jief
3ed1a89bcc Swicth %X to %x in snprintf and get rid of LowCase. 2020-04-13 10:25:42 +03:00
asava
5eadae5eb8 More corrections to Custom Entries 2020-04-13 01:28:01 +03:00
Sergey Isakov
3433041756 use char8 for KPATIConnectorsController
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-11 18:36:40 +03:00
Sergey Isakov
9440b56a61 refactor custom boot
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-11 15:34:59 +03:00
Jief L
84f956714f Some prototypes cleaning. 2020-04-11 09:21:06 +03:00
Jief L
325b576b1d End of AsciiSPrintf replacement. 2020-04-10 16:52:49 +03:00
Jief L
6d54a4c0b6 Get rid of AsciiPrintf used with %d 2020-04-10 15:35:25 +03:00
Jief L
c8f3a40532 Get rid of AsciiPrintf use for char. 2020-04-10 15:26:35 +03:00
Sergey Isakov
84a320ba5d big cleanup to XTHEME
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-10 13:04:21 +03:00
Sergey Isakov
d74b431b6f repaired system info
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-10 10:15:36 +03:00
Sergey Isakov
dc52af47f0 Merge branch 'master' of https://github.com/CloverHackyColor/CloverBootloader 2020-04-09 20:01:30 +03:00
Sergey Isakov
c995284c06 some pointer copy must be replaced by value copy
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-09 20:01:23 +03:00
Jief L
91b0145ab9 Disable automatic conversion of XString to wchar_t*. 2020-04-09 19:32:46 +03:00
Sergey Isakov
97d1d23eb0 repaired font handling
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-09 16:04:12 +03:00
Sergey Isakov
4be33ca401 correct codepage for help screen
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-08 12:45:36 +03:00
Sergey Isakov
75427f2d83 refactoring text handling
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-07 22:48:36 +03:00
Sergey Isakov
7b173d7f08 do not recalculate background and draw it twice
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-05 17:27:42 +03:00
Jief L
b8bb76d51e Refactor LoadOptions as XString. 2020-04-05 15:25:39 +03:00
Jief L
1c1db57638 Get rid of UnicodeSPrint. 2020-04-04 16:50:13 +03:00
Jief L
3cac160b6d Put functions back in menu.cpp 2020-04-04 15:27:02 +03:00
Sergey Isakov
f61d46411b x,y have to be signed int
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-04 05:59:17 +03:00
Sergey Isakov
8b5ec83c6a refactoring menu entries
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-03 23:00:42 +03:00
Sergey Isakov
ddccb001e6 repair scroll position
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-02 17:03:58 +03:00
Sergey Isakov
5b84f64f61 pixel operations
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-01 20:07:57 +03:00
Sergey Isakov
f70c4e14d2 refactoring DrawText and Pixels
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-01 15:57:32 +03:00
Jief L
6f64681239 Fix includes and refit.inf 2020-03-31 19:05:34 +03:00
Sergey Isakov
a37196ab8c repair background draw
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-03-31 17:25:07 +03:00
Sergey Isakov
0c62865b22 eliminate mouse edge effect
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-03-31 15:35:04 +03:00
Sergey Isakov
f7254f53e6 load icons as in xtheme
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-03-30 11:34:16 +03:00
Sergey Isakov
941244d894 merge conflict
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-03-29 19:19:08 +03:00
Sergey Isakov
4a541a5469 include parseXthem to xtheme class
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-03-29 19:17:27 +03:00
Jief L
e734530b9b Get rid of AsciiSPrint. 2020-03-29 16:44:08 +03:00
SergeySlice
ace46a5646 correct more variables
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-03-27 22:47:06 +03:00
Sergey Isakov
8f2c4b5efd separate data in global config
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-03-27 19:50:17 +03:00
Sergey Isakov
a65aa874a2 move types declarations
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-03-26 20:00:53 +03:00
Sergey Isakov
1abcd07489 apply theme settings to xtheme
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-03-26 17:24:20 +03:00
Sergey Isakov
a1d4a74efb update GUI settings for xtheme
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-03-26 11:18:28 +03:00
Jief L
e8fd94bb8f Switch to new printf format for DebugLog. 2020-03-25 21:32:44 +03:00
Sergey Isakov
23ba4b218e reduce dbg messages
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-03-20 05:54:20 +03:00
Sergey Isakov
3c9332b833 fix fonts release
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-03-20 05:47:58 +03:00
asava
2f01155383 Correct mask handling mixup between KextPatches/KernelPatches/BootPatches 2020-03-19 22:40:27 +02:00
Sergey Isakov
a239da8d61 Merge branch 'master' of https://github.com/CloverHackyColor/CloverBootloader 2020-03-16 10:19:39 +03:00
Sergey Isakov
4618b74d1a repair kernel patching
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-03-16 07:27:02 +03:00
SergeySlice
9ab5a63908 support for VolumeIcon.icns
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-03-15 14:06:04 +03:00
Sergey Isakov
ac829bd589 merge conflicts
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-03-13 16:38:52 +03:00
Sergey Isakov
d79dcb5f9e advance xtheme invention
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-03-13 16:34:36 +03:00
jief
0484955f0b New platform Posix. Replace strlen, strcmp implementation. 2020-03-13 16:11:58 +03:00
jief
e6509221b4 Test always true. 2020-03-11 16:24:29 +03:00
Sergey Isakov
d8dfe555d2 separate fonts in fontChain
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-03-10 16:00:02 +03:00
jief
41c49267a5 Clean the menu item hierarchy. 2020-03-10 12:45:17 +03:00
Sergey Isakov
a3dc82d30b dont free memory already free
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-03-10 12:25:09 +03:00
jief
564a3ca06c Make XPointer a shared instance. Fixed some unallocated memory with
XArray.
2020-03-06 10:55:52 +03:00
Sergey Isakov
b5dc9e1b7f testing mouse
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-03-05 21:23:21 +03:00
Sergey Isakov
797b5638d6 exclude old pointer
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-03-05 18:58:08 +03:00
jief
f8bf956a39 Check pointer before using it. 2020-03-05 09:42:50 +03:00
jief
c6a59f85f9 Caught few access to address 0 2020-03-05 00:54:59 +03:00
jief
6417348844 Fix bad object allocation, remove some REFIT_MENU_SCREEN ctors. 2020-03-04 18:27:41 +03:00
Sergey Isakov
b3e48e0547 merge conflicts
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-03-03 17:21:48 +03:00
Sergey Isakov
8ff35c6295 improved XPoitner and XImage, menu advance
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-03-03 17:17:39 +03:00
jief
99c79d0f94 Using pointer-to-member. 2020-03-03 16:52:23 +03:00
Sergey Isakov
dcdd8cc091 avoid memset generation
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-03-02 16:46:30 +03:00
jief
2de3b84957 Moved DriveImage and BadgeImage down the hierarchy because only loader
use them.
2020-02-29 15:56:36 +03:00
jief
dec25e954e Start refactoring includes. Make gen-config compile. 2020-02-29 10:30:21 +03:00
Sergey Isakov
28fd5f1353 operator new works with DevProps
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-02-29 08:19:23 +03:00
jief
e05286e4a4 Big big refactoring of REFIT_MENU structs. They are now objects.
There is some cleaning to do
in the hierarchy of REFIT_ABSTRACT_MENU_ENTRY.
2020-02-28 23:28:33 +03:00
Sergey Isakov
bdc977d14f make genconfig happy
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-02-28 21:12:57 +03:00
asava
2479b2a499 Allocate DEV_PROPERTY nodes with AllocateZeroPool 2020-02-27 21:54:26 +02:00
jief
c77802d200 Refactor of "Volumes" global var as an XObjArray. 2020-02-27 17:34:29 +03:00
jief
08fbee9846 Avoid using explicit type. 2020-02-27 14:50:29 +03:00
Sergey Isakov
297b3601bf current changes to ximage
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-02-26 22:44:16 +03:00
asava
78e3bece9f Correct mistake in devtree memory allocation 2020-02-26 21:32:50 +02:00
Sergey Isakov
c35f9aa052 fix signess, optimize codes
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-02-23 08:53:21 +03:00
Jief L
8199d9b75c Remove unecessary cast. Some cleanups. 2020-02-22 00:22:30 +03:00
Sergey Isakov
5b02b51273 more type casting fixes
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-02-20 17:28:24 +03:00
Sergey Isakov
20237d492a cleanup
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-02-18 21:49:54 +03:00
jief
7fa464fde0 Final switch to C++ compiler 2020-02-17 23:41:09 +03:00