Commit Graph

111 Commits

Author SHA1 Message Date
Slice
20e924f5a1 take into account signness of variables
Signed-off-by: Slice <sergey.slice@gmail.com>
2023-11-26 17:10:53 +03:00
jief
32fbf76326 Update BaseLib.h with macro BASE_LIST_FOR_EACH.
Introduce class apd (automatic pointer destruction)
Introduce MemoryTracker
Weak symbols in MemoryAllocationLib to be able to redefine them (see
MemoryTracker).
Embed LegacyOS instead of a pointer.
Fixed a lot of memory leaks.
2023-11-18 11:04:54 +01:00
jief
187400d0ae Why did I put the FreePool parameter as const. That's stupid !
You must never free a const pointer, by definition.
2023-11-11 15:57:02 +01:00
jief
42cece9885 Fix nanosvg leaks.
Move global variable textfaces in XTheme.
Move global variable fontsDB in XTheme.
Remove XTheme member SVGParser. SVGParser is deleted just after use.
Remove XTheme members ImageSVG and ImageSVGnight. All images are
rasterized at load, so no need to keep that.
Remove XIcon setFilled because XIcon knows if it's filled or not by
checking Image & ImageNight
2023-11-08 14:35:22 +01:00
jief
8de61a22fb XIcon::GetBest now returns a reference, which save time and memory.
Added some const.
Remove GetIconP from XTheme.
2023-11-07 17:40:28 +01:00
jief
0130602198 Make GetSizeInBytes() in XImage public.
Change ParseXML first parameter to UINT8 to avoid casts.
2023-11-07 11:02:22 +01:00
jief
c1ce6aa406 Fix a memory waste in efiStrError().
Create displayFreeMemory().
Few renaming and details that doesn't change behavior.
2023-11-06 23:51:16 +01:00
jief
a107644cf2 nanosvg memory allocation tracer. 2023-11-06 22:46:13 +01:00
jief
45795ccfcc Make ThemeX a pointer. 2023-11-06 21:53:57 +01:00
jief666
83593a5ab9 Convert bool to XBool. 2021-09-28 16:54:31 +03:00
jief666
2c829b66cd Create XBool to avoid nasty side effect when assigning int to bool. 2021-09-28 11:28:45 +03:00
SergeySlice
a9cb692f6e clean night icon usage bug
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-05-15 17:52:16 +03:00
jief666
d52803e7cd DO NOT explicitly call default ctor with new because of clang bug. 2021-05-05 20:10:10 +03:00
jief666
0223567648 New parser XML. New ConfigManager. A lot of refactoring... 2021-04-28 21:30:34 +03:00
jief666
cc3c8fe0a7 Fix bug : it was ignoring legacy with PBR, MBR and CD.
Uncomment eComStation, BeOS, ZETA and Haiku legacy boot sector
detection.
Return unknown icon instead of dummy.
Improve legacy entries title when _LoaderTitle is empty.
Create log_technical_bug(). Temporary redirected to panic.
Hardened egLoadFile().
Hardened SelfOem.
Copy ctor in XStringArray.
Improve qemu launch scripts.
2021-04-23 15:20:48 +03:00
SergeySlice
1d6a7ae9d3 Merge branch 'master' of https://github.com/CloverHackyColor/CloverBootloader 2021-04-11 13:53:39 +03:00
SergeySlice
4904c3dc8e default Tmezone is FF, not -1
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-04-11 13:53:21 +03:00
jief666
7babc6fe9b Do not use OC quirks struct anymore in settings.
Fix Disabled property in Smbios/Block config.
Move flagstate in GlobalConfig.
Remove gSettings.Smbios.REV, ECPI, RBr and RPlt.
Create getRBr() and getRPlt().
Operator == and isEqual in XArray, XObjArray, SETTINGS_DATA.
Rename equal to isEqual in XString and XStringArray.
Operator == in INPUT_ITEM, undefinable, ABSTRACT_PATCH (and derived) and
RAM_SLOT_INFO class.
Clean b64cdecode.h.
2021-04-11 08:18:52 +03:00
jief666
75097bd304 Remove include <Platform.h> from headers. Keep them in sources. 2021-02-07 17:39:03 +03:00
jief666
1a02f530db Refactoring to allow Clover to be compiled as a macOs app. 2021-02-06 20:16:46 +03:00
jief666
333b6ce1ca Hide dead installer prebooter.
Do not hide installer if there is a main partition.
2021-02-04 17:04:31 +03:00
SergeySlice
c96d9d57b9 cosmetic changes to xcode project and debug-log
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-10-04 20:12:10 +03:00
jief666
b8a188382c Make Clover path independent. 2020-10-03 20:02:31 +03:00
jief666
3eece0918c Prevent panic in XTheme::ClearScreen() 2020-08-19 10:52:33 +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
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
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
0aca20217d rasterize svg when needed
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-18 22:40:47 +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
asava
533136a0ad Correct some more GUI glitches 2020-05-09 01:34:15 +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
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
asava
469750c6e6 Correct loading of os_unknown and os_clover 2020-04-25 23:14:53 +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
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
jief
978e35845a Crash in DBG. 2020-04-23 11:07:05 +03:00
asava
2c65cd53f7 Restructuring of GetIcon/GetIconAlt/FillByDir, hopefully cover all cases now 2020-04-21 21:41:35 +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
asava
2ec6b3f905 Correct background on resolution change & eliminate redundant calls 2020-04-20 03:55:35 +03:00
asava
73f5205891 Another fail-safe check 2020-04-18 22:11:50 +03:00