Commit Graph

339 Commits

Author SHA1 Message Date
jief666
2961827dce Correct some refactoring bugs. 2020-08-17 22:40:52 +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
59d8cbad7f Refactoring KEXT_PATCH.
Change numerous CHAR8* CHAR16* to XString.
2020-08-12 18:15:47 +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
feba2f1399 Rework APFS Preboot and Recovery volumes 2020-08-07 11:23:46 +03:00
SergeySlice
dddceaae36 exclude double headers
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-07-21 09:33:43 +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
33b2a4535f repair page up/down in GUI
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-06-08 17:45:05 +03: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
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
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
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
32d18af83e advance svg theme
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-14 10:03:06 +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
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
Jief L
a2b23b391f Add XStringArray::remove and removeIC tests. Create var for "quiet" and
"splash".
2020-05-10 12:41:34 +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
asava
533136a0ad Correct some more GUI glitches 2020-05-09 01:34:15 +03:00
asava
cf41491adc Menu width fixes, proportional font fixes, other menu tweaks 2020-05-05 02:52:00 +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
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
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
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
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
a188e19f02 Remove unneeded wc_str(). Correct comparison order. 2020-04-27 15:13:09 +03:00
asava
469750c6e6 Correct loading of os_unknown and os_clover 2020-04-25 23:14:53 +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
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
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
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
978e35845a Crash in DBG. 2020-04-23 11:07:05 +03:00
asava
f764a27a9a Correct proportional font 2020-04-22 02:27:01 +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
asava
2aca7f3ec3 Correct getting of embedded icons in case icon not loaded 2020-04-21 03:39:49 +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
d0d27d8e3d ceoorect banner position in vector theme
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-04-19 18:40:08 +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
73f5205891 Another fail-safe check 2020-04-18 22:11:50 +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
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
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
Sergey Isakov
79af8de0a0 separated EG_IMAGE to exclude them
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-16 14:42:14 +03:00
asava
509981b16c Add missing load for some png images 2020-04-16 14:36:51 +03:00
asava
f86e36a7e5 Correct theme Daylight, DarkEmbedded, some other theme issues 2020-04-16 14:04:24 +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
jief
71562cf66a Swicth Cursor to UINTN to conform renderSVGtext. 2020-04-16 00:04:33 +03:00
asava
6e1f5206b8 Correct theme change, correct vector theme assignment 2020-04-15 23:12:43 +03:00
Sergey Isakov
8b3233bb34 fix crash with vector themes
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-15 22:18: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
jief
42c8292445 Optimization of XString initialisation. 2020-04-14 22:49:45 +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
jief
807e36c427 GetIcon memory leak. 2020-04-14 10:33:02 +03:00
jief
73627c52cc Switch egScreenDescription() to XString 2020-04-14 10:27:23 +03:00
Sergey Isakov
12d9715a1c a template for refactoring ANIME
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-13 22:01:40 +03:00
Sergey Isakov
12990aacd1 repair background scaling
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-12 21:53:27 +03:00
Sergey Isakov
de181aecfb change background of embedded theme
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-11 23:08:03 +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
Jief L
84f956714f Some prototypes cleaning. 2020-04-11 09:21:06 +03:00
Sergey Isakov
ba80bb4f4d use embedded logo, drive image priorities changed
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-10 22:29:51 +03:00
Sergey Isakov
6039faefa2 improve oem string, refactor font name
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-10 20:00:37 +03:00
Sergey Isakov
3ef56cd78d improve smbios information
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-10 17:35:24 +03:00
Jief L
6d54a4c0b6 Get rid of AsciiPrintf used with %d 2020-04-10 15:35:25 +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
92ecdbf630 repair vector themes
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-04-10 06:11:00 +03:00